Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3114196rwb; Fri, 16 Dec 2022 10:13:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uHSPshIe5aC+XLZK02TCQAseiiE2fqGiIQl2JdLK833M0fr1C0BQlDESdSWY/8G0aGGrQ X-Received: by 2002:a17:907:20b3:b0:7c1:51ee:a2ec with SMTP id pw19-20020a17090720b300b007c151eea2ecmr21718550ejb.46.1671214435150; Fri, 16 Dec 2022 10:13:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671214435; cv=none; d=google.com; s=arc-20160816; b=u1mYfndYlPAP1tceSpAWQ8elatPXV4a5saQSIw8Da/p49vVw31bvYgYUDSX3TwmD+k UsXOA0xB2bVtCClEaROSSO7X+mBBRPqw4/07XU3QqnnGIqNGt82azUQBZk/4itwi5LQl vm5ChJCTt9Sx/h845ljP2BtMWy2p8k+X+D9TV1yEXaj+Xq6l/IGI8X5q5wpfm+vpVPXv FunrpnTl9yKaDOlH2DpYZiFiTSZh/Jp21nOUWICA46rLpRzLR1ZSJ1cwwgwJnnlWR/Wa 5muA9M6lcdGioyCa+iAwHMq+ndHbVbDoUYdw69o4grRcG7yPnUxDM9qmEooNMbrLsOlz fMsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=hxI4ucR6Dms1Irtypsr+FdjY8z2rWtMXRT9rIWcVzEw=; b=YMxHj2nx9rVuD/H0hbU0j0LHNVvBB9h+2udMTC5UoiVGSGtdqLChgs88rNa3hbQvaU GdPeRpKCaNgscGlwyCJYFuS17h08efS4buOXU8iMUXezEJxzlTSeDzCdyuCM6Zo5v38c WZbBfpem1L2jcjuO5wNg/YXp0AqQHcMJ+S0DdfeHsOtf/Qbph30ReRKwP8cISJ0LQxxO WbZY1Q4Ch9ZGfsN71wL/U3THjD8Xm9UpPMKcx92wZDAuCMYHTTwvlz8lp6JMhle41kmJ qiNLSD2g6yqAdjndFdvQ2Boch24x1tqIDcb6eTdbUJ2QITtoWztL5BEpGLZ8w9pdoK9F znKg== 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 x9-20020a1709065ac900b007c0daa7bc20si2406585ejs.880.2022.12.16.10.13.39; Fri, 16 Dec 2022 10:13:55 -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 S231744AbiLPRTy (ORCPT + 68 others); Fri, 16 Dec 2022 12:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiLPRTx (ORCPT ); Fri, 16 Dec 2022 12:19:53 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3799E29CAE; Fri, 16 Dec 2022 09:19:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C5D70621B9; Fri, 16 Dec 2022 17:19:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09401C433EF; Fri, 16 Dec 2022 17:19:48 +0000 (UTC) Date: Fri, 16 Dec 2022 12:19:47 -0500 From: Steven Rostedt To: David Laight Cc: 'Andreas Schwab' , "'Leizhen (ThunderTown)'" , Geert Uytterhoeven , 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" , Ingo Molnar , linux-m68k , "Jason A. Donenfeld" Subject: Re: [PATCH v9] kallsyms: Add self-test facility Message-ID: <20221216121947.7d03b651@gandalf.local.home> In-Reply-To: References: <20221115083349.1662-1-thunder.leizhen@huawei.com> <49070ac3-02bb-a3b3-b929-ede07e3b2c95@huawei.com> <4aaede14-8bd3-6071-f17b-7efcb5f0de42@huawei.com> <66ec4021-b633-09ba-73ee-b24cdb3fa25a@huawei.com> <06345dca-0afb-00a5-c9e9-5ba830d8ad05@huawei.com> <52450ec1da164d6d87587063c3b3d3d2@AcuMS.aculab.com> <592dce7a0de24c62bd31c29f86ce6c1b@AcuMS.aculab.com> <87pmcjidfe.fsf@igel.home> <1ba1fadb39994a4d91edabdfd9d69fa6@AcuMS.aculab.com> <87len7ibtt.fsf@igel.home> <87fsdfib07.fsf@igel.home> <819801284eb745d9a4189759bad297f5@AcuMS.aculab.com> <20221216115314.6120beb7@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, 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 On Fri, 16 Dec 2022 16:57:54 +0000 David Laight wrote: > > I don't know m68k assembly, but I'm guessing the (%O)+ and the (%1)+ only > > modifies the register being used, and no memory is being touched. > > Memory is being read so a clobber is needed to ensure that all pending > writes have been done. > Although, in this case, the memory being read is effectively > read only so nothing should be I would think that if the memory being read is the address of what the input parameters being passed into it are, then the compiler should be smart enough to know that there's a relation. Especially if the input parameters are pointers. I assumed that "memory" was for memory unrelated to the input constraints. -- Steve