projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d5bd6
)
bpf: Reset data_meta before running programs attached to devmap entry
author
David Ahern
<dsahern@kernel.org>
Mon, 8 Jun 2020 15:17:23 +0000
(09:17 -0600)
committer
Alexei Starovoitov
<ast@kernel.org>
Tue, 9 Jun 2020 18:19:35 +0000
(11:19 -0700)
This is a new context that does not handle metadata at the moment, so
mark data_meta invalid.
Fixes:
fbee97feed9b
("bpf: Add support to attach bpf program to a devmap entry")
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20200608151723.9539-1-dsahern@kernel.org
kernel/bpf/devmap.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/devmap.c
b/kernel/bpf/devmap.c
index
854b09b
..
bfdff2f
100644
(file)
--- a/
kernel/bpf/devmap.c
+++ b/
kernel/bpf/devmap.c
@@
-479,6
+479,7
@@
static struct xdp_buff *dev_map_run_prog(struct net_device *dev,
struct xdp_txq_info txq = { .dev = dev };
u32 act;
+ xdp_set_data_meta_invalid(xdp);
xdp->txq = &txq;
act = bpf_prog_run_xdp(xdp_prog, xdp);