Article View: linux.kernel.netdev
Article #18857Re: [PATCH net-next v5 2/3] net: prevent mixing frags from different memory providers or bindings
From: Jakub Kicinski
Date: Thu, 19 Nov 2026 00:15
Date: Thu, 19 Nov 2026 00:15
8 lines
8491 bytes
8491 bytes
On Sun, 15 Nov 2026 00:40:02 +0000 Mina Almasry wrote: > Subject: [PATCH net-next v5 2/3] net: prevent mixing frags from different memory providers or bindings This patch needs to be split up. There seems to be pure refactoring here (validate_xmit_unreadable_skb()) and the test code also should be in a separate patch. The rest needs a close look from perf perspective :S Lots of checks on the fast path to fix a hallucination..
Technical Details
Message-ID:
<20261118161559.0c2b62f4@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366571-linux-kernel-netdev=dewy.ruReferences:
<20261115004003.3695475-1-almasrymina@google.com> <20261115004003.3695475-3-almasrymina@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366571-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 2/3] net: prevent mixing frags from different memory providers or bindings Date: Wed, 18 Nov 2026 16:15:59 -0800 Organization: Usenet Network Message-ID: <20261118161559.0c2b62f4@kernel.org> References: <20261115004003.3695475-1-almasrymina@google.com> <20261115004003.3695475-3-almasrymina@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2739039"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ngIyTVa9Jd6aN6hpUl/ku0PI+1c= sha256:6WEYHh1UJOZqtUaEOiDjV3wv7LW4Gz1TWIqrbZeoYuI= sha1:PlTDJlQNieC5TPcwcCbN/9Tvf0U= sha256:YrlDA3oUMIev9yOi43oZqEDTocutzspWXWt6yTTilq0= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 4450C115453; Thu, 19 Nov 2026 03:16:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hYfN6rhMCpBQ; Thu, 19 Nov 2026 03:16:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366571-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B034B11544F; Thu, 19 Nov 2026 03:16:19 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 999E622A191; Thu, 19 Nov 2026 00:16:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795047366; b=Vx4dbZfKV6vrgUfwlfOHl+hMf0WcpTdLADqnBU6vHHvAuA8aQ9t8Kloj3VMO3qQR9K1Z ijvHjJNBpSFTi2RHnJyN9oHYElaDKYFMTxKzSjnSlk/hZvpCE7ycMI7t2z4rjXFBM94ag f+y1uk5J1oRt7e4ZqbRlUbl8utYaMY2552BN8ib9abfyFn1jg8tjysDwpIsAGheq4ecTJ dg5T4zsYqBaCnRACP7ulfR5jummAVLYYU9MpQrmSegUibxkr1SDPoPw69UR1ItcwRW3dS 9G9JMp+jeU87xfXA0Vhp24erEyOO55dLOCu+yBIKV1AIf29+8W9HCESoR3LIcFcoeIw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795047366; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=pL4E9ZeUxxe0siI5O0GOO+Ni20/5dMjIvvKbqRBh8dM=; b=nVBhR7qZHOyNx9F6HT7WcyJXshGPbSqEA8ZaQsdr2v4hG/rSuuX3fhPYtKNiQcJWDB5S /9inw7PI7LmuMHSjgSzH1Ws36NRb/0DOKWkbz3su4Rp+YrYUgvHIHVwIv7QQm7gdo2DMo k+QbdnIxBksuU7LbAPxQi4dX6i3ZCTTWObMURuaV8pRBmgRv2WLZJN6lRvRdMGlGVvA1f +s22ZqRryMRwDz6h6JI3D5OhgmQOSAqQ8/wB/gVji9pLeBfbC9p8imetdz4Boz556rU0+ l6NULTciQZ8hC3feQnHy3jLLvUcDrZGtOSCvosddWjg1KExdxrIqttl6jZEjzPHfFqQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n50LOWiE; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 719E1606A333; Thu, 19 Nov 2026 00:16:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n50LOWiE X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795047360; b=yxOoioSKqkr9GPoarJntPdSboiHUjXIMf0f/89O3A2tm4vdbw0J9L4c7HPriByiLfFfg D8d01LDq5kAXi/gcj/1tmL5CLAW8GrWlGIlBUCYPz4adiHvOSUyzHY/1J2qs/Usw/Dsay ojV9kLOkXxQHAjxsG6eHCjvQS78NJeFOS/IGZSQKqZP/u+RlJULE070jsgoDz1iR7VmDI oZL5i6y8CtevIt9I4R7hTjPKPcCV3xZDCsnqGSY1b7V7lSIevi1a+Z+VOJWZQa6FEE2ff WpkfeHAwR2Vf4VB1nblX2GEjPyiL+UrS48k1uhQaRdb6+l1msw8sLB6Qb20J51HbQoQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795047360; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=pL4E9ZeUxxe0siI5O0GOO+Ni20/5dMjIvvKbqRBh8dM=; b=SQQ+aCyWTUAoa0rNrHavFhMImXTtQN05iXyT1Fyy1IAa/6Pv0lwswzZgTkzawTXMsDB8 AlDw5AmW0tDcrULQlRN+vqPKmYcOwJ00Kcabw13nbaPqnSRPORIfmN2WdCteKkv+pUQ5r 5v1zA3VO5vRsW0mwR7fUed26MgjuKUauN3EaW6sQF+lFgXn8Z3pvzdSJcsrSPg3shSZ5D Rw+jZk+2mE22H0pMKKD7YgpOlL83pPcW3XQMBtngVHcL0+13B1zgvXx7R2DM3s6ykD7Xv xnTYYSNGcfEEUhXa4nlIRZl24XTVIAlgCVdcRs5jz0QBtON3G3C1+JQS6j6IuZLyVKg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=n50LOWiE; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90A4C606A32A; Thu, 19 Nov 2026 00:16:00 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6D471F000C4; Thu, 19 Nov 2026 00:15:59 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795047360; bh=pL4E9ZeUxxe0siI5O0GOO+Ni20/5dMjIvvKbqRBh8dM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=n50LOWiElJ3KsBuc0hn5EH68ru5pYN0pswzhzkkonGjwqG1yr+sef7HbQcXflExNu HTNrbvZuEKTgUbIOCYN5QYyGoUnWM1MSdZb9oF+6YEeaMNh9YELL06/DJxr6/n66ly K4OvbKRVoxoaf71ZmCc2cSerxgo3pJwAFoZx31IPSJsuRJnT6GR+JIaI1v5K33tDGA rtvyqEjVbjRMZpyeYecNXdpjHs6GTYpVbOg32eLHnCLwMwJ/2ypr4sJJyNHdPux79Y FNb9jf4ed2SHzeEKwbZzhPKfSaXZBM+5/b8RaJ7D7sZcueCn87Hd7BGxY6T0aPJwFK sQbgrMXabc8IA== X-Cc: netdev@vger.kernel.org, Eric Dumazet <edumazet@kernel.org>, Neal Cardwell <ncardwell@google.com>, Kuniyuki Iwashima <kuniyu@google.com>, "David S. Miller" <davem@davemloft.net>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, linux-kernel@vger.kernel.org, Josef Bacik <josef@toxicpanda.com>, Kaiyuan Zhang <kaiyuanz@google.com>, Willem de Bruijn <willemb@google.com>, Bobby Eshleman <bobbyeshleman@meta.com>, Stanislav Fomichev <sdf@fomichev.me>, Pavel Begunkov <asml.silence@gmail.com>, Daniel Borkmann <daniel@iogearbox.net> X-In-Reply-To: <20261115004003.3695475-3-almasrymina@google.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list