From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F558606A33E for ; Thu, 3 Dec 2026 07:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=hN4vxkME; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VFGUyFTK DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:In-Reply-To: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=BR4NviEqW7Tcym8ltSQK5hr/7EJAh/jWfweaWWfDmho=; b=hN4vxkMEyTqsKd/pmjhcbOIoWZ RE7AAbrtSr+6rDuy3tQifhamh3hIWs0XL/+DURhPuFY9XyjDsMbwk0oSKIcD73ihuk11V2Boh0GPb 1hi9Jmd947wkXo4SnhP3w7envngPtFhfxfKja/BWec1NAnJOwnsVRowkjpRKwlJTNM0QsdX59P19+ 91Ti/QTNhjWyYyaSAZqHGbZMcWeEKq2CCV5IKTYTWzk1/uR7l4zFjX+RHRE1U/wNb9KaDKJwfYjPZ XbCm+BeLG63SRBNih6xO3ocfWJniA2v/j4zm9+FVCWYcst3mEJ1QrcPRGxURljmZmj9lS6y92BLUi 5an/5rGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ0qC-0000000DiuE-00z0; Thu, 03 Dec 2026 07:02:52 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ0q8-0000000DitV-38zn for linux-um@lists.infradead.org; Thu, 03 Dec 2026 07:02:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796281366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BR4NviEqW7Tcym8ltSQK5hr/7EJAh/jWfweaWWfDmho=; b=VFGUyFTK3VMUWINhOCxZXP5eVuUc0ur+P5ry0AB0+OzoiORUiENrbtxwnHUjhxmW8c5iMN vhKTf7PGotPkJiqYR68CbNJAQ+MusIa5rJ4ibKyOY49cG94iz7XWc+xZWRF858j+cVP7P6 AG3BeoBotkc/mqUa/ZOLxTUdLBz4zks= X-MC-Rep: binary re single Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-14-XoFNjD8eN_WbVSiy7ifGMw-1; Thu, 3 Dec 2026 07:02:44 +0000 X-MC-Unique: XoFNjD8eN_WbVSiy7ifGMw-1 X-Mimecast-MFC-AGG-ID: XoFNjD8eN_WbVSiy7ifGMw_1796281363 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-4c42d1a8d38so2559558f8f.3 for ; Wed, 02 Dec 2026 23:02:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796281363; x=1796886163; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BR4NviEqW7Tcym8ltSQK5hr/7EJAh/jWfweaWWfDmho=; b=OaezLpacgoBssgx1i44R9IZmu08+UEkPnsSVQ0bEUuxqgKtbP1WMmFdauSOszuRmA3 HFgVCgAq4VdsgxOH+YAMh7pbCx6Sv6tgQyI9wuGGmcJLqXtCqhoKMGoyQel9+NrzfEr5 YKDvH+Dfs9s9jfuqSwYbsEZRcqjw1cY52l3jxWecW2oD9biDYn7gJ7cUZDCmZUOHx0UP t9GiZFQXWGY0FdOfRQRM75fXogr2jsq7tiLa9XlwMBgGQePUZ+DLigfyKEf/JNJicdsW Er9EW3GWufXOVU3+Msgnoq0AkVWGfHGGvQTtb7XFoxVfR4A0EasCih6r0XSb8soNHPPi teCg== X-Forwarded-Encrypted: i=1; AL+hErETFn1kBm6vgH5lh5qBRiV1qxpNFBy339DnAVVThDpfJ3Ej93Gd5ih58kRTTIaf5Gu8374Wpk/BnQ==@lists.infradead.org X-Gm-Message-State: APuU4Z/UKlK+nYgs4Nw6OF9l2WWQtR7I/ODEVhiE04Tzvws+fYDsZ+AS czNABVz5mcYiHP8WbisO21V6qUtJPTuZrEB9YzpXp7jPOWvpRYd4XHpx7ZnMILES3VBojdmtGtA Vf/b+HgbE58ShDrTnwMSb/KUH9PvgkIhoaC+P352WTTjK81XqIyjpDDovGJjzlflQmA== X-Gm-Gg: AZFdTZf5vz36aLYt2SRoGSrHFAIR9UqbEtjt8bHftRJkhkgELXrarTI6SihGSB/bogk AJqxVICO0/iYPPFNE5WfZeJr6jM5XuTzBQXijwUd1qdrhbB53TxUnAa7KaOOxLDtgRMUxyu0hOk 5NnCw2EPo9LQHfWuV7Ewd/FD4VKegpNCP8eNnHP5p96xGaDtmip3v4O8yNj/LVV5WeOLLRtCCwz u0kOLLB7tX71MCb/l2SgfuQ8fQ10eeJSA5ZG8TkzosJruY2Aarq+sKSOopD2FCpz87Qwe6I4nQt 3U4LomYAlGYxcxoemnsxe4aySI98b2CbFrBjZgrWf84e882VBzxCKPUpLkVqi/J7goodazMPrsn 2c0FHUe0qOGzZqZcFs07yVQzIs3W1FW9zjtDuCZjQcg== X-Received: by 2002:a5d:6691:0:b0:4a6:c3f:9d0e with SMTP id ffacd0b85a97d-4abb3d2c0bemr62125504f8f.44.1796281363029; Wed, 02 Dec 2026 23:02:43 -0800 (PST) X-Received: by 2002:a5d:6691:0:b0:4a6:c3f:9d0e with SMTP id ffacd0b85a97d-4abb3d2c0bemr62125448f8f.44.1796281362445; Wed, 02 Dec 2026 23:02:42 -0800 (PST) Received: from redhat.com ([2a0d:6fc0:153a:4c00:6468:7acf:febf:a046]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa3882sm80587434f8f.49.2026.12.02.23.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 23:02:41 -0800 (PST) Date: Thu, 3 Dec 2026 02:02:37 -0500 From: "Michael S. Tsirkin" To: Showta Ishizaki Cc: netdev-bot+sinfo@kernel.org, Willem de Bruijn , Jason Wang , netdev@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Paolo Abeni , "David S. Miller" , Andrew Lunn , Simon Horman , Eugenio =?iso-8859-1?Q?P=E9rez?= , Xuan Zhuo , Richard Weinberger , Anton Ivanov , Johannes Berg , Jonathan Corbet , Shuah Khan , Randy Dunlap , Chris Arges , Paulos Yibelo , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , virtualization@lists.linux.dev, linux-um@lists.infradead.org, linux-doc@vger.kernel.org Subject: Re: [PATCH RFC net v10 0/6] more virtio-net csum hardening Message-ID: <20261203020144-mutt-send-email-mst@kernel.org> References: <20261203.rfcv10.52108.0.zakinko@snowrabbit.org> <179626315509.3305.6607913790638974560@kernel.org> <20261203.rfcv10-reply-bot.zakinko@snowrabbit.org> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <20261203.rfcv10-reply-bot.zakinko@snowrabbit.org> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: MCiEszqt0L8mmHH6DlTpOa5sxr8h5A43G4kVXopc578_1796281363 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_230248_863818_AF1CDAF7 X-CRM114-Status: GOOD ( 16.98 ) X-Spam-Score: -2.8 (--) X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Dec 03, 2026 at 11:39:59AM +0900, Showta Ishizaki wrote: > Thanks. This is Michael's series; I'm carrying it, and the issue it > hardens is not theoretical and was not found by an LLM -- it was first > reported by Paulos Yibelo, with further variants from the people > credited in patch 4. > > I triggered it at runtime. Injecting, through a tap with a > virtio_net_hdr, a frame whose csum_start/csum_offset point away from the > real transport checksum, a kprobe on __dev_queue_xmit showed the skb > reaching transmit still CHECKSUM_PARTIAL with csum_start inside the > payload; the stack then completes the checksum at that offset, past the > protocol processing that already read those bytes. With the series the > metadata is validated at ingress and such a frame is resolved or > dropped. > > For patch 5, Chris Arges triggered a wrong outer UDP checksum with > non-zero Ethernet padding and I reproduced it for a v4 and a v6 outer; > the v10 I posted folds in his fix. Just to put things into perspective, we are talking about users who already can inject packets with bad checksums. > I can put these symptoms in the cover letter or the commit messages on > the next repost if that would help. > > Showta