Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1298404rdb; Wed, 6 Dec 2023 14:44:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4+Nm8JcwYW3xYdFdaC9ET/N1rSBxJm6U6EDLlSQzbm7K0r3v+xBNL7Z4egzoAQf31zxWq X-Received: by 2002:a05:6a00:9e:b0:6ce:5431:6e43 with SMTP id c30-20020a056a00009e00b006ce54316e43mr1942296pfj.33.1701902660208; Wed, 06 Dec 2023 14:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701902660; cv=none; d=google.com; s=arc-20160816; b=qT4Ppr2tcDhk9uNrMbTRv7bmNAUhL7j0kjxLyxEbBo++AAcejnpUjWx5MnjDiaTEr6 AjM+6JzawpPS1/wm7Rtoc6AbIqXqs6r1u0YqlVAC+lXmMAyvRk+bjfR3dcQEmEErcmV+ 4DxLrgdp6FO8Zca3xoRk+Bicx7FU2S33IuPKFBCY/1NmQXUDYvuKiGeUB0D3nKCkPWnR uTFosu1gww0+7q2zMUNRZl50hQBrC3fFakN9KmYeGoKbOu2dT5PNNSaTVAkKA1kcdXg2 kZq8KwRkU6LQV+YikdkWfCbuLgJDSIzRCSryRIQziylKudTr+cHIzYEE+w0wYy+Wa5nI as9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=To9ucKTvN543g4EQHIcIczpJa6wUxMMz7xk5pdznqwo=; fh=ldq3c3V9Ed5GG5JaCS5XviCv1ZZL1NK27GlE9n5V6X0=; b=PO1dWnJLeTMDVnDTDnx8LtWmLeFt6knpywLXmdjP1Na18wW5mB2VLKPQG7CZx5yU1s brjYcXyC3IjHs74+ktvbKq4Mh5Feo7rISGbJmX2qMVyYhAjcvMfJNBxgl7MNfOF4Whvl ecmh600ezv8sXS6rxI1fVPTw+W9xC6GgYTbAcPPan5M5L7UjOc6YN3hxPgX4q12pylsp rEb3waDHKeYLkZwu2yOplWidZheESVP8CTt64g/4I7nrh18DxQ2oCIHvhts5duh7aVAE 6EtfZhp5dvHpjEBcUk2mymvdYUXv1ucuyzSwwENgmq/4gJBJRJCiIM+FdFKoupZXNXat 4Qag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=d7JS3LFB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c12-20020a63d50c000000b005c661aaf200si16141pgg.190.2023.12.06.14.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 14:44:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=d7JS3LFB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8452680274BC; Wed, 6 Dec 2023 14:44:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377622AbjLFWoC (ORCPT + 99 others); Wed, 6 Dec 2023 17:44:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjLFWoB (ORCPT ); Wed, 6 Dec 2023 17:44:01 -0500 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D8ED5B; Wed, 6 Dec 2023 14:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=To9ucKTvN543g4EQHIcIczpJa6wUxMMz7xk5pdznqwo=; b=d7JS3LFBmBt2LemFl6aJnf7yrF pktEdrm6H+yEfe9JcinFzn2+knQltLAeCaA+mlRWiBCntnBj1n6YexrKopAcaIm7/wBwzlptDJfjg lQcKyE45QDLdcJHeY50G+k/QkMfNYiuJV9uB51Jf3EF8ZecSwBh3AKgKZGINkhCSOT6v3fRcgbNVV dRD9F667VjY15hhfGY2eXLoh3nusDt3R1U4sP9tTYX9qCv9rkVunAt0zmmuQCOcR12J/t0/Rijk5G 5QsQX7NfkvItf5GJoUy8sNbDLuEMTli4wF3kZ/zaknTxGzIlvCyWsggLgXndvhWj+AtfXb2VR7xqj atGi9E0g==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rB0ca-007y6e-06; Wed, 06 Dec 2023 22:44:00 +0000 Date: Wed, 6 Dec 2023 22:43:59 +0000 From: Al Viro To: David Laight Cc: "linux-arch@vger.kernel.org" , gus Gusenleitner Klaus , Al Viro , Thomas Gleixner , lkml , Ingo Molnar , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "David S. Miller" , "dsahern@kernel.org" , "kuba@kernel.org" , Paolo Abeni , Eric Dumazet Subject: Re: [RFC][PATCHES v2] checksum stuff Message-ID: <20231206224359.GR1674809@ZenIV> References: <20231019050250.GV800259@ZenIV> <20231019061427.GW800259@ZenIV> <20231019063925.GX800259@ZenIV> <20231019080615.GY800259@ZenIV> <20231021071525.GA789610@ZenIV> <20231021222203.GA800259@ZenIV> <20231022194020.GA972254@ZenIV> <20231205022100.GB1674809@ZenIV> <602ab11ffa2c4cc49bb9ecae2f0540b0@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <602ab11ffa2c4cc49bb9ecae2f0540b0@AcuMS.aculab.com> Sender: Al Viro X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 14:44:17 -0800 (PST) On Wed, Dec 06, 2023 at 11:10:45AM +0000, David Laight wrote: > Do we? > I've not seen any justification for this at all. > IIRC the ICMPv4 reply code needs the checksum function return 0xffff > for all-zero input. > > So the correct and simple fix is to initialise the sum to 0xffff > in the checksum function. You do realize that ICMPv4 reply code is not the only user of those, right? Sure, we can special-case it there. And audit the entire call tree, proving that no other call chains need the same. Care to post the analysis? I have the beginnings of that and it's already long and convoluted and touches far too many places, all of which will have to be watched indefinitely, so that changes in there don't introduce new breakage. I could be wrong. About many things, including the depth of your aversion to RTFS. But frankly, until that analysis shows up somewhere, I'm going to ignore your usual handwaving.