diff options
| author | Ilya Leoshkevich <[email protected]> | 2022-02-09 02:17:36 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-02-09 05:16:14 +0000 |
| commit | 4fc49b51ab9d58e830f9df37ea775625ea966d50 (patch) | |
| tree | 6019d00a6922a9e999d7bd626f71bd09e0adf257 /tools/lib/bpf/bpf_tracing.h | |
| parent | Merge branch 'fix bpf_prog_pack build errors' (diff) | |
| download | kernel-4fc49b51ab9d58e830f9df37ea775625ea966d50.tar.gz kernel-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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_tracing.h')
0 files changed, 0 insertions, 0 deletions
