]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/ftrace: check for do_sys_openat2 in user-memory test
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Oct 2020 13:25:01 +0000 (14:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:09 +0000 (19:22 +0100)
commit01fe7bee6679bb0d4ffd5c7cfd8a64062a3d6b7b
tree99d977ebc5d3acb06bc5f003e1efce17b2005fb9
parent137af564df56625c4323484d1793865074837ef4
selftests/ftrace: check for do_sys_openat2 in user-memory test

[ Upstream commit e3e40312567087fbe6880f316cb2b0e1f3d8a82c ]

More recent libc implementations are now using openat/openat2 system
calls so also add do_sys_openat2 to the tracing so that the test
passes on these systems because do_sys_open may not be called.

Thanks to Masami Hiramatsu for the help on getting this fix to work
correctly.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc