]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: fix server crash on reboot of client holding lock
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 18 Jan 2022 22:00:16 +0000 (17:00 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 18 Jan 2022 22:07:48 +0000 (17:07 -0500)
commit491523aa19decfc7827da2722f8d87190d91430c
tree64a68ce96fc5a09496ae50fd6e02f526393bd8f2
parent17110e6a9838ef811ad9c5e51daa6aa469f18920
lockd: fix server crash on reboot of client holding lock

I thought I was iterating over the array when actually the iteration is
over the values contained in the array?

Ugh, keep it simple.

Symptoms were a null deference in vfs_lock_file() when an NFSv3 client
that previously held a lock came back up and sent a notify.

Reported-by: Jonathan Woithe <jwoithe@just42.net>
Fixes: 649a9a0eb60a ("Keep read and write fds with each nlm_file")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svcsubs.c