Al Viro discovered some breakage with the parsing of the set_ftrace_filter
as well as the removing of function probes.
This fixes the code with Al's suggestions. I also added a few selftests
to test the broken cases such that they wont happen again.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
selftests/ftrace: Add more tests for removing of function probes
Al Viro discovered a bug in the removing of function probes where if it had
a '*' at the beginning, it would fail to find any matches. That is, because
it reset the glob search string to the the initial string with a "MATCH_END"
type, instead of skipping the wildcard "*" it included it, where it would
not match any functions because "*" was being treated as a normal character
and not a wildcard one.
Cc: Shuah Khan <firstname.lastname@example.org>
Signed-off-by: Steven Rostedt (VMware) <email@example.com>
1 file changed