ftrace: Properly merge notrace hashes
authorAndy Chiu <andybnac@gmail.com>
Tue, 8 Apr 2025 16:02:57 +0000 (00:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:54 +0000 (10:15 +0200)
commite66fb9b4e9add293fc29420519a116bdb6922999
treeb005177b1f1314d3e790c0e9168f53711f521c73
parent1fce9574b9d515bcb8a75379a8053e18602424e3
ftrace: Properly merge notrace hashes

commit 04a80a34c22f4db245f553d8696d1318d1c00ece upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c