diff options
author | 2022-10-24 00:39:45 +0800 | |
---|---|---|
committer | 2022-12-06 10:43:24 -0500 | |
commit | 5559405df652008e56eee88872126fe4c451da67 (patch) | |
tree | 06482691076b88a6726698c286192d218351d307 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | NFSv4: check FMODE_EXEC from open context mode in nfs4_opendata_access() (diff) | |
download | linux-rng-5559405df652008e56eee88872126fe4c451da67.tar.xz linux-rng-5559405df652008e56eee88872126fe4c451da67.zip |
nfs: fix possible null-ptr-deref when parsing param
According to commit "vfs: parse: deal with zero length string value",
kernel will set the param->string to null pointer in vfs_parse_fs_string()
if fs string has zero length.
Yet the problem is that, nfs_fs_context_parse_param() will dereferences the
param->string, without checking whether it is a null pointer, which may
trigger a null-ptr-deref bug.
This patch solves it by adding sanity check on param->string
in nfs_fs_context_parse_param().
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions