diff options
| author | Christoph Hellwig <[email protected]> | 2023-12-28 07:24:09 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2023-12-29 08:07:05 +0000 |
| commit | 4f6ac47b55e3ce6e982807928d6074ec105ab66e (patch) | |
| tree | d717c5d4573530f46e68cd55bea5a5e700f831d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | xfs: turn the XFS_DA_OP_REPLACE checks in xfs_attr_shortform_addname into ass... (diff) | |
| download | kernel-4f6ac47b55e3ce6e982807928d6074ec105ab66e.tar.gz kernel-4f6ac47b55e3ce6e982807928d6074ec105ab66e.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
