]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix crash on writing v4_end_grace before nfsd startup
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 27 Nov 2018 20:54:17 +0000 (15:54 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Nov 2018 23:36:02 +0000 (18:36 -0500)
commit2c31cfb2d12b1c9cd101ed25f8658b7623f21373
tree643a3756a10752a30ee9f037375681c49b6c30b2
parentf4557f61da37d67dddd2f17eb38d85a1f97b6ca9
nfsd4: fix crash on writing v4_end_grace before nfsd startup

Anatoly Trosinenko reports that this:

1) Checkout fresh master Linux branch (tested with commit a09844c2f)
2) Copy x84_64-config-4.14 to .config, then enable NFS server v4 and build
3) From `kvm-xfstests shell`:

results in NULL dereference in locks_end_grace.

Check that nfsd has been started before trying to end the grace period.

Reported-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsctl.c