summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorBudimir Markovic <markovicbudimir@gmail.com>2023-03-15 00:29:01 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-22 13:31:37 +0100
commitde3ef7ba684a25313c4b7405d007ab22912ef95a (patch)
tree6097b51b3cae98720a96aff210a3b2d00e2cfae2 /scripts/patch-kernel
parent02904e8a2f6530b3d8381fabde8feebfcb6d03f6 (diff)
downloadlinux-de3ef7ba684a25313c4b7405d007ab22912ef95a.tar.gz
linux-de3ef7ba684a25313c4b7405d007ab22912ef95a.tar.bz2
linux-de3ef7ba684a25313c4b7405d007ab22912ef95a.zip
perf: Fix check before add_event_to_groups() in perf_group_detach()
commit fd0815f632c24878e325821943edccc7fde947a2 upstream. Events should only be added to a groups rb tree if they have not been removed from their context by list_del_event(). Since remove_on_exec made it possible to call list_del_event() on individual events before they are detached from their group, perf_group_detach() should check each sibling's attach_state before calling add_event_to_groups() on it. Fixes: 2e498d0a74e5 ("perf: Add support for event removal on exec") Signed-off-by: Budimir Markovic <markovicbudimir@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/ZBFzvQV9tEqoHEtH@gentoo Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions