summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-03-19 05:53:32 +0300
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-06-03 09:48:22 +0300
commiteb50d0f250e96ede9192d936d220cd97adc93b89 (patch)
tree5e40cf8932310e0ca09415bcbcfb1c1dc93f7d17 /scripts
parent81d0fa4cb4fc0e1a49c2b22f92c43d9fe972ebcf (diff)
downloadlinux-eb50d0f250e96ede9192d936d220cd97adc93b89.tar.xz
selftests/ftrace: Choose target function for filter test from samples
Since the event-filter-function.tc expects the 'exit_mmap()' directly calls 'kmem_cache_free()', this is vulnerable to code modifications. Choose the target function for the filter test from the sample event data so that it can keep test running correctly even if the caller function name will be changed. Link: https://lore.kernel.org/linux-trace-kernel/167919441260.1922645.18355804179347364057.stgit@mhiramat.roam.corp.google.com/ Link: https://lore.kernel.org/all/CA+G9fYtF-XEKi9YNGgR=Kf==7iRb2FrmEC7qtwAeQbfyah-UhA@mail.gmail.com/ Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> Fixes: 7f09d639b8c4 ("tracing/selftests: Add test for event filtering on function name") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions