[PATCH v7 bpf-next 0/2] Fix the null pointer dereference issue in bpf_lwt_xmit_push_encap

Feng Yang posted 2 patches 1 month, 1 week ago
There is a newer version of this series
net/bpf/test_run.c                            | 12 ++++++++++++
.../selftests/bpf/progs/verifier_lwt.c        | 19 +++++++++++++++++++
2 files changed, 31 insertions(+)
[PATCH v7 bpf-next 0/2] Fix the null pointer dereference issue in bpf_lwt_xmit_push_encap
Posted by Feng Yang 1 month, 1 week ago
From: Feng Yang <yangfeng@kylinos.cn>

Fix the null pointer dereference issue in bpf_lwt_xmit_push_encap

Changes in v7:
- Use ip6_null_entry to avoid. Thanks, Martin KaFai Lau.
Changes in v6:
- Modify the bpf_lwt_xmit_push_encap function and add selftests for it.
  Thanks, Martin KaFai Lau.
- Link to v5: https://lore.kernel.org/all/20260210090657.86977-1-yangfeng59949@163.com/
Changes in v5:
- Refer to the bpf_lwt_xmit_reroute function to configure the dst parameter.
- Link to v4: https://lore.kernel.org/all/20260209015111.28144-1-yangfeng59949@163.com/
Changes in v4:
- add rcu lock
- Link to v3: https://lore.kernel.org/all/20260206055113.63476-1-yangfeng59949@163.com/
Changes in v3:
- use dst_init
- Link to v2: https://lore.kernel.org/all/20260205092227.126665-1-yangfeng59949@163.com/
Changes in v2:
- Link to v1: https://lore.kernel.org/all/20260127084520.13890-1-luyun_611@163.com/ 

Feng Yang (2):
  bpf: test_run: Fix the null pointer dereference issue in
    bpf_lwt_xmit_push_encap
  selftests/bpf: Add selftests for the invocation of
    bpf_lwt_xmit_push_encap

 net/bpf/test_run.c                            | 12 ++++++++++++
 .../selftests/bpf/progs/verifier_lwt.c        | 19 +++++++++++++++++++
 2 files changed, 31 insertions(+)

-- 
2.43.0