Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1569411rwb; Thu, 15 Dec 2022 11:43:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6e60fwUA64k+nMFktfZnAjjaaQEew3lnBanuIlNJV/cZbXV3Bmwrk8rxAoHhabjXxUnzAS X-Received: by 2002:aa7:8518:0:b0:576:cda4:16c4 with SMTP id v24-20020aa78518000000b00576cda416c4mr28460765pfn.10.1671133430627; Thu, 15 Dec 2022 11:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671133430; cv=none; d=google.com; s=arc-20160816; b=q7ypQHEudH5rVPau+XlY2RfsSFWWBiQpypyd6IVXtmyl8FNWI9sxGINso3uNqlttZP mvdVi0PtG+6uAb3EXv3H6vF0LV9Cmt21fX9wa1INcxP3OxGdWuvpgaj6bsZatrIzIXtU rMCa2k0dJqBULv4yjDZYQ7DJ5ZD//6b4KktzGNMzrXHjbW4Cw8sw31EtMHTHNUVazlQj 0P8q+SzzB1KMS/VGqnYf3B18Atr3yjJ1gutoHQxQx/J6wP9ndMAymw+tm86ZxAGQNbcZ 7NvNa2JHoDAZj3pnu6OcxtslfzsZfdKd3k7amjc+Brn7Ug+0QL0Sl08WKkvc7pjRjZ/v oZMA== 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:dkim-signature; bh=U2wIk9Iy3lO0eyDurNiRd13Y8NnkLNZtrzeTYAQ5/0k=; b=lg2DdavwsA+dI1wsuYjmmWW7rQA5uDQDScP4zscFKcykgiwHKxjKmYeldZqptXhq9Q oe3pv8l+ZN5Mlfc8aw6ZEB7xADE5ktOs24ApZ7UNP2pI4wPr8rhqbelLHhERB2JXXIb4 ExXNh52VZLOH2JJygw14msY4yWXnlK3L5XQr/MIEhLwcrLrZdrKQDGqjLRGGZ/+eJ4qC NXY8YaInRTE5f3nCHz+q6acnSBIcwbeYpelVxJPKeLrmUOPkUqvAYPW7nduE+Lk7gnNx n9dhElwTTV5HDrfKWBBE8qk7zc4g2sn/dqCFtjVWBApHvctFb6Xb73EaJSfjbcjguNt4 DcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=flZq12FL; 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 d18-20020a056a0024d200b00576c9c3c4aasi1554pfv.5.2022.12.15.11.43.33; Thu, 15 Dec 2022 11:43:50 -0800 (PST) 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=flZq12FL; 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 S230234AbiLOSnu (ORCPT + 68 others); Thu, 15 Dec 2022 13:43:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiLOSnh (ORCPT ); Thu, 15 Dec 2022 13:43:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235FB286E9; Thu, 15 Dec 2022 10:43:37 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id DAE20B81C29; Thu, 15 Dec 2022 18:43:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD585C433EF; Thu, 15 Dec 2022 18:43:33 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="flZq12FL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1671129810; 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=U2wIk9Iy3lO0eyDurNiRd13Y8NnkLNZtrzeTYAQ5/0k=; b=flZq12FLtve8AI4p3IkuE70hLdYvdwU6KPaOtMYG8Oa7VX5Ve9o7hw2Q/fWm5t7a/Oe0Lm B8jsGuyyAA7hix9P5en6ZZ+FBzZ+NHQaiqECHkCWJ0DZ8XGNqxr+0KaOs8Nbf9ACUPSaCr ArNMjYAx2KHNdymTBvZC9C1/jP9/pEQ= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id c972e1f6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 15 Dec 2022 18:43:30 +0000 (UTC) Date: Thu, 15 Dec 2022 11:43:28 -0700 From: "Jason A. Donenfeld" To: Geert Uytterhoeven Cc: linux-m68k@lists.linux-m68k.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] m68k: string: Make char intermediate in strcmp() signed Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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=unavailable 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 Thu, Dec 15, 2022 at 02:30:04PM +0100, Geert Uytterhoeven wrote: > Since char became unsigned, strcmp() always returns a positive number. > > "res" is used to store a byte difference, so it should be signed. > > Fixes: 3bc753c06dd02a35 ("kbuild: treat char as always unsigned") > Signed-off-by: Geert Uytterhoeven > --- > See "Re: [PATCH v9] kallsyms: Add self-test facility" > https://lore.kernel.org/r/CAMuHMdWM6+pC3yUqy+hHRrAf1BCz2sz1KQv2zxS+Wz-639X-aA@mail.gmail.com > > I'm wondering how many surprises like this are still hidden... OOOOOOOOOOFFFFF! Not sure how I missed this one. Perhaps the ASM alluded the coccinelle scripts. Anyway, thanks for catching it, sorry for the bug, and here's my: Reviewed-by: Jason A. Donenfeld I assume you'll send this out for the next tranche of m68k fixes. Jason