diff options
| author | 2026-07-05 15:29:13 +0200 | |
|---|---|---|
| committer | 2026-07-08 15:33:44 +0200 | |
| commit | da5b58478a9c1b85608c9e40a3b8432d071b409e (patch) | |
| tree | 77db84123781dc90946186a49c8fe0e62a25d837 /scripts/Makefile.thinlto | |
| parent | netfilter: flowtable: support IPIP tunnel with direct xmit (diff) | |
netfilter: handle unreadable frags
sashiko reports:
When an skb with unreadable fragments (such as from devmem TCP, where
skb_frags_readable(skb) returns false) is processed by the u32 module,
skb_copy_bits() will safely return a negative error code [..]
xt_u32: bail out with hotdrop in this case.
gather_frags: return -1, just as if we had no fragment header.
nfnetlink_queue: restrict to the linear part.
nfnetlink_log: restrict to the linear part.
v2:
- skb_zerocopy helpers don't copy readable flag, i.e. nfnetlink_queue
is broken too
xt_u32 shouldn't return true if hotdrop was set.
Fixes: 65249feb6b3d ("net: add support for skbs with unreadable frags")
Cc: stable@vger.kernel.org
Acked-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
