]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Use "__se_" prefix on architectures without syscall wrapper
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 4 Feb 2022 11:35:19 +0000 (17:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:04 +0000 (13:58 +0200)
commit2b6a4a320e5f0fe91662983838baeca6a7200b81
tree600bd66f812407f565f18b8adb80347b22045f97
parentcb72bf6d402491d9f0aa9c4c82efc2af483f5101
selftests/bpf: Use "__se_" prefix on architectures without syscall wrapper

[ Upstream commit 046b841ea7c528931e7d2e74d5e668aa6c94c1fc ]

On architectures that don't use a syscall wrapper, sys_* function names
are set as an alias of __se_sys_* functions. Due to this, there is no
BTF associated with sys_* function names. This results in some of the
test progs failing to load. Set the SYS_PREFIX to "__se_" to fix this
issue.

Fixes: 38261f369fb905 ("selftests/bpf: Fix probe_user test failure with clang build kernel")
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/013d632aacd3e41290445c0025db6a7055ec6e18.1643973917.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/progs/bpf_misc.h