summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2022-02-09 03:17:36 +0100
committerAndrii Nakryiko <andrii@kernel.org>2022-02-08 21:16:14 -0800
commit4fc49b51ab9d58e830f9df37ea775625ea966d50 (patch)
tree6019d00a6922a9e999d7bd626f71bd09e0adf257 /tools/lib
parentcca62426ab493e0fc7227c5972fcbc1daee6d68e (diff)
downloadlwn-4fc49b51ab9d58e830f9df37ea775625ea966d50.tar.gz
lwn-4fc49b51ab9d58e830f9df37ea775625ea966d50.zip
selftests/bpf: Fix an endianness issue in bpf_syscall_macro test
bpf_syscall_macro reads a long argument into an int variable, which produces a wrong value on big-endian systems. Fix by reading the argument into an intermediate long variable first. Fixes: 77fc0330dfe5 ("selftests/bpf: Add a test to confirm PT_REGS_PARM4_SYSCALL") Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220209021745.2215452-2-iii@linux.ibm.com
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions