https://github.com/torvalds/linux
Revision 9affa435817711861d774f5626c393c80f16d044 authored by J. Bruce Fields on 15 July 2020, 17:31:36 UTC, committed by J. Bruce Fields on 22 July 2020, 20:47:14 UTC
We hold the cl_lock here, and that's enough to keep stateid's from going
away, but it's not enough to prevent the files they point to from going
away.  Take fi_lock and a reference and check for NULL, as we do in
other code.

Reported-by: NeilBrown <neilb@suse.de>
Fixes: 78599c42ae3c ("nfsd4: add file to display list of client's opens")
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent becd201
History
Tip revision: 9affa435817711861d774f5626c393c80f16d044 authored by J. Bruce Fields on 15 July 2020, 17:31:36 UTC
nfsd4: fix NULL dereference in nfsd/clients display code
Tip revision: 9affa43
File Mode Size
.gitignore -rw-r--r-- 62 bytes
Kconfig -rw-r--r-- 3.4 KB
Makefile -rw-r--r-- 4.1 KB
blacklist.c -rw-r--r-- 4.0 KB
blacklist.h -rw-r--r-- 84 bytes
blacklist_hashes.c -rw-r--r-- 166 bytes
blacklist_nohashes.c -rw-r--r-- 122 bytes
system_certificates.S -rw-r--r-- 828 bytes
system_keyring.c -rw-r--r-- 8.7 KB

back to top