mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
selftests/bpf: make 'dubious pointer arithmetic' test useful
mostly revert the previous workaround and make 'dubious pointer arithmetic' test useful again. Use (ptr - ptr) << const instead of ptr << const to generate large scalar. The rest stays as before commit2b36047e78. Fixes:2b36047e78("selftests/bpf: fix test_align") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
783687810e
commit
31e95b61e1
1 changed files with 23 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue