Skip to content

nfsd: close potential race between delegation break and laundromat

Jeff Layton linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest100 patches 43 repliesIn review
  2. v11 patch 5 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/100nfsd: close potential race between delegation break and laundromatfs/nfsd/nfs4state.c+33 -74 replies
2/100nfsd: reduce some spinlocking in put_client_renewfs/nfsd/nfs4state.c+4 -21 reply
3/100nfsd: Ensure stateids remain unique until they are freedfs/nfsd/nfs4state.c fs/nfsd/state.h+5 -54 replies
4/100nfsd: Avoid taking state_lock while holding inode lock in nfsd_break_one_delegfs/nfsd/nfs4callback.c fs/nfsd/nfs4state.c fs/nfsd/state.h+58 -250 replies
5/100nfsd: Move the delegation reference counter into the struct nfs4_stidfs/nfsd/nfs4state.c fs/nfsd/state.h+8 -71 reply
6/100nfsd4: use cl_lock to synchronize all stateid idr callsfs/nfsd/nfs4state.c+13 -42 replies
7/100nfsd: Add fine grained protection for the nfs4_file->fi_stateids listfs/nfsd/nfs4state.c+17 -31 reply
8/100nfsd: Add a mutex to protect the NFSv4.0 open owner replay cachefs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c +2 more+35 -230 replies
9/100nfsd: Add locking to the nfs4_file->fi_fds[] arrayfs/nfsd/nfs4state.c fs/nfsd/state.h+91 -421 reply
10/100nfsd: clean up helper __release_lock_stateidfs/nfsd/nfs4state.c+2 -40 replies
11/100nfsd: refactor nfs4_file_get_access and nfs4_file_put_accessfs/nfsd/nfs4state.c+36 -235 replies
12/100nfsd: remove nfs4_file_put_fdfs/nfsd/nfs4state.c+2 -114 replies
13/100nfsd: shrink st_access_bmap and st_deny_bmapfs/nfsd/nfs4state.c fs/nfsd/state.h+29 -133 replies
14/100nfsd: set stateid access and deny bits in nfs4_get_vfs_filefs/nfsd/nfs4state.c+12 -112 replies
15/100nfsd: clean up reset_union_bmap_denyfs/nfsd/nfs4state.c+3 -27 replies
16/100nfsd: always hold the fi_lock when bumping fi_access refcountsfs/nfsd/nfs4state.c+41 -63 replies
17/100nfsd: make deny mode enforcement more efficient and close races in itfs/nfsd/nfs4state.c fs/nfsd/state.h+140 -693 replies
18/100nfsd: cleanup and rename nfs4_check_openfs/nfsd/nfs4state.c+6 -91 reply
19/100locks: add file_has_lease to prevent delegation break racesfs/locks.c include/linux/fs.h+32 -00 replies
20/100nfsd: nfs4_alloc_init_lease should take a nfs4_file argfs/nfsd/nfs4state.c+3 -30 replies
21/100nfsd: Protect the nfs4_file delegation fields using the fi_lockfs/nfsd/nfs4state.c+38 -130 replies
22/100nfsd: Simplify stateid managementfs/nfsd/nfs4state.c+10 -110 replies
23/100nfsd: Fix delegation revocationfs/nfsd/nfs4state.c+25 -200 replies
24/100nfsd: Add reference counting to the lock and open stateidsfs/nfsd/nfs4state.c+8 -60 replies
25/100nfsd: Add a struct nfs4_file field to struct nfs4_stidfs/nfsd/nfs4state.c fs/nfsd/state.h+9 -90 replies
26/100nfsd: Replace nfs4_ol_stateid->st_file with the st_stid.sc_filefs/nfsd/nfs4state.c fs/nfsd/state.h+24 -250 replies
27/100nfsd: Ensure atomicity of stateid destruction and idr tree removalfs/nfsd/nfs4state.c+18 -110 replies
28/100nfsd: Cleanup the freeing of stateidsfs/nfsd/nfs4state.c fs/nfsd/state.h+43 -210 replies
29/100nfsd: do filp_close in sc_free callback for lock stateidsfs/nfsd/nfs4state.c+13 -50 replies
30/100nfsd: Add locking to protect the state owner listsfs/nfsd/nfs4state.c+19 -20 replies
31/100nfsd: clean up races in lock stateid searching and creationfs/nfsd/nfs4state.c+41 -170 replies
32/100nfsd: Convert delegation counter to an atomic_long_t typefs/nfsd/nfs4state.c+11 -70 replies
33/100nfsd: Slight cleanup of find_stateid()fs/nfsd/nfs4state.c+18 -90 replies
34/100nfsd: ensure atomicity in nfsd4_free_stateid and nfsd4_validate_stateidfs/nfsd/nfs4state.c+35 -320 replies
35/100nfsd: Add reference counting to lock stateidsfs/nfsd/nfs4state.c+12 -30 replies
36/100nfsd: nfsd4_locku() must reference the lock stateidfs/nfsd/nfs4state.c+5 -10 replies
37/100nfsd: Ensure that nfs4_open_delegation() references the delegation stateidfs/nfsd/nfs4state.c+2 -00 replies
38/100nfsd: nfsd4_process_open2() must reference the delegation stateidfs/nfsd/nfs4state.c+13 -50 replies
39/100nfsd: nfsd4_process_open2() must reference the open stateidfs/nfsd/nfs4state.c+4 -00 replies
40/100nfsd: Prepare nfsd4_close() for open stateid referencingfs/nfsd/nfs4state.c+5 -00 replies
41/100nfsd: nfsd4_open_confirm() must reference the open stateidfs/nfsd/nfs4state.c+5 -10 replies
42/100nfsd: Add reference counting to nfs4_preprocess_confirmed_seqid_opfs/nfsd/nfs4state.c+9 -40 replies
43/100nfsd: Migrate the stateid reference into nfs4_preprocess_seqid_opfs/nfsd/nfs4state.c+11 -150 replies
44/100nfsd: Migrate the stateid reference into nfs4_lookup_stateid()fs/nfsd/nfs4state.c+11 -60 replies
45/100nfsd: Migrate the stateid reference into nfs4_find_stateid_by_type()fs/nfsd/nfs4state.c+6 -60 replies
46/100nfsd: Add reference counting to state ownersfs/nfsd/nfs4state.c fs/nfsd/state.h+32 -140 replies
47/100nfsd: Keep a reference to the open stateid for the NFSv4.0 replay cachefs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/xdr4.h+30 -270 replies
48/100nfsd: clean up lockowner refcounting when finding themfs/nfsd/nfs4state.c+38 -130 replies
49/100nfsd: add an operation for unhashing a stateownerfs/nfsd/nfs4state.c fs/nfsd/state.h+36 -100 replies
50/100nfsd: Make lock stateid take a reference to the lockownerfs/nfsd/nfs4state.c+3 -00 replies
51/100nfsd: clean up refcounting for lockownersfs/nfsd/nfs4state.c+7 -220 replies
52/100nfsd: make openstateids hold references to their openownersfs/nfsd/nfs4state.c fs/nfsd/state.h+31 -410 replies
53/100nfsd: don't allow CLOSE to proceed until refcount on stateid dropsfs/nfsd/nfs4state.c+21 -10 replies
54/100nfsd: Protect adding/removing open state owners using client_lockfs/nfsd/nfs4state.c+54 -90 replies
55/100nfsd: Protect adding/removing lock owners using client_lockfs/nfsd/nfs4state.c+61 -80 replies
56/100nfsd: Move the open owner hash table into struct nfs4_clientfs/nfsd/netns.h fs/nfsd/nfs4state.c fs/nfsd/state.h+87 -1030 replies
57/100nfsd: clean up and reorganize release_lockownerfs/nfsd/nfs4state.c+18 -310 replies
58/100nfsd: add locking to stateowner releasefs/nfsd/nfs4state.c+6 -90 replies
59/100nfsd: optimize destroy_lockowner cl_lock thrashingfs/nfsd/nfs4state.c+33 -170 replies
60/100nfsd: close potential race in nfsd4_free_stateidfs/nfsd/nfs4state.c+9 -150 replies
61/100nfsd: reduce cl_lock thrashing in release_openownerfs/nfsd/nfs4state.c+63 -320 replies
62/100nfsd: don't thrash the cl_lock while freeing an open stateidfs/nfsd/nfs4state.c+19 -150 replies
63/100nfsd: Ensure struct nfs4_client is unhashed before we try to destroy itfs/nfsd/nfs4state.c+33 -100 replies
64/100nfsd: Ensure that the laundromat unhashes the client before releasing locksfs/nfsd/nfs4state.c+3 -10 replies
65/100nfsd: Don't require client_lock in free_clientfs/nfsd/nfs4state.c+0 -130 replies
66/100nfsd: Move create_client() call outside the lockfs/nfsd/nfs4state.c+19 -160 replies
67/100nfsd: Protect unconfirmed client creation using client_lockfs/nfsd/nfs4state.c+22 -110 replies
68/100nfsd: Protect session creation and client confirm using client_lockfs/nfsd/nfs4state.c+39 -260 replies
69/100nfsd: Protect nfsd4_destroy_clientid using client_lockfs/nfsd/nfs4state.c+9 -40 replies
70/100nfsd: Ensure lookup_clientid() takes client_lockfs/nfsd/nfs4state.c+6 -20 replies
71/100nfsd: Add lockdep assertions to document the nfs4_client/session lockingfs/nfsd/nfs4state.c+30 -00 replies
72/100nfsd: protect the close_lru list and oo_last_closed_stid with client_lockfs/nfsd/nfs4state.c+30 -70 replies
73/100nfsd: ensure that clp->cl_revoked list is protected by clp->cl_lockfs/nfsd/nfs4state.c+14 -70 replies
74/100nfsd: move unhash_client_locked call into mark_client_expired_lockedfs/nfsd/nfs4state.c+2 -40 replies
75/100nfsd: don't destroy client if mark_client_expired_locked failsfs/nfsd/nfs4state.c+6 -20 replies
76/100nfsd: don't destroy clients that are busyfs/nfsd/nfs4state.c+8 -20 replies
77/100nfsd: protect clid and verifier generation with client_lockfs/nfsd/netns.h fs/nfsd/nfs4state.c+12 -150 replies
78/100nfsd: abstract out the get and set routines into the fault injection opsfs/nfsd/fault_inject.c+78 -510 replies
79/100nfsd: add a forget_clients "get" routine with proper lockingfs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+26 -110 replies
80/100nfsd: add a forget_client set_clnt routinefs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+32 -10 replies
81/100nfsd: add nfsd_inject_forget_clientsfs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+30 -170 replies
82/100nfsd: add a list_head arg to nfsd_foreach_client_lockfs/nfsd/nfs4state.c+8 -30 replies
83/100nfsd: add more granular locking to forget_locks fault injectorfs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+131 -160 replies
84/100nfsd: add more granular locking to forget_openowners fault injectorfs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+122 -150 replies
85/100nfsd: add more granular locking to *_delegations fault injectorsfs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+164 -400 replies
86/100nfsd: remove old fault injection infrastructurefs/nfsd/fault_inject.c fs/nfsd/nfs4state.c fs/nfsd/state.h+57 -1260 replies
87/100nfsd: Remove nfs4_lock_state(): nfs4_preprocess_stateid_op()fs/nfsd/nfs4state.c+1 -50 replies
88/100nfsd: Remove nfs4_lock_state(): nfsd4_test_stateid/nfsd4_free_stateidfs/nfsd/nfs4state.c+0 -40 replies
89/100nfsd: Remove nfs4_lock_state(): nfsd4_release_lockownerfs/nfsd/nfs4state.c+2 -60 replies
90/100nfsd: Remove nfs4_lock_state(): nfsd4_lock/locku/lockt()fs/nfsd/nfs4state.c+0 -90 replies
91/100nfsd: Remove nfs4_lock_state(): nfsd4_open_downgrade + nfsd4_closefs/nfsd/nfs4state.c+0 -40 replies
92/100nfsd: Remove nfs4_lock_state(): nfsd4_delegreturn()fs/nfsd/nfs4state.c+0 -30 replies
93/100nfsd: Remove nfs4_lock_state(): nfsd4_open and nfsd4_open_confirmfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c+0 -90 replies
94/100nfsd: Remove nfs4_lock_state(): exchange_id, create/destroy_session()fs/nfsd/nfs4state.c+0 -110 replies
95/100nfsd: Remove nfs4_lock_state(): setclientid, setclientid_confirm, renewfs/nfsd/nfs4state.c+0 -60 replies
96/100nfsd: Remove nfs4_lock_state(): reclaim_complete()fs/nfsd/nfs4state.c+0 -20 replies
97/100nfsd: remove nfs4_lock_state: nfs4_laundromatfs/nfsd/nfs4state.c+0 -30 replies
98/100nfsd: remove nfs4_lock_state: nfs4_state_shutdown_netfs/nfsd/nfs4state.c+0 -20 replies
99/100nfsd: remove the client_mutex and the nfs4_lock/unlock_state wrappersfs/nfsd/nfs4state.c+0 -150 replies
100/100nfsd: add some comments to the nfsd4 object definitionsfs/nfsd/netns.h fs/nfsd/state.h+92 -71 reply

Reviews trailers per patch

10 of 100 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/100
2/100R-b
3/100
4/100R-b
5/100R-b
6/100R-b
7/100R-b
8/100
9/100R-b
10/100R-b
11/100
12/100
13/100R-b
14/100
15/100
16/100
17/100
18/100R-b
19/100
20/100
21/100
22/100
23/100
24/100
25/100
26/100
27/100
28/100
29/100
30/100
31/100
32/100
33/100
34/100
35/100
36/100
37/100
38/100
39/100
40/100
41/100
42/100
43/100
44/100
45/100
46/100
47/100
48/100
49/100
50/100
51/100
52/100
53/100
54/100
55/100
56/100
57/100
58/100
59/100
60/100
61/100
62/100
63/100
64/100
65/100
66/100
67/100
68/100
69/100
70/100
71/100
72/100
73/100
74/100
75/100
76/100
77/100
78/100
79/100
80/100
81/100
82/100
83/100
84/100
85/100
86/100
87/100
88/100
89/100
90/100
91/100
92/100
93/100
94/100
95/100
96/100
97/100
98/100
99/100
100/100R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread