]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: Clear grow memory in bpf_xdp_adjust_tail()
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 14 May 2020 10:51:30 +0000 (12:51 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 May 2020 04:21:56 +0000 (21:21 -0700)
commit036b6cf735883625f5fd0ff64729be586bf26eaa
tree0cf318eef490d4bc486d0eeae7604cd6a660f8ab
parent6b411aa0aefd6c346d1a450f1cb710d8e20da1a9
xdp: Clear grow memory in bpf_xdp_adjust_tail()

Clearing memory of tail when grow happens, because it is too easy
to write a XDP_PASS program that extend the tail, which expose
this memory to users that can run tcpdump.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/158945349039.97035.5262100484553494.stgit@firesoul
net/core/filter.c