Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3382878rwi; Tue, 1 Nov 2022 20:42:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56Z7y1cNyXvT68foYDXkvjxm9aGYfejHk1bPOp/dTz6WPGAc8z1Nns03DQ8WB/33jsJcet X-Received: by 2002:a05:6a00:230f:b0:53e:2c2c:5c03 with SMTP id h15-20020a056a00230f00b0053e2c2c5c03mr22840330pfh.11.1667360553837; Tue, 01 Nov 2022 20:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667360553; cv=none; d=google.com; s=arc-20160816; b=Tc3qnBhYvDQDM1oxc4vk5pSDyGc7oqDf0wv5L/uc1zmtikPfPvdBnUVQb696WVgIR2 44/Fzg/HNb0KqgpfZ378xkeC02SipfrpS07C+TGug8bBkrbxzatSPqj/QsnezZS50PpC 5I876YRK55caWYWaOcRVrmfdqFsvGwrZRbzG0KD3emps1GZwVdzp0E+pwGv9rjBBHosx i+EEpKCUMV7TUR35iX7KscpVCfSYCWXe5pZnmpbYzRrHtqyOsCcdL2kCKf7PXovCkceC 95WM+Mb+RkY7UA8wCjZhUa0xD1R1OIPmDIR87rLy02sAAQ4P/I65c0bubRj8TRRtqnYo ahag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UBDll3aYfc54ok2vGI+aLXjCxJBzqPNfmky2K1csXd8=; b=lDtyL+5/Q8donnAPLCw5IxBm2pNBoVP2Qbd2Y8BRXAa0uYDpP9611htdJt4Q48v9mW q8/koupa22ZcAVf/a08NZ5YYt7f1yPIJgDhbLo/mqePN5HvLPTvBcsBkynXqGIaSi9lm /TpANdygMuumlUV8NFD7dkCH1ODhb4Q5h46Lzvx0BMN6tWEljDLHST8S2zni44b9qmXd wkUjNS36dnJkO2qVQGZF/K7C/tLya+o1+j/jrtFY3E0dPPcCvYESTv4ITj0y4TBugO9o T6vcWQYTVXm2L6Ip5XNXwGbBMQspUBr8In9eOOyV0HsVFKfM/hxaQ/9LAoVbeLmM/2M4 9KXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="QABkUn6/"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j12-20020a056a00234c00b0056d568dc25fsi12357678pfj.33.2022.11.01.20.42.21; Tue, 01 Nov 2022 20:42:33 -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; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="QABkUn6/"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbiKBCo6 (ORCPT + 97 others); Tue, 1 Nov 2022 22:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbiKBCo5 (ORCPT ); Tue, 1 Nov 2022 22:44:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D4161BEAF; Tue, 1 Nov 2022 19:44:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D214F617A9; Wed, 2 Nov 2022 02:44:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F702C4347C; Wed, 2 Nov 2022 02:44:54 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="QABkUn6/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1667357091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UBDll3aYfc54ok2vGI+aLXjCxJBzqPNfmky2K1csXd8=; b=QABkUn6/Oy6XT6TEVj0zIC+t0OIaIi74m1DlLjhBC2UUC0vf6H2NixR2DkmiZJFVpxxB0L it7OVWJtXOS5RpjPqRhvapbKSIjYp27zXwKIO9++vCWDVWdw+cB63qydiMMkhDgmRIbXhp Cd+/vmigoMADd0ec/gewUBqXPVU+gc4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 2def14c2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 2 Nov 2022 02:44:50 +0000 (UTC) Received: by mail-vk1-f173.google.com with SMTP id f68so8296788vkc.8; Tue, 01 Nov 2022 19:44:50 -0700 (PDT) X-Gm-Message-State: ACrzQf0zrW+nRYlzNBxRQTKtZVOvNSLWwybUNrAQ2gKD18blH/2WGsPc 5hUG8VBoCOYe6p5/CUuB/wmI8v5N85y+SzWWmbU= X-Received: by 2002:a05:6122:318:b0:3b8:394d:e5ab with SMTP id c24-20020a056122031800b003b8394de5abmr7431793vko.37.1667357089200; Tue, 01 Nov 2022 19:44:49 -0700 (PDT) MIME-Version: 1.0 References: <20221026123216.1575440-1-Jason@zx2c4.com> In-Reply-To: <20221026123216.1575440-1-Jason@zx2c4.com> From: "Jason A. Donenfeld" Date: Wed, 2 Nov 2022 03:44:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ipvs: use explicitly signed chars To: Pablo Neira Ayuso Cc: Julian Anastasov , Simon Horman , stable@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, lvs-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 Hi Pablo, On Wed, Oct 26, 2022 at 2:34 PM 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 Wondering if you planned on taking this into nf.git for 6.1? Thanks, Jason