diff options
author | Jeff Layton <[email protected]> | 2022-11-05 09:49:26 -0400 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2022-11-05 11:29:55 -0400 |
commit | bdd6b5624c62d0acd350d07564f1c82fe649235f (patch) | |
tree | 774b245113c2fdf51f0c82ca20aaa878ba679d38 /lib/memory-notifier-error-inject.c | |
parent | d3aefd2b29ff5ffdeb5c06a7d3191a027a18cdb8 (diff) |
nfsd: fix use-after-free in nfsd_file_do_acquire tracepoint
When we fail to insert into the hashtable with a non-retryable error,
we'll free the object and then goto out_status. If the tracepoint is
enabled, it'll end up accessing the freed object when it tries to
grab the fields out of it.
Set nf to NULL after freeing it to avoid the issue.
Fixes: 243a5263014a ("nfsd: rework hashtable handling in nfsd_do_file_acquire")
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions