]> www.infradead.org Git - users/hch/misc.git/commit
selftests/bpf: test for changing packet data from global functions
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 10 Dec 2024 04:10:56 +0000 (20:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 10 Dec 2024 18:24:57 +0000 (10:24 -0800)
commit3f23ee5590d9605dbde9a5e1d4b97637a4803329
treeba5bbd7b1d1644892c1ee453a6050e85412080b3
parent51081a3f25c742da5a659d7fc6fd77ebfdd555be
selftests/bpf: test for changing packet data from global functions

Check if verifier is aware of packet pointers invalidation done in
global functions. Based on a test shared by Nick Zavaritsky in [0].

[0] https://lore.kernel.org/bpf/0498CA22-5779-4767-9C0C-A9515CEA711F@gmail.com/

Suggested-by: Nick Zavaritsky <mejedi@gmail.com>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20241210041100.1898468-5-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_sock.c