aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2022-02-09 02:17:44 +0000
committerAndrii Nakryiko <[email protected]>2022-02-09 05:37:50 +0000
commitfbca4a2f649730b67488a8b36140ce4d2cf13c63 (patch)
treebd85a4c47968388af6f52981ec4dd94e3e02e4ba /net/switchdev/switchdev.c
parentlibbpf: Allow overriding PT_REGS_PARM1{_CORE}_SYSCALL (diff)
downloadkernel-fbca4a2f649730b67488a8b36140ce4d2cf13c63.tar.gz
kernel-fbca4a2f649730b67488a8b36140ce4d2cf13c63.zip
libbpf: Fix accessing the first syscall argument on arm64
On arm64, the first syscall argument should be accessed via orig_x0 (see arch/arm64/include/asm/syscall.h). Currently regs[0] is used instead, leading to bpf_syscall_macro test failure. orig_x0 cannot be added to struct user_pt_regs, since its layout is a part of the ABI. Therefore provide access to it only through PT_REGS_PARM1_CORE_SYSCALL() by using a struct pt_regs flavor. Reported-by: Heiko Carstens <[email protected]> Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions