]> asedeno.scripts.mit.edu Git - linux.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)
commit689d7ba4895b803244f596e56ffa3d9e4f24acdc
treebb66f63cdc792f2a297255fb86518d13d6a77e65
parent30498dcc12e5fd0aa7395ef80da8466854ff6a41
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