]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: Add a check for struct bpf_fib_lookup size
authorAnton Protopopov <aspsk@isovalent.com>
Tue, 26 Mar 2024 10:17:42 +0000 (10:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:30:53 +0000 (18:30 -0700)
commit59b418c7063d30e0a3e1f592d47df096db83185c
tree43e256562b0e3e39ddc2f7acc35f44903dde0295
parent6efec2cb06411a577125b5f531a852c08ead1209
bpf: Add a check for struct bpf_fib_lookup size

The struct bpf_fib_lookup should not grow outside of its 64 bytes.
Add a static assert to validate this.

Suggested-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240326101742.17421-4-aspsk@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c