summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2026-11-01 19:05:25 +0000
committerAlexei Starovoitov <ast@kernel.org>2026-11-02 00:10:39 +0000
commitc1ca06e48e8848743fd876a1dc6b0f57bc76d23e (patch)
tree3541e64bfd84a9bd3d189613245abe743b5d95a8 /scripts/basic
parent58e39f8d58b141b96c030008a20dde9d625ec997 (diff)
downloadlinux-c1ca06e48e8848743fd876a1dc6b0f57bc76d23e.tar.gz
linux-c1ca06e48e8848743fd876a1dc6b0f57bc76d23e.zip
bpf: Set a dst for test runs of lwt_in progs
When an lwt prog runs on a route, the skb always has a dst. To push an SRH, bpf_lwt_push_encap() reads the device from this dst. But bpf_prog_test_run_skb() sets a dst for lwt_xmit progs only. Thus the helper dereferences a NULL dst in a test run of an lwt_in prog. Set the same dst, ip6_null_entry, for lwt_in progs. When IPv6 is disabled or not built, their test run now fails with -EOPNOTSUPP too. An lwt_out prog cannot call this helper. Fixes: fe94cc290f53 ("bpf: Add IPv6 Segment Routing helpers") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261101190535.1454146-18-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions