Article View: linux.kernel.netdev
Article #25852Re: [PATCH] ipv6: reject datagrams that leave no room past the fragment header
From: Simon Horman
Date: Wed, 02 Dec 2026 15:05
Date: Wed, 02 Dec 2026 15:05
30 lines
9085 bytes
9085 bytes
On Wed, Nov 25, 2026 at 07:00:50AM +0000, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 5 potential > issue(s) to consider. > > Critical: 0 · High: 1 · Medium: 2 · Low: 2 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [High] The fix is incomplete. > - [Medium] The new rejection in __ip6_append_data() (`room <= trailer || > room - trailer < need`) is stricter than the non-paged path needs, and… > - [Medium] The commit message says 'The non-paged path is not affected: > pagedlen is zero there and the existing copy < 0 check returns… Hi Dan, The above appear to be legitimate concerns and I would appreciate if you could provide some clarification. > - [Low] The patch fixes a user-triggerable resource-exhaustion loop in > __ip6_append_data() (net/ipv6/ip6_output.c) that the author reproduced… > - [Low] The new -EMSGSIZE rejection in __ip6_append_data() exits through > the generic `error:` label, not `emsgsize:`. ...
Technical Details
Message-ID:
<20261202150549.GA36956@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375886-linux-kernel-netdev=dewy.ruReferences:
<tencent_BE8DC9842FFF55349D2FCCDE456B9C6EB709@qq.com> <179559005040.3135.16330539313126668995@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375886-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] ipv6: reject datagrams that leave no room past the fragment header Date: Wed, 2 Dec 2026 15:05:49 +0000 Organization: Usenet Network Message-ID: <20261202150549.GA36956@horms.kernel.org> References: <tencent_BE8DC9842FFF55349D2FCCDE456B9C6EB709@qq.com> <179559005040.3135.16330539313126668995@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1996059"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:MzZ/l+/zQ5rYjhN5NeEd5x67NV4= sha256:r7KXKTEL9T1wo4dCGqpxBjRFKNb5Op6UDlobpsmR2f0= sha1:sH8Wq5dzrUw9zFzK1D1se52HFKo= sha256:xJfScl82ZEm2N0MzoSiFALErkqSk1tEjTb0srfPfOA8= Content-Disposition: inline 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 395AC117681; Wed, 2 Dec 2026 18:07:24 +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 VqDGv9JBRA1f; Wed, 2 Dec 2026 18:07:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375886-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 CBAF711767C; Wed, 2 Dec 2026 18:07:12 +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 DD719342C2; Wed, 2 Dec 2026 15:05:55 +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=1796223955; b=Bqpl6VZ2cZgCQoaOagqMesyU+tNsPmwWEpJt1Izsz6+Y8+rK5G/DAeot5txao6H3/jTP 9Mi3M+aW/Y+CsG6jWQvxKLob8Yzkb2ZhnTpDXLTdxhTqX0heqhl8nlLs7ps2/XtlUVp03 U3Or1R1k/XukT6h6DP4g8ndYpArqFCtsndojzr+s7k/oQLensPw6uMnoTET+bprYuSLGI Wa5oh17RMoorYPYiy+G7TY8O/RPoMCccFF4SWlYBAj52zC/g34cBGToWoW8OQyws6GL94 tC2hjq0/PQHR52U+20XbyFk2oAXf6HP3vmGAA/S4EAfBumB+qjIOsZcAi+UfY4XUGRA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223955; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=oD+grjk4bSiIfUKGcr0Mjx3zIoK3W6ULCMvVnHbwYCo=; b=ijkKe+Qq9/meI0sU5SXlZw3js5EID/7LWP4PW6L+dIekSq3MqrsApiGgWCzLr5bkwphk pGMHYQtNBMsJyQwqdTAKi+8/l74HDSfezBBWJWuWL9zCKUTGL8Z5d82qDW1oJ4IMvCnVs c+j72oDEQFMDTlnWDESmfjT9D7j9n4cwS6sPDkpZpo1tSBvy4RtWaPhAi6TzL3j2CdSgQ Zjsne8Ghk0rfgXAwy+RUbBdN2IRebmmitUusxkQ2q8me3hE4riD1IxuJYCHnf0h0ZCqjo hRXZJZrxyzuTNmvsNlvjWHQ1Ojc7oPnnqMLHJNWuycj/qKLydUjDphP7hH8nba+B4aQ== 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=RleQ3QF1; 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 B4D74606A32F; Wed, 2 Dec 2026 15:05:55 +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=RleQ3QF1 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=1796223954; b=3bmAb9cj+ytozwCWcK1jQFHsZJM76CCZ1FT2+PYq79Q5k4raHommm997L1Uh68Iuipnz BRCekUi4xoF8d7s5ZeIKuuirqCFKtNB2N6kQHI2KM4JwgvvDUyoFDPWMxKzpXTqAD9WFp MHlPoQS1nuZS1sZJwwJMiWcBmzjJVdSKGViWa+e1NSTphn+W7vFLOmRJXFQRolSqOIDeV yp2WU83EUj9aPBWAEUw6j5kqb3gMRqVbyN2j98lgKzMSapU46Fru1SivtPGitSbRU/6+3 YpRVxbY9s4impkmJd7OOkQkgBtxLr3BqiRORDji6lq78ptMDnpPr57d4fC3WKk7i1MQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796223954; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=oD+grjk4bSiIfUKGcr0Mjx3zIoK3W6ULCMvVnHbwYCo=; b=kgRcw5SeIuUkYnB5K1yq07hd9hZc99c3rwQU0gj+S6PbFmkrj7DOmPxSTZAsuzdAA+dI 97c6s0C2HaCENWAXHHyMwEH8VjgQcqbWRg6XVbA2QFW4gEgaw0/yphRsfuBssqseTciE0 wCyvTJ/3FMftuFtcEGnaKW5HrKqnlbzBxSGDNAeprozfDGPFpl7XzpNnbvMs27r0jxbNG o4T0Oijddcy2sqLver0xtxe5tgJlKZhaNC1FvHYzIN+E7U7p/M6dXbO/krrfR0AROf+ez ls+ag4W3hbm0lXEekOr6Wf9jsAk3Cw+X+Cvhbn+pjZTA5hdempbw0MW88DYvRYhPm9g== 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=RleQ3QF1; 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 D269B606A31A for <netdev@vger.kernel.org>; Wed, 2 Dec 2026 15:05:54 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CBB01F0089A; Wed, 2 Dec 2026 15:05:52 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796223954; bh=oD+grjk4bSiIfUKGcr0Mjx3zIoK3W6ULCMvVnHbwYCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=RleQ3QF137xka0jEoXlmEYgw+uygUBfWzWtrNGaPwmKGXlNd/k+DqVm1pf01b+Sz6 SzWM1ddYheJyOPpYApYi3VVoKWMFFv8yJgCqfTOjOqy3OzcZ8s70h3u9XATbaFpkn2 pQiivPccMRxVjzS6zVNBsr+PcPkAcyF7AtDkpK22goQzA0ctn1Xb8ycqwiPMvKiYjf Lq+3011TOddv5Q9mRDqbU2MdAUwYNBM/Cr2NoCTQ8YsABzWGN2F906Q8lCXOBR1jfX CzWrZ6Sqp/BVNf3aAOX+SpHDfdz0Xeeen86ABDdq2V6aARhUvCtnyWxZk8Dwe3F0E0 J9/ywtmaBwMiA== X-Cc: 3596417740@qq.com, netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.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 X-In-Reply-To: <179559005040.3135.16330539313126668995@kernel.org>