aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorChris Mason <[email protected]>2015-10-13 14:06:48 -0400
committerChris Mason <[email protected]>2015-10-26 19:38:28 -0700
commit2849a854224487bc578b73b64422c3cb3ef93ff5 (patch)
treececc18105ff992cc0ec13283b28ae6f2c038dd5a /tools/perf/util/trace-event-scripting.c
parent849ef9286f30c88113906dc35f44a499c0cb385d (diff)
btrfs: fix use after free iterating extrefs
The code for btrfs inode-resolve has never worked properly for files with enough hard links to trigger extrefs. It was trying to get the leaf out of a path after freeing the path: btrfs_release_path(path); leaf = path->nodes[0]; item_size = btrfs_item_size_nr(leaf, slot); The fix here is to use the extent buffer we cloned just a little higher up to avoid deadlocks caused by using the leaf in the path. Signed-off-by: Chris Mason <[email protected]> cc: [email protected] # v3.7+ cc: Mark Fasheh <[email protected]> Reviewed-by: Filipe Manana <[email protected]> Reviewed-by: Mark Fasheh <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions