]> git.hungrycats.org Git - linux/commit
Merge branch 'fix-accessing-first-syscall-argument-on-rv64'
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Sep 2024 00:03:52 +0000 (17:03 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Sep 2024 00:07:21 +0000 (17:07 -0700)
commitaa01d13eecc9fd236f06e3971ef919d3561d2506
tree13dbe6c0a09c0a72703e1ca820e0c2bce3b62130
parenteff5b5fffc1d39fb9e5e66d6aa4ed3fcb109caac
parent99857422338b67f0a2927cbc44fdaa8783717858
Merge branch 'fix-accessing-first-syscall-argument-on-rv64'

Pu Lehui says:

====================
Fix accessing first syscall argument on RV64

On RV64, as Ilya mentioned before [0], the first syscall parameter should be
accessed through orig_a0 (see arch/riscv64/include/asm/syscall.h),
otherwise it will cause selftests like bpf_syscall_macro, vmlinux,
test_lsm, etc. to fail on RV64.

Link: https://lore.kernel.org/bpf/20220209021745.2215452-1-iii@linux.ibm.com
v3:
- Fix test case error.

v2: https://lore.kernel.org/all/20240831023646.1558629-1-pulehui@huaweicloud.com/
- Access first syscall argument with CO-RE direct read. (Andrii)

v1: https://lore.kernel.org/all/20240829133453.882259-1-pulehui@huaweicloud.com/
====================

Link: https://lore.kernel.org/r/20240831041934.1629216-1-pulehui@huaweicloud.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>