diff options
| author | 2020-05-14 12:51:30 +0200 | |
|---|---|---|
| committer | 2020-05-14 21:21:56 -0700 | |
| commit | ddb47d518ca10948d1f64a983cb9274720f691cd (patch) | |
| tree | 0cf318eef490d4bc486d0eeae7604cd6a660f8ab /kernel/bpf/reuseport_array.c | |
| parent | xdp: Allow bpf_xdp_adjust_tail() to grow packet size (diff) | |
| download | linux-dev-ddb47d518ca10948d1f64a983cb9274720f691cd.tar.xz linux-dev-ddb47d518ca10948d1f64a983cb9274720f691cd.zip | |
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
Diffstat (limited to 'kernel/bpf/reuseport_array.c')
0 files changed, 0 insertions, 0 deletions
