]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix cleanup of nfsd_reply_cache_init on failure
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 5 Jun 2019 22:03:52 +0000 (18:03 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jul 2019 21:52:09 +0000 (17:52 -0400)
commitad80c2cf08209de685a1649425075c3cf4e858c1
treebb66f63cdc792f2a297255fb86518d13d6a77e65
parent4b7bd90a9558b07130dbb0396e12c001d62ed307
nfsd: fix cleanup of nfsd_reply_cache_init on failure

The failure to unregister the shrinker results will result in corruption
when the nfsd_net is freed.

Also clean up the drc_slab while we're here.

Reported-by: syzbot+83a43746cebef3508b49@syzkaller.appspotmail.com
Fixes: db17b61765c2 ("nfsd4: drc containerization")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c