]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: fix test_align
authorAlexei Starovoitov <ast@fb.com>
Fri, 5 Jan 2018 23:02:00 +0000 (15:02 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 6 Jan 2018 23:10:32 +0000 (00:10 +0100)
commit1f62a72875c5afd19037dbadf843c2083da7a158
tree0d7ec4ba60ccb884e26837f97a0ff476e2a02e9e
parentf9e2a4f1a9217d3ff7323ec17d3ff07b55693a88
selftests/bpf: fix test_align

since commit 7b36b7d56490 the verifier rejects the bit-wise
arithmetic on pointers earlier.
The test 'dubious pointer arithmetic' now has less output to match on.
Adjust it.

Fixes: 7b36b7d56490 ("bpf: do not allow root to mangle valid pointers")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_align.c