lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 18 Feb 2021 12:49:53 +0100 From: Jesper Dangaard Brouer <brouer@...hat.com> To: bpf@...r.kernel.org Cc: Jesper Dangaard Brouer <brouer@...hat.com>, netdev@...r.kernel.org, Daniel Borkmann <borkmann@...earbox.net>, Alexei Starovoitov <alexei.starovoitov@...il.com> Subject: [PATCH bpf-next V2 0/2] bpf: Updates for BPF-helper bpf_check_mtu The FIB lookup example[1] show how the IP-header field tot_len (iph->tot_len) is used as input to perform the MTU check. The recently added MTU check helper bpf_check_mtu() should also support this type of MTU check. Lets add this feature before merge window, please. This is a followup to 34b2021cc616 ("bpf: Add BPF-helper for MTU checking"). [1] samples/bpf/xdp_fwd_kern.c V2: Fixed spelling and added ACKs from John --- Jesper Dangaard Brouer (2): bpf: BPF-helper for MTU checking add length input selftests/bpf: Tests using bpf_check_mtu BPF-helper input mtu_len param include/uapi/linux/bpf.h | 17 ++-- net/core/filter.c | 12 ++- tools/testing/selftests/bpf/prog_tests/check_mtu.c | 4 + tools/testing/selftests/bpf/progs/test_check_mtu.c | 92 ++++++++++++++++++++ 4 files changed, 117 insertions(+), 8 deletions(-) --
Powered by blists - more mailing lists