Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3886658rdg; Wed, 18 Oct 2023 08:42:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGX+H26VBwt6MhuO2qHFPP7kTe8z5yiG7lgyG32YXGHcyMRQYsq/O8o0brvOG0tAJcma2F2 X-Received: by 2002:a05:6a20:12d4:b0:15e:a46f:fcfc with SMTP id v20-20020a056a2012d400b0015ea46ffcfcmr5840044pzg.21.1697643762137; Wed, 18 Oct 2023 08:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697643762; cv=none; d=google.com; s=arc-20160816; b=IIGr04bekcPkO5Sdm0mdU09/v6/r7Y9FaRtnDRtrNxdufCkLc81gZc+FY1csR9wKhX Tk7l5HfSLXDyb6ok2zov29xCxLjuPk7MOv5NWxkDqW6pmvrXVy7/1L9aum0rBFmHZzcS uTmOIJeA6MOMlgFvW3l9QdItl/pJB9muMHYlspa2kerNXXDqHjeJDOaA587Djids9BWi kHz1jvbmsJG/S1QoEJgpZdWuaNrOuVlU8YHCEyPW5EblZ1FNcOqZrVrcPfLa0RndE983 SzasFL1jVV9Z9OaX5qsLut+d82cjqN4e6QJQSfWnSxUgTSODQVTrU7OV28aK8Pdu3zsU er2g== 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=ipBcfsZZpD5KrQh6m7qzHMVdfMYDZ2KFmcuwAv1Ijxo=; fh=qp5ghOR3xgN2JvDEwceA0od5+tgCFHSQEqNJPpI+XrY=; b=koarMm4X4BehFaVxrlwTaH/RLHPRyA9Hm258+rBQcc+Yy43Et5f7CZvuhj6s6YQqlz EQTHFNa5uNn5OgaprgIbYZuphOyiB1cYp+S0h+jJ77alqmKCDgRfKgPsyTxfjRjK5cPF 1EbNfHJwi3vY2S+E4EaFDPt9lRmMzznqI324DH3ok3fh8D7yhfFteFg745CwbCmAOHV6 E2eQ6BhqLonTjlHqDBTVKGtkiCnYjGkcnB4RIW8ggnMq1Yzn1cq1tfZyJvSgTWfbZkXs vduUcWpCcRsFBjyEZy6VuNDCrOHjxd1XkpVSPH0FFVBA0JxsBIoNmYRxe6VahiwdEqor 54yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=PMsJGtWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ca17-20020a056a02069100b005859bd29c5bsi2526718pgb.723.2023.10.18.08.42.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=PMsJGtWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id EF98780202D3; Wed, 18 Oct 2023 08:42:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344692AbjJRPmQ (ORCPT + 99 others); Wed, 18 Oct 2023 11:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231958AbjJRPmO (ORCPT ); Wed, 18 Oct 2023 11:42:14 -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 E97EE114 for ; Wed, 18 Oct 2023 08:42:09 -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=ipBcfsZZpD5KrQh6m7qzHMVdfMYDZ2KFmcuwAv1Ijxo=; b=PMsJGtWoHyCLOZpMSATi+1obwm 8PRyCjXRZvkDcwzihBWaS53OG9F8YZ6cgzKs8wbldCjrkxJAAYRICILOGcGQbwA+cbahp+LfWfDOO c/Og3McKv8poJ802gPUj4Bz5MIrC57XJKKqTy2wyOau3RFlz+pIng2QYLTmQIccBhS9XI3G81iwhh HMjh8E8DmT3HUjyuW7nSDkIOVGI1czFAJDW93LTu74vRgOfklB8S7gQa5SEQqQ/YEDq+G2nReuJFI zNQKFrAOZe5Zel5qFTyVEV2KHLv5M1WtfAvMfaJMNVX5987IG9mYCWgFWst9X9wpeO1vci2AqBi19 gsOJAaNA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qt8gP-002QK4-0D; Wed, 18 Oct 2023 15:42:05 +0000 Date: Wed, 18 Oct 2023 16:42:05 +0100 From: Al Viro To: gus Gusenleitner Klaus Cc: lkml , Thomas Gleixner , Ingo Molnar , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "David S. Miller" , "dsahern@kernel.org" , "edumazet@google.com" , "kuba@kernel.org" , Paolo Abeni Subject: Re: [PATCH] amd64: Fix csum_partial_copy_generic() Message-ID: <20231018154205.GT800259@ZenIV> References: 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:42:37 -0700 (PDT) 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...?