aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorFedor Pchelkin <[email protected]>2024-08-28 19:14:11 +0300
committerDavid Sterba <[email protected]>2024-09-02 20:18:08 +0200
commitc346c629765ab982967017e2ae859156d0e235cf (patch)
tree14ead1aae22a41fc1c3232d6bbe6a0fad5e06e49 /tools/perf/util/scripting-engines/trace-event-python.c
parentecb54277cb63c273e8d74272e5b9bfd80c2185d9 (diff)
btrfs: qgroup: don't use extent changeset when not needed
The local extent changeset is passed to clear_record_extent_bits() where it may have some additional memory dynamically allocated for ulist. When qgroup is disabled, the memory is leaked because in this case the changeset is not released upon __btrfs_qgroup_release_data() return. Since the recorded contents of the changeset are not used thereafter, just don't pass it. Found by Linux Verification Center (linuxtesting.org) with Syzkaller. Reported-by: [email protected] Closes: https://lore.kernel.org/lkml/[email protected] Fixes: af0e2aab3b70 ("btrfs: qgroup: flush reservations during quota disable") CC: [email protected] # 6.10+ Reviewed-by: Boris Burkov <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Fedor Pchelkin <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions