diff options
author | Ilya Leoshkevich <[email protected]> | 2021-08-13 00:48:14 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2021-08-13 16:40:40 -0700 |
commit | d164dd9a5c08c16a883b3de97d13948c7be7fa4d (patch) | |
tree | ce9b46806c3ff1adca32beafc3e3d10773fe52a1 /net/unix/af_unix.c | |
parent | 2211c825e7b6b99bbcabab4e0130a2779275dcc3 (diff) |
selftests/bpf: Fix test_core_autosize on big-endian machines
The "probed" part of test_core_autosize copies an integer using
bpf_core_read() into an integer of a potentially different size.
On big-endian machines a destination offset is required for this to
produce a sensible result.
Fixes: 888d83b961f6 ("selftests/bpf: Validate libbpf's auto-sizing of LD/ST/STX instructions")
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/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions