diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-10-02 01:58:56 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-10-02 16:37:41 +0300 |
commit | 6b3dccd48de8a4c650b01499a0b09d1e2279649e (patch) | |
tree | 3bcdd92076c06f12633bf35bf9bbafe2e12229c2 /fs/lockd/svcproc.c | |
parent | 13956160fc7c75706178cb05c0ac9f5ca77c6411 (diff) | |
download | linux-6b3dccd48de8a4c650b01499a0b09d1e2279649e.tar.xz |
NFSD: Add missing NFSv2 .pc_func methods
There's no protection in nfsd_dispatch() against a NULL .pc_func
helpers. A malicious NFS client can trigger a crash by invoking the
unused/unsupported NFSv2 ROOT or WRITECACHE procedures.
The current NFSD dispatcher does not support returning a void reply
to a non-NULL procedure, so the reply to both of these is wrong, for
the moment.
Cc: <stable@vger.kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd/svcproc.c')
0 files changed, 0 insertions, 0 deletions