netfilter: nft_inner: incorrect percpu area handling under softirq
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: nft_inner: incorrect percpu area handling under softirq
Softirq can interrupt packet from process context which walks over the percpu area.
Add routines to disable bh while restoring and saving the tunnel parser context from percpu area to stack. Add a skbuff owner for this percpu area to catch softirq interference to exercise the packet tunnel parser again in such case.
Reported-by [email protected]
Signed-off-by Pablo Neira Ayuso <[email protected]>
---
Just reposting and Cc'ing syzbot.
include/net/netfilter/nf_tables_core.h | 1 + net/netfilter/nft_inner.c | 56 ++++++++++++++++++++------ 2 files changed, 45 insertions(+), 12 deletions(-)
include/net/netfilter/nf_tables_core.h +1 -0
@@ -161,6 +161,7 @@ enum { };struct nft_inner_tun_ctx { +struct sk_buff *skb;u16 type;u16 inner_tunoff;u16 inner_lloff;
net/netfilter/nft_inner.c +44 -12
106 lines not on this page · raw message
Signature · 1 line
2.30.2