Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2735571rwb; Fri, 16 Dec 2022 06:01:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Gj5oPhERlixzfF1TBAVcafkFmCulpbjWuTnKwzFTsvSdQMV3phpt6kFG6j96iADRCvLlm X-Received: by 2002:a17:906:581b:b0:7ad:cf9c:b210 with SMTP id m27-20020a170906581b00b007adcf9cb210mr28635161ejq.18.1671199316186; Fri, 16 Dec 2022 06:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671199316; cv=none; d=google.com; s=arc-20160816; b=Bx1rMJTSMxtD/ogwzmar1JiJKpZAxV1PCTa2mQ7433hLntNWZT/lnHgt9kekBjn9N5 nuKaX6Rpee+jYKRjn4YPPEgCiS0XsmfJhcHwP5qfIYHWviHYfthGQEEFQU+5xS1SSUk8 qc/T2bQ0TCFGcHFiY7y0Tyg7dJsHbsypncAJRLfceW4qkj4qxVC2iuqknb+l8T6Vl+cF zvzUN12g/CVtsY6OmOEhdwc1GRM+CJw78YZvoJiiSazpKYW2niSh3YE7URnBxWKkehRd JhQ9nUeXzwZX8LZfMYbAlUhccjoFUwRp3lywo9Igz/bVI8kWl7yn2XiVJXcTV1OV78Z3 gNDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=WihF0LkQVi2MHRt8s+GZ8HhhlStHn3ekYZYLvfQYO90=; b=QIR3b/88Tw/rhBRFf45meipbAR4B4s43BiIG1nRukSK5C9xjSDxvkE/XvG2nxZ5uum FuzAKFmOrK+Pzp2rDGWuyi4koFBz7OtXmXuXh+OOuI+5JTETn3cjaoVNH/gAEnYwS2w1 fMsXefpXpVCF4Jh2DHZoTsmCSMNIwZjCDHBGC5Mg1qbHTfzETcIwtorYuEOIFEB7y1/s 1ZK6pCGc1w/QhI+jtrszQ4MBMnhXQ3HWT4/zbXkgfj0cIlm9fjpQqqDD4q3bpLHQExej BBdtdpeat6ExkAbCZzgOdRCq78Qd0qpb7ggPR6Gw1+gZJ1h7JgE1T+W1OUvB8VeYNyHd 7VbQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020aa7d5c2000000b0046c8d52c8c7si2325785eds.177.2022.12.16.06.01.36; Fri, 16 Dec 2022 06:01:56 -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; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230242AbiLPNbi (ORCPT + 69 others); Fri, 16 Dec 2022 08:31:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230421AbiLPNba (ORCPT ); Fri, 16 Dec 2022 08:31:30 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C874D18373; Fri, 16 Dec 2022 05:31:29 -0800 (PST) Received: from dggpemm500006.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NYVN21pMJz16Lcg; Fri, 16 Dec 2022 21:30:26 +0800 (CST) Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 16 Dec 2022 21:31:26 +0800 Subject: Re: [PATCH v9] kallsyms: Add self-test facility To: Andreas Schwab CC: Geert Uytterhoeven , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , , , Masahiro Yamada , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , Luis Chamberlain , , Steven Rostedt , Ingo Molnar , David Laight , linux-m68k , "Jason A. Donenfeld" References: <20221115083349.1662-1-thunder.leizhen@huawei.com> <87len7k1yn.fsf@igel.home> <9f2d4035-c647-4bd9-ffff-b970a88bcc88@huawei.com> <87a63njzf7.fsf@igel.home> From: "Leizhen (ThunderTown)" Message-ID: <7a7713d1-a06e-ab48-48de-a6557c0149b0@huawei.com> Date: Fri, 16 Dec 2022 21:31:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <87a63njzf7.fsf@igel.home> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2022/12/16 20:39, Andreas Schwab wrote: > On Dez 16 2022, Leizhen (ThunderTown) wrote: > >> Why consider the high bit? It is not memcmp(). If the high bit is set, >> it is the user's fault. > > Nope, the semantics of strcmp are defined on the full CHAR_MIN to > CHAR_MAX range. OK, I got it. > -- Regards, Zhen Lei