]> 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)
commit6347d89cf9f608abc478d95cf7045152fed4ee6d
tree0d7ec4ba60ccb884e26837f97a0ff476e2a02e9e
parent5ccb48c4044618cc65e32acdb405a0759898c9a3
selftests/bpf: fix test_align

since commit b201d4e1762b 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: b201d4e1762b ("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