linux/fs/lockd
Olga Kornievskaia 5c4851e4cd lockd: fix NLMv3 GRANTED_MSG handling
GRANTED_MSG is a server-to-client callback, so it runs on the client,
where nfsd never registers nlmsvc_ops. The nlm3svc_lookup_host()
helper is for the server-side request handlers
(TEST/LOCK/CANCEL/UNLOCK), which reach nlmsvc_ops->fopen and must
reject requests when nfsd isn't running. GRANTED_MSG only calls
nlmclnt_grant(). Instead, of calling nlm3svc_lookup_host(), which
results in a client failing a GRANTED_MSG call, call
nlmsvc_lookup_host().

Fixes: 6c534ad999 ("lockd: Use xdrgen XDR functions for the NLMv3 GRANTED_MSG procedure")
Cc: stable@vger.kernel.org
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Reviewed-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260625211852.31972-1-okorniev@redhat.com
Signed-off-by: Chuck Lever <cel@kernel.org>
2026-07-17 09:31:50 -04:00
..
clnt4xdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
clntlock.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
clntproc.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
clntxdr.c lockd: Rename struct nlm_res to lockd_res 2026-06-09 16:32:59 -04:00
host.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
lockd.h lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file() 2026-06-09 16:32:59 -04:00
Makefile lockd: Remove dead code from fs/lockd/xdr.c 2026-06-09 16:32:59 -04:00
mon.c lockd: Rename struct nlm_reboot to lockd_reboot 2026-06-09 16:32:59 -04:00
netlink.c tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netlink.h tools: ynl-gen: add regeneration comment 2025-11-25 19:20:42 -08:00
netns.h lockd: add netlink control interface 2025-03-10 09:10:53 -04:00
nlm.h lockd: Make linux/lockd/nlm.h an internal header 2026-03-29 21:25:09 -04:00
nlm3xdr_gen.c Documentation: Add the RPC language description of NLM version 3 2026-06-09 16:32:59 -04:00
nlm3xdr_gen.h Documentation: Add the RPC language description of NLM version 3 2026-06-09 16:32:59 -04:00
nlm4xdr_gen.c Documentation: Add the RPC language description of NLM version 4 2026-03-29 21:25:09 -04:00
nlm4xdr_gen.h Documentation: Add the RPC language description of NLM version 4 2026-03-29 21:25:09 -04:00
procfs.c
procfs.h
share.h lockd: Rename struct nlm_share to lockd_share 2026-06-09 16:32:59 -04:00
svc.c lockd: Relocate svc_version definitions to XDR layer 2026-03-29 21:25:09 -04:00
svc4proc.c lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file() 2026-06-09 16:32:59 -04:00
svclock.c lockd: Rename struct nlm_lock to lockd_lock 2026-06-09 16:32:59 -04:00
svcproc.c lockd: fix NLMv3 GRANTED_MSG handling 2026-07-17 09:31:50 -04:00
svcshare.c lockd: Rename struct nlm_share to lockd_share 2026-06-09 16:32:59 -04:00
svcsubs.c lockd: Avoid hashing uninitialized bytes in nlm4svc_lookup_file() 2026-06-09 16:32:59 -04:00
trace.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
trace.h lockd: Use xdrgen XDR functions for the NLMv3 GRANTED procedure 2026-06-09 16:32:59 -04:00
xdr.h lockd: Remove dead code from fs/lockd/xdr.c 2026-06-09 16:32:59 -04:00