🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Stanislav Fomichev Mon, 23 Nov 2026 17:30
Re: [PATCH net-next v6 6/7] net: prevent mixing frags from different memory providers or bindings
#21191
Author: Stanislav Fomichev
Date: Mon, 23 Nov 2026 17:30
25 lines
12388 bytes
On 11/20, Mina Almasry wrote:
> Prevent coalescing, segmenting, or shifting skb fragments from
> incompatible memory providers or different devmem bindings.
> 
> Add skb_mem_provider_compat() with an inline fast path checking only
> skb_frags_readable() on both skbs (unreadable lives in
> struct_group(headers, ...) alongside header flags already loaded in GRO
> and TCP coalescing/collapse paths) and an out-of-line slow path
> __skb_mem_provider_compat() comparing the net_iov provider instance
> (net_iov_owner() for devmem bindings, niov->desc.pp for other net_iov
> providers such as io_uring zcrx). Enforce compatibility across
> skb_try_coalesce(), skb_gro_receive(), skb_gro_receive_list(),
> skb_segment(), and tcp_skb_can_collapse(), and add a
> DEBUG_NET_WARN_ON_ONCE() check in skb_shift() matching the existing
> pp_recycle and decrypted assertions.
> 
> This issue is theoretical and was found by manual code inspection and
> LLM review; it was not triggered in production. Verified with the
> net_core KUnit test suite; not tested on real hardware.
> 
> Fixes: 65249feb6b3d ("net: add support for skbs with unreadable frags")
> Signed-off-by: Mina Almasry <almasrymina@google.com>

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
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