ftrace: Properly merge notrace hashes
authorAndy Chiu <andybnac@gmail.com>
Tue, 8 Apr 2025 16:02:57 +0000 (00:02 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 11 Apr 2025 19:14:54 +0000 (15:14 -0400)
commit04a80a34c22f4db245f553d8696d1318d1c00ece
tree05fdc8054b7052e08e4c60b576d659d6783068b0
parente1a453a57bc76be678bd746f84e3d73f378a9511
ftrace: Properly merge notrace hashes

The global notrace hash should be jointly decided by the intersection of
each subops's notrace hash, but not the filter hash.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/20250408160258.48563-1-andybnac@gmail.com
Fixes: 5fccc7552ccb ("ftrace: Add subops logic to allow one ops to manage many")
Signed-off-by: Andy Chiu <andybnac@gmail.com>
[ fixed removing of freeing of filter_hash ]
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c