bpf: fix state equivalence
Commmits
dfd8c149e273 ("bpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers")
and
a91a21eaf94f ("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: dfd8c149e273 ("bpf: Detect identical PTR_TO_MAP_VALUE_OR_NULL registers")
Fixes: a91a21eaf94f ("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>