diff options
| author | Hawkins Jiawei <[email protected]> | 2022-10-23 16:39:45 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2022-12-06 15:43:24 +0000 |
| commit | 5559405df652008e56eee88872126fe4c451da67 (patch) | |
| tree | 06482691076b88a6726698c286192d218351d307 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | NFSv4: check FMODE_EXEC from open context mode in nfs4_opendata_access() (diff) | |
| download | kernel-5559405df652008e56eee88872126fe4c451da67.tar.gz kernel-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 <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
