From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1A74C4332F for ; Fri, 16 Dec 2022 13:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbiLPNbg (ORCPT ); Fri, 16 Dec 2022 08:31:36 -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 Precedence: bulk List-ID: X-Mailing-List: live-patching@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