]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:23:34 +0000 (09:23 +0100)
commit3c9a213e0edbeb993d2da06ce99588612d433134
tree3dce5d73686f2cc390fd20b8faf2042631c55043
parentdda227cccf14b5d2307b275898a69995c59b5ac5
tracing: Check pid filtering when creating events

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>
kernel/trace/trace_events.c