diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-10-24 22:05:49 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-25 17:02:06 -0700 |
commit | b09928b976280d64060d7bee146d7df5c5a29bef (patch) | |
tree | 56255e6f507f2685a1ff991502711cdbe5de20e9 /kernel/memremap.c | |
parent | d3f66e4116aff8dd0d5bd4067295b9ddb5e2c29c (diff) | |
download | linux-b09928b976280d64060d7bee146d7df5c5a29bef.tar.bz2 |
bpf: make direct packet write unclone more robust
Given this seems to be quite fragile and can easily slip through the
cracks, lets make direct packet write more robust by requiring that
future program types which allow for such write must provide a prologue
callback. In case of XDP and sk_msg it's noop, thus add a generic noop
handler there. The latter starts out with NULL data/data_end unconditionally
when sg pages are shared.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/memremap.c')
0 files changed, 0 insertions, 0 deletions