]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix "dubious pointer arithmetic" test
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Wed, 3 Aug 2022 14:50:05 +0000 (17:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Aug 2022 10:57:52 +0000 (12:57 +0200)
commitf95d58966bf477917106500738fe943f8f259f4e
treea5dc825dc11fd2014ca04d140b024250a063c0e6
parent10cb373f7939131a2c738bda40ce60aaebedba7b
selftests/bpf: Fix "dubious pointer arithmetic" test

commit c04121818f2a723c72b9210ecbe4bdc6dd1bf77b upstream.

The verifier trace changed following a bugfix. After checking the 64-bit
sign, only the upper bit mask is known, not bit 31. Update the test
accordingly.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/test_align.c