diff options
| author | Suchit Karunakaran <suchitkarunakaran@gmail.com> | 2025-12-19 22:44:34 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-17 16:35:25 +0100 |
| commit | 6d1b61b8e1e44888c643d89225ab819b10649b2e (patch) | |
| tree | 9fa244d9d82f4b668a43792d03429e7fcbb153b1 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 07effd536ddc102bfae763fa836171fff5e6a7fb (diff) | |
btrfs: fix NULL pointer dereference in do_abort_log_replay()
[ Upstream commit 530e3d4af566ca44807d79359b90794dea24c4f3 ]
Coverity reported a NULL pointer dereference issue (CID 1666756) in
do_abort_log_replay(). When btrfs_alloc_path() fails in
replay_one_buffer(), wc->subvol_path is NULL, but btrfs_abort_log_replay()
calls do_abort_log_replay() which unconditionally dereferences
wc->subvol_path when attempting to print debug information. Fix this by
adding a NULL check before dereferencing wc->subvol_path in
do_abort_log_replay().
Fixes: 2753e4917624 ("btrfs: dump detailed info and specific messages on log replay failures")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Suchit Karunakaran <suchitkarunakaran@gmail.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
