Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Willem de Bruijn
Tue, 24 Nov 2026 14:38
Re: [PATCH net-next v6 0/7] net: prevent mixing incompatible memory providers in skbs
Author: Willem de Bruijn
Date: Tue, 24 Nov 2026 14:38
Date: Tue, 24 Nov 2026 14:38
23 lines
12851 bytes
12851 bytes
Mina Almasry wrote:
> Enforce that all fragments in a nonlinear skb come from compatible
> memory providers (and for devmem, the exact same binding).
Is the following correct. Not an automatic need for respin. Can also be
addressed in a follow-up.
IP defragmentation (inet_frag_reasm_finish() in net/ipv4/inet_fragment.c) is
still a gap for the frag_list invariant this series enforces in
skb_gro_receive_list() and skb_segment(). Neither ip_frag_queue() nor
ipv6_frag_rcv() rejects unreadable skbs, and when skb_try_coalesce(head, fp,
...) returns false because head and fp come from incompatible providers (or
readable + unreadable), inet_frag_reasm_finish() falls through to its else
branch and chains fp onto head->frag_list anyway without propagating
fp->unreadable to head->unreadable. If head is readable and fp is unreadable,
the resulting reassembled skb has head->unreadable == 0 with an unreadable
frag_list member, bypassing validate_xmit_unreadable_skb() on forwarding.
Please clarify whether IP defrag is intentionally left to a follow-up (like
head_frag-on-unreadable) or handle/reject unreadable fragments in defrag.
NB fragments here has two meanings, skb frags and IP fragments. Where
possible, please use unambiguous wording.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads