diff options
author | Hawkins Jiawei <[email protected]> | 2022-10-24 00:39:45 +0800 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2022-12-06 10:43:24 -0500 |
commit | 5559405df652008e56eee88872126fe4c451da67 (patch) | |
tree | 06482691076b88a6726698c286192d218351d307 /scripts/gdb/linux/vmalloc.py | |
parent | d564d2c4c2445cb0972453933dc87c2dcaac8597 (diff) |
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 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions