mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
bpf: fix state equivalence
[ Upstream commitd2a4dd37f6] Commmits57a09bf0a4("bpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers") and484611357c("bpf: allow access into map value arrays") by themselves are correct, but in combination they make state equivalence ignore 'id' field of the register state which can lead to accepting invalid program. Fixes:57a09bf0a4("bpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers") Fixes:484611357c("bpf: allow access into map value arrays") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1411707acb
commit
b7f5aa1ca0
2 changed files with 8 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue