Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3689374rwi; Wed, 2 Nov 2022 01:51:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tyanp1hh4ntCfLutZYedL16SAfMF4CbGI6S88txVv9UAdQeg4tR2yjQyK7jcpaHOa/r5t X-Received: by 2002:a17:90a:2cc7:b0:212:f074:cf4d with SMTP id n65-20020a17090a2cc700b00212f074cf4dmr24754249pjd.70.1667379063909; Wed, 02 Nov 2022 01:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667379063; cv=none; d=google.com; s=arc-20160816; b=TC8qwJr/ziQn5skWlsliC6gyDlDHA4eHKo9n2njSEbTeF2pIIkVbMxyYUwj67JXySp XnkkkBDfJlpKVLfATMLTOQVJeaSFEuuk+EVD9W0x6VnZBB57ViTbWmZX7Js+iw/8q6Bv AEjGmSFbGG0hJdy2kHGJX7W3/l9XrRUBmKdF7MFRhgsYNLc7+8ms16O0UKNaFYU6jXOD IaAB9wpZF2EE1hOK1Y05XP16d9s5lxQSThJccu/1N3zpzoNR6klqvkdpvxjYAULnjr9q gbponV/DAevpBqn5VEtFrMiRrLwMjiqGwE4jjk9KTVrp55X6Gnf1vK+JR9Uu9TkYYqxv VFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yhT2JyvXFBMgrLYrW2ikOGs3ZjUxXQ9ByTYW4SKRY2Q=; b=NeIfJLcCDjNoEeJLsGyE6dgw60zjuZRll1oDvJ7dHhR/TdZBVcFKfFMNG/Qkt3aiE3 5kseaJ9gR9OIy7KrfAzhlFATVlc/rvhg1STw37wCVLf2LwIFn+NCMA1/jRM4m2c62UrC psr11KL/MjnIg9mtaWrl3ztXD863WupeOHj7Fl4iGBZrVRwjM4qF+27UVvznwXNY5aUk e9HwYsPfTs0Q7Hz33HqG1ODb1cgn5DDNZAPEinb3krTm0KQ1lNY1Y2WP4ub+yceJtoj6 yHmSpC6uydR7ZBGYnG4f+x5T+amRYQVsQ0xL35oXMVKIVL6RHru6sbeGWK2QEV0aci25 l6jQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o26-20020a634e5a000000b004639c772888si15780538pgl.225.2022.11.02.01.50.50; Wed, 02 Nov 2022 01:51:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229517AbiKBI1C (ORCPT + 98 others); Wed, 2 Nov 2022 04:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbiKBI05 (ORCPT ); Wed, 2 Nov 2022 04:26:57 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2FEB822515; Wed, 2 Nov 2022 01:26:57 -0700 (PDT) Date: Wed, 2 Nov 2022 09:26:52 +0100 From: Pablo Neira Ayuso To: "Jason A. Donenfeld" Cc: netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Julian Anastasov , Simon Horman , stable@vger.kernel.org Subject: Re: [PATCH] ipvs: use explicitly signed chars Message-ID: References: <20221026123216.1575440-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221026123216.1575440-1-Jason@zx2c4.com> 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 On Wed, Oct 26, 2022 at 02:32:16PM +0200, 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. Applied, thanks