]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tracing: Check pid filtering when creating events
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 26 Nov 2021 18:35:26 +0000 (13:35 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:03 +0000 (09:49 +0100)
commit5e5bba8b15dcbf7bcbe65b3002a774859a611207
tree203770b98f71c0307e69e8d98bcb7ce945910f06
parent5246f33104920a2b88c45b058e611647e6366359
tracing: Check pid filtering when creating events

BugLink: https://bugs.launchpad.net/bugs/1953370
commit 6cb206508b621a9a0a2c35b60540e399225c8243 upstream.

When pid filtering is activated in an instance, all of the events trace
files for that instance has the PID_FILTER flag set. This determines
whether or not pid filtering needs to be done on the event, otherwise the
event is executed as normal.

If pid filtering is enabled when an event is created (via a dynamic event
or modules), its flag is not updated to reflect the current state, and the
events are not filtered properly.

Cc: stable@vger.kernel.org
Fixes: 3fdaf80f4a836 ("tracing: Implement event pid filtering")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
kernel/trace/trace_events.c