Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1174343rwb; Thu, 15 Dec 2022 07:14:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhFtkEYkhhXG/QbWUpHuWton9yDfXnSpdgMRNMrztu9ZvLidSydhB2a9l0eP/f/4Vt8DUl X-Received: by 2002:a05:6a20:6a85:b0:af:9539:a29e with SMTP id bi5-20020a056a206a8500b000af9539a29emr2775908pzb.16.1671117268371; Thu, 15 Dec 2022 07:14:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671117268; cv=none; d=google.com; s=arc-20160816; b=bPi1JVr1gWmCb45+B9AK60jZZOm0R3d5FhJXstaekU76fdppFvYXuaP4Y5Cj5c578T 0Pqmq0oDBgdNZ/+zA3DXE9SFmAqbC2L3BF6oVF6I2BWqKGXJfdth7lVFe1ddFn+fJbyT rR1cjTI+91k+JJQ2CbXpQXJNfMTxTa9UkVi95E3P4516mKdrc0b0Lw+MNkNmyutjZEd1 XA44oVwa755QcZPGFN+HfAn5FEAy0O42rX9TWEx2/mZEmV6h+nEdvMFXhE8beFSle8jF 1mdmpwyc2vlVHhx6ouPfq5jF7RASvlGw59g3gJxOPPSO68+spdvSXJECBZX+V6h7n6hq 3iww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=l7YnMPWOflgvDz+LFS+9q2qBCHLrkZRBH2yiJdvSvgg=; b=pDighgTLB1G1jNDAPSAFACvrF/pm3b/19yraPKwRhk+IZ10oC1cq9Gu8vXaFNC+o9n FzEfgU53K1lngT51m7FaLKkch1HOP++C9KJ1YD1Noc8HEpCW46ZvfU5nuY3pHO98XO6u 0cPkqMS3PcnF0iuPRGIAGU1ufGW/fGIhC2kCqJXlDJHfmpl8n2EhkrmFwl+XJx5dz7LH hyKZaDazk0icbhnSw9Fofn9u59CONepSGoyTnRS24W0Uid7frdQNvFZPLdjeH6gPuVkx NRFYmbwzPH0SeLBVXLlqKFugBoyDwMuDGPc3z/hi8psbWCHB6z7VccNb9qAAopBoeRta BZPg== 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 u14-20020a63234e000000b00478d8bd0906si2980621pgm.737.2022.12.15.07.14.18; Thu, 15 Dec 2022 07:14:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229882AbiLOO6I (ORCPT + 69 others); Thu, 15 Dec 2022 09:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiLOO6F (ORCPT ); Thu, 15 Dec 2022 09:58:05 -0500 X-Greylist: delayed 377 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 15 Dec 2022 06:58:04 PST Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B4292F65B; Thu, 15 Dec 2022 06:58:03 -0800 (PST) Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4NXwDH3L4Zz1s7td; Thu, 15 Dec 2022 15:51:43 +0100 (CET) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4NXwDG6gW7z1qqlR; Thu, 15 Dec 2022 15:51:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id MCfDl9-9q1u1; Thu, 15 Dec 2022 15:51:41 +0100 (CET) X-Auth-Info: kSr35qTNpPStqMNbyk6H06PVKUXS/dvOYpUkCovEhc47FsWskNcys0YbNBFvy8Yd Received: from hawking (unknown [81.95.8.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 15 Dec 2022 15:51:41 +0100 (CET) From: Andreas Schwab To: Geert Uytterhoeven Cc: "Leizhen (ThunderTown)" , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Alexei Starovoitov , Jiri Olsa , Kees Cook , Andrew Morton , Luis Chamberlain , linux-modules@vger.kernel.org, Steven Rostedt , Ingo Molnar , David Laight , linux-m68k , "Jason A. Donenfeld" Subject: Re: [PATCH v9] kallsyms: Add self-test facility References: <20221115083349.1662-1-thunder.leizhen@huawei.com> <49070ac3-02bb-a3b3-b929-ede07e3b2c95@huawei.com> X-Yow: Loni Anderson's hair should be LEGALIZED!! Date: Thu, 15 Dec 2022 15:51:40 +0100 In-Reply-To: (Geert Uytterhoeven's message of "Thu, 15 Dec 2022 15:43:00 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 Dez 15 2022, Geert Uytterhoeven wrote: > start > kallsyms_lookup_name() for kallsyms_test_func_static failed: > addr=8dbc, expect 60308 > kallsyms_lookup_name() for kallsyms_test_func failed: addr=8dbc, > expect 60318 > kallsyms_lookup_name() for kallsyms_test_func_weak failed: > addr=8dbc, expect 6031a > kallsyms_lookup_name() for vmalloc failed: addr=8dbc, expect bdc88 > kallsyms_lookup_name() for vfree failed: addr=8dbc, expect bd6de Curiously addr always comes out the same. What symbol does it resolve to? > kallsyms_on_each_match_symbol() for kallsyms_test_func_static > failed: count=24890, addr=1ee870, expect 60308 > kallsyms_on_each_match_symbol() for kallsyms_test_func failed: > count=24890, addr=1ee870, expect 60318 > kallsyms_on_each_match_symbol() for kallsyms_test_func_weak > failed: count=24890, addr=1ee870, expect 6031a > kallsyms_on_each_match_symbol() for vmalloc failed: count=24890, > addr=1ee870, expect bdc88 > kallsyms_on_each_match_symbol() for vfree failed: count=24890, > addr=1ee870, expect bd6de Here too. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."