linux-stable/tools/testing
Alexei Starovoitov ecc26ff830 selftests/bpf: make 'dubious pointer arithmetic' test useful
commit 31e95b61e1 upstream.

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 commit 2b36047e78.

Fixes: 2b36047e78 ("selftests/bpf: fix test_align")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
[fllinden@amazon.com: adjust for 4.14 (no liveness of regs in output)]
Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-10 12:43:53 +02:00
..
fault-injection
ktest tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
nvdimm mm, devm_memremap_pages: mark devm_memremap_pages() EXPORT_SYMBOL_GPL 2019-01-13 10:01:02 +01:00
radix-tree idr: Fix idr_get_next race with idr_remove 2019-11-24 08:22:46 +01:00
selftests selftests/bpf: make 'dubious pointer arithmetic' test useful 2021-06-10 12:43:53 +02:00