]> www.infradead.org Git - users/dwmw2/linux.git/commit
tracing: Fix pid filtering when triggers are attached
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 26 Nov 2021 22:34:42 +0000 (17:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:27:39 +0000 (09:27 +0100)
commitbbaf4fe5ec34e7931af9a03a60b4071c2bc01ae0
tree059c845d8c0c9e48faec168949ca21e564d627bc
parent8963bf33bb8f170c01baef5781c8d807770f6ecb
tracing: Fix pid filtering when triggers are attached

commit a55f224ff5f238013de8762c4287117e47b86e22 upstream.

If a event is filtered by pid and a trigger that requires processing of
the event to happen is a attached to the event, the discard portion does
not take the pid filtering into account, and the event will then be
recorded when it should not have been.

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.h