diff options
author | Christoph Hellwig <[email protected]> | 2023-12-28 07:24:09 +0000 |
---|---|---|
committer | Chandan Babu R <[email protected]> | 2023-12-29 13:37:05 +0530 |
commit | 4f6ac47b55e3ce6e982807928d6074ec105ab66e (patch) | |
tree | d717c5d4573530f46e68cd55bea5a5e700f831d4 /tools/perf/util/trace-event-scripting.c | |
parent | 378b6aef9de0f7c3d0de309ecc61c11eb29e57da (diff) |
xfs: fix a use after free in xfs_defer_finish_recovery
dfp will be freed by ->recover_work and thus the tracepoint in case
of an error can lead to a use after free.
Store the defer ops in a local variable to avoid that.
Fixes: 7f2f7531e0d4 ("xfs: store an ops pointer in struct xfs_defer_pending")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: "Darrick J. Wong" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions