bpf: reset id on spilled regs in clear_all_pkt_pointers
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 10 Jun 2017 22:50:43 +0000 (00:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 23:05:45 +0000 (19:05 -0400)
commit36e24c003091a11ec847291c9a1d36d2ec92b155
treef9fa3bc275aeb97f131a5e0ed1a3207f8d69565f
parent4a2ff55aa4946b036b87572976cbfc6ab244c497
bpf: reset id on spilled regs in clear_all_pkt_pointers

Right now, we don't reset the id of spilled registers in case of
clear_all_pkt_pointers(). Given pkt_pointers are highly likely to
contain an id, do so by reusing __mark_reg_unknown_value().

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c