Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp125384rdb; Wed, 18 Oct 2023 22:03:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGA9bp+Cj6On9OELwTfgXSrK9EhST/7mmZjNyHb6c2AvGbg2xCe9zuzHPNrLUhEnpxujW9S X-Received: by 2002:a17:90a:6c66:b0:27c:ecec:8854 with SMTP id x93-20020a17090a6c6600b0027cecec8854mr1348654pjj.7.1697691795455; Wed, 18 Oct 2023 22:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697691795; cv=none; d=google.com; s=arc-20160816; b=I4NFVZYOT9eUFVTuUdbZi5P2WEQQ8Re78J+X9DlMz/QMvtgaNG8HfJCAMuJ2NazSXC kRyQaL0/yLzE+N6EkMXTn3KbgnJw1lLAd4+g73esE6V3NJYcRMFzoeEwBvkHhK8f2H0J Jxvc/bHKR1N+Dk4TBlKFk/zEPT8fLbw/GVYWYF9h5okdsvCZpTdAg6kjvT51hQ1/rcr5 0kxM6SSCSK+99FS63W5a+1o6Kbw69RDbjzsgUZ9j9Ken4Co5mG6rgGTa5hDJy9ZT06su vqJEJP7O4xkHUIzJxoizJD7xknpx0uF2CcreAhOEI3nRss9wpvBzMg5MFIbDVj7BRtTc +Mug== 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=OPsw8MvYsqR+rnUHtpa1MRKpBSHQOzp/OTrHhOj2ZcM=; fh=TQ1W+5j5FdFKSUzt5YSh8roa6l4laRqj2nPCHAHGSkA=; b=wW9KZHol7JqE8EPP/hJ0xjgWnI6oY+px0iVZ4o+eFPim2nyZKMzcnSALIBBWO45KKg 8DLVAVoMQzFi8TBIwGTFwi4PQn4L8h5dL3rqQogKIoBD2PzGSRzaUYamtVbbsX4YZpBl QB70ieT2A2BcWiAC5Zv5kHpya98aps452drcNo/fhfkiq+FADPpPFVo7Zx6H7AetbHkU zCD2UJXrMkQ6qk9XjsGd563uj5oJ1SBPrnaPxbcQ4AzpQSPQAodmxjht7GfVvaFBWzDl dmzyiPBxOow9r0W5Zy7F1JOGSWE24CXY/BzJiCC+T12t9MbzilhKYelfW/H4D+TPIkFM uXfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=PojmyVZn; 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 rj2-20020a17090b3e8200b00262ff3a4545si1359066pjb.169.2023.10.18.22.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 22:03:15 -0700 (PDT) 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=PojmyVZn; 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 6B2E08263EBD; Wed, 18 Oct 2023 22:03:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232597AbjJSFDB (ORCPT + 99 others); Thu, 19 Oct 2023 01:03:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbjJSFDA (ORCPT ); Thu, 19 Oct 2023 01:03:00 -0400 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 43DCD114 for ; Wed, 18 Oct 2023 22:02:57 -0700 (PDT) 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=OPsw8MvYsqR+rnUHtpa1MRKpBSHQOzp/OTrHhOj2ZcM=; b=PojmyVZnWvHDhJ/lCJ9rKInP5E AcUramE3nuJFUZsHIHZtDNIgM6d6To9b7uuWe/zzNaHs9xXSjkNUpsxxltgtJQzmgEKLsHBWo1Z6Z JlyJU4vXvWeazhjwMxjCHchzUkX9qO4wNeAEOxtjQynttS1vx0w5MCuY516DpIOhfO5y51ROlpKcl 6IHLChR8QK4WUE+w+q/aSURzdzSbkkX6Jkm8ri/jGfXTXxjgzDPM9mkG10GbtT6BuyCR37r7ALMzn 51q7oNT+/IhAos3qKraKcbF1YR8eV1TWjp/v7bIlIWn+8c215Zf5ZhicLSp7ClE0KYUe9taa+zs/F 4oqEupkQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qtLBK-002eH5-1B; Thu, 19 Oct 2023 05:02:50 +0000 Date: Thu, 19 Oct 2023 06:02:50 +0100 From: Al Viro To: gus Gusenleitner Klaus Cc: Al Viro , Thomas Gleixner , lkml , Ingo Molnar , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "David S. Miller" , "dsahern@kernel.org" , "edumazet@google.com" , "kuba@kernel.org" , Paolo Abeni Subject: Re: AW: [PATCH] amd64: Fix csum_partial_copy_generic() Message-ID: <20231019050250.GV800259@ZenIV> References: <20231018154205.GT800259@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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, 18 Oct 2023 22:03:12 -0700 (PDT) On Thu, Oct 19, 2023 at 04:44:04AM +0000, gus Gusenleitner Klaus wrote: > > On Wed, Oct 18, 2023 at 06:18:05AM +0000, gus Gusenleitner Klaus wrote: > > > The checksum calculation is wrong in case of an source buffer > > > containing zero bytes only. The expected return value is 0, the > > > actual return value is 0xfffffff. > > > > Expected where? The actual checksum is defined modulo 0xffff, so > > 0 and 0xffffffff represent the same final value. > > > > The only twist is that in some situations we internally use 0 for > > "not calculated yet". > > > > > This problem occurs when a ICMP echo reply is sent that has set > > > zero identifier, sequence number and data. > > > > What problem? Could you please either point to specific RFC or > > show that packets are rejected by some existing system, or...? > > Here's our situation: > Our device gets pinged by a third party manufacturer robot controller. > We have updated the kernel in our device to 5.15 from 4.9, the robot > controller is kept unchanged. At 4.9, our device's ping reply is accepted > by the robot controller, at 5.15 it's not. > > Wireshark shows a bad checksum warning: > 'Checksum: 0x0000 incorrect, should be 0xffff' > Lovely. I think I see what's going on, give me a few to think about it...