diff options
| author | Olga Kornievskaia <okorniev@redhat.com> | 2026-06-25 17:18:52 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-07-19 21:37:44 -0400 |
| commit | ac8aba075d20869c19e7fa4efbae242d16b2ad63 (patch) | |
| tree | 66ae307650ac94be3105641efc15d242d9f07359 /net | |
| parent | 0a01e84b4ad593f4f5aafb2e92d5537af9ed5ce8 (diff) | |
| download | linux-next-ac8aba075d20869c19e7fa4efbae242d16b2ad63.tar.gz linux-next-ac8aba075d20869c19e7fa4efbae242d16b2ad63.zip | |
lockd: fix NLMv4 GRANTED_MSG handling
GRANTED_MSG is a server-to-client callback, so it runs on the client,
where nfsd never registers nlmsvc_ops. The nlm4svc_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 nlm4svc_lookup_host(), which
results in a client failing a GRANTED_MSG call, call
nlmsvc_lookup_host().
Fixes: 62721885e861 ("lockd: Use xdrgen XDR functions for the NLMv4 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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
