Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp909287rwi; Wed, 26 Oct 2022 08:35:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55/NzKF9s1FVb8s5qoOEbeTcZt1GmrFe7e33sDgGHJDK0TMgesMGvd1rCfdwbI1fDPc0YW X-Received: by 2002:aa7:859a:0:b0:56b:d76d:8c76 with SMTP id w26-20020aa7859a000000b0056bd76d8c76mr15744461pfn.77.1666798551373; Wed, 26 Oct 2022 08:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666798551; cv=none; d=google.com; s=arc-20160816; b=VDXKtLKy9O3UpBEqYXPChTM8JybYX8f8FIus4eMUTmH6Do9K/VGp6JqNVH0WUy0W2Q XkigFY84Mf6SdD7pAKcwTcJn9F65nUsuQglzxu0CKJ4W8aOS0tOaDeeFS2nCykDu6fLC rjI1GcpFmivHmNXHdbRjQ/Dr9IIo+bdF8dGFTDmT8HujZLZB4WYzWDlP8FUPH+Yr07jC QQWEzweE4snMua/8QrlPojDX3bVRzYwKhErAk8zwHPciMwDt4tgwkbmfclFId3/b6VL3 CJezZtLSCzUNMaoK5dVj1QpLT7DRX0yjVXZUS5vGJhAuB9C4UdDgZYvBM/lmm7gcI+n5 9xZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=ICGsJB9aCvnoHRZHEW+BzWC0XRscmmlqU2MkC9Uj7lo=; b=cv9eppss7QDs7+BDvCZ4eopleg3lL+Z+YpyD/rIM/FxVLx+TbqYXDQOsNaqIMBPPIc lycgC+K+BX7s2xaA5s/bhD8g3yTT7pYy22w9sw1qa0tuqxSx77tN4NEsksb8KTOC5DKK EnmS1BsI4FMS5R+ePfMytgC2ZwNQsttKa18bjXWic5it1G1wH1pa/SH8W5X4qAbCXrTv B3f9BkVTnnq0TYDjDyDbI42yCtVRFDveCPBT9x9IUTP54FJYGuiN7iuxq8NoA/DFeZhd bVGU+tSgBkgGH1vYfcKr/fDlm6aDMMSwdzBlJK4X0fyyYLstnFdnhBPBtR87CYMKZW14 5dFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ssi.bg Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b22-20020a63d316000000b0045f8c545d04si7206617pgg.516.2022.10.26.08.35.33; Wed, 26 Oct 2022 08:35:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ssi.bg Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbiJZPBR (ORCPT + 99 others); Wed, 26 Oct 2022 11:01:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229949AbiJZPBP (ORCPT ); Wed, 26 Oct 2022 11:01:15 -0400 Received: from mg.ssi.bg (mg.ssi.bg [193.238.174.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2047F101CF; Wed, 26 Oct 2022 08:01:12 -0700 (PDT) Received: from mg.ssi.bg (localhost [127.0.0.1]) by mg.ssi.bg (Proxmox) with ESMTP id C601A11DDB; Wed, 26 Oct 2022 18:01:11 +0300 (EEST) Received: from ink.ssi.bg (unknown [193.238.174.40]) by mg.ssi.bg (Proxmox) with ESMTP id 9092211DDA; Wed, 26 Oct 2022 18:01:10 +0300 (EEST) Received: from ja.ssi.bg (unknown [178.16.129.10]) by ink.ssi.bg (Postfix) with ESMTPS id 654093C07E1; Wed, 26 Oct 2022 18:01:10 +0300 (EEST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by ja.ssi.bg (8.17.1/8.16.1) with ESMTP id 29QF19DQ097559; Wed, 26 Oct 2022 18:01:09 +0300 Date: Wed, 26 Oct 2022 18:01:09 +0300 (EEST) From: Julian Anastasov To: "Jason A. Donenfeld" cc: netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Pablo Neira Ayuso , Simon Horman , stable@vger.kernel.org Subject: Re: [PATCH] ipvs: use explicitly signed chars In-Reply-To: Message-ID: References: <20221026123216.1575440-1-Jason@zx2c4.com> <4cc36ff5-46fd-c2b3-3292-d6369337fec1@ssi.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, 26 Oct 2022, Jason A. Donenfeld wrote: > On Wed, Oct 26, 2022 at 05:20:03PM +0300, Julian Anastasov wrote: > > > > Hello, > > > > On Wed, 26 Oct 2022, Jason A. Donenfeld wrote: > > > > > The `char` type with no explicit sign is sometimes signed and sometimes > > > unsigned. This code will break on platforms such as arm, where char is > > > unsigned. So mark it here as explicitly signed, so that the > > > todrop_counter decrement and subsequent comparison is correct. > > > > > > Cc: Pablo Neira Ayuso > > > Cc: Julian Anastasov > > > Cc: Simon Horman > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Jason A. Donenfeld > > > > Looks good to me for -next, thanks! > > This is actually net.git material, not net-next.git material, > considering it fixes a bug on arm and many other archs, and is marked > with a stable@ tag. OK. As algorithm is not SMP safe, the problem is not just for the first 256 packets on these platforms. Regards -- Julian Anastasov