diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-01 16:19:46 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-04 21:15:29 -0400 |
| commit | 14996e662f3b734427e2d645cacffc27b779f7d1 (patch) | |
| tree | ec9d598aa02ffc8dc67aa608c91fa3f72cf294d0 /scripts/Makefile.thinlto | |
| parent | acfbea6c5e27c68d6b6d12849eb2b7f8466ccf06 (diff) | |
NFSD: Set nn->cld_net before registering the cld pipe
rpc_mkpipe_dentry() instantiates the pipe's dentry before it returns,
so the cld pipe can be opened as soon as nfsd4_cld_register_net() has
run. __nfsd4_init_cld_pipe() does not store the new cld_net in
nn->cld_net until after that call. cld_pipe_downcall() reaches the
cld_net only through that pointer and takes cn_lock without checking
it, so a write() that lands in the window oopses.
Store nn->cld_net once @cn is fully initialized and before the pipe is
registered, and clear it again when registration fails.
Fixes: f3f8014862d8 ("nfsd: add the infrastructure to handle the cld upcall")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260901-alemi-v2-6-e163f94a3a6e@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
