]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a few constant_table array definitions
authorScott Mayhew <smayhew@redhat.com>
Thu, 2 Apr 2020 21:20:44 +0000 (17:20 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 2 Apr 2020 22:37:13 +0000 (18:37 -0400)
commit14ebce8133f6ccb84575e2cbac44a75382aa466b
treeeeb5341e351a85d9664e3bb3ffedd0e58bc0e612
parentf2645e0a561cd89eb234b8d95c314f1e3617cab1
NFS: Fix a few constant_table array definitions

nfs_vers_tokens, nfs_xprt_protocol_tokens, and nfs_secflavor_tokens were
all missing an empty item at the end of the array, allowing
lookup_constant() to potentially walk off the end and trigger and oops.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Fixes: 95eb1301f5ce ("NFS: Convert mount option parsing to use functionality from fs_parser.h")
Cc: stable@vger.kernel.org # v5.6
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/fs_context.c