]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: validate that tail call invalidates packet pointers
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 30 Apr 2025 08:19:50 +0000 (16:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 May 2025 07:43:55 +0000 (09:43 +0200)
commitb7c0d2d4ef13e0ce1c5e1d0e01eeb586bea709f4
treeaf2e99e5ea9c581fc779b352c7c1a12904f1f008
parentf1692ee23dcaaddc24ba407b269707ee5df1301f
selftests/bpf: validate that tail call invalidates packet pointers

commit d9706b56e13b7916461ca6b4b731e169ed44ed09 upstream.

Add a test case with a tail call done from a global sub-program. Such
tails calls should be considered as invalidating packet pointers.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20241210041100.1898468-9-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/progs/verifier_sock.c