Skip to content
Commit 43c39193 authored by Anton Protopopov's avatar Anton Protopopov Committed by Greg Kroah-Hartman
Browse files

bpf: Add a check for struct bpf_fib_lookup size

[ Upstream commit 59b418c7

 ]

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

Suggested-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarAnton Protopopov <aspsk@isovalent.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240326101742.17421-4-aspsk@isovalent.com
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3f210d91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment