]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/ftrace: Add new test case which checks non unique symbol
authorFrancis Laniel <flaniel@linux.microsoft.com>
Fri, 20 Oct 2023 10:42:50 +0000 (13:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:59:03 +0000 (11:59 +0200)
commitc8b6c2df1e7dad147b3bc2fa18800f69da0e8841
tree53dc0a65316b1644659a13636a57f5db8d35d0da
parent3ad81e6affcbd26d3c4aa39d078aabc90aca27f8
selftests/ftrace: Add new test case which checks non unique symbol

commit 03b80ff8023adae6780e491f66e932df8165e3a0 upstream.

If name_show() is non unique, this test will try to install a kprobe on this
function which should fail returning EADDRNOTAVAIL.
On kernel where name_show() is not unique, this test is skipped.

Link: https://lore.kernel.org/all/20231020104250.9537-3-flaniel@linux.microsoft.com/
Cc: stable@vger.kernel.org
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc [new file with mode: 0644]