Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3664434pxp; Wed, 23 Mar 2022 03:23:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwSPPFXXQDQZQOBGoJyiXUy6bdVjGn59QxHvQBtw8b9+6Yv3S5jAA4wa4ilur2o2PkWaXY X-Received: by 2002:a17:90b:224e:b0:1c6:d9ed:576b with SMTP id hk14-20020a17090b224e00b001c6d9ed576bmr10612338pjb.26.1648031020819; Wed, 23 Mar 2022 03:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648031020; cv=none; d=google.com; s=arc-20160816; b=AlzD2tJIV6GeCP3YDEWQYx75vyFCWiqubsfCBKSBBRTHOlLwBdBrjI/30sKtKSlgOY 9XfVcITBqF/RvmlqjfQHftTSpsQP4iRbUY3ekTmQ117BVqPkLwkFzDKVUQCq17Q41QbQ YzKj3YjKdv8dujUxe/vpc1ptGS9MtY06rwHrgF5nS+0YWy2CgtOmMyREP02Alk3ugNTP 05GfjSlSCMBzJGT6Ih08+yr519OM9pXI7DogsNXZiXn5pHy3mM5GL3qJOX34yteznIaF uKt5wf6xA9dVULZMj67l8pheH5PRp2dmTHMOaqpDyU+j4dnoRG8JXg7C6QBP4LVZV8QK iklA== 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; bh=2+5rld2LSe2dnuQq2IRfHGx1j7BAcdGCq9fQTwJcGcc=; b=W5D6vmTTPRcSiqQk7PeWi8rx0xCBk5FnNqkGvEk5tjpKxDXxQ/yMLNHAkxwE6S/zS1 wRw65xQ9nTxTPtw/+tph/q8T9kHJphAUZUkNoddjdNwkya49lcdstYO4dQ1eCKddhNmS ruCTBukwOZf1ars4Rn4Z0jloAxucW2Gtq0hu2cUduQSByvOvzaAkY+QWjaI4xnUuJWZi /7/6VhqdnLKAH1wuXZZtvdUfRdYyKYSk5zTGIA6RZVLhcNny3krZeK5SoT3FMff6ReBV kaNkoC6tPZnz5IPvTOMb8gD7xr90lvOnfDnadrRG47rEbhgfmsICVs8ICgZ7w6wdJtuM YapA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a62d40d000000b004fa3a8e0004si11195703pfh.187.2022.03.23.03.23.27; Wed, 23 Mar 2022 03:23:40 -0700 (PDT) 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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234374AbiCVNRk (ORCPT + 99 others); Tue, 22 Mar 2022 09:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233647AbiCVNRg (ORCPT ); Tue, 22 Mar 2022 09:17:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DFA8443ED; Tue, 22 Mar 2022 06:16:08 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A58F31042; Tue, 22 Mar 2022 06:16:07 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.92.214]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 50FFA3F73B; Tue, 22 Mar 2022 06:16:05 -0700 (PDT) Date: Tue, 22 Mar 2022 13:15:58 +0000 From: Mark Rutland To: Masami Hiramatsu Cc: Peter Zijlstra , Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List , Linux Next Mailing List , rostedt@goodmis.org, ast@kernel.org, hjl.tools@gmail.com, rick.p.edgecombe@intel.com, rppt@kernel.org, linux-toolchains@vger.kernel.org, Andrew.Cooper3@citrix.com, ndesaulniers@google.com Subject: Re: linux-next: build warnings after merge of the tip tree Message-ID: References: <20220321140327.777f9554@canb.auug.org.au> <20220322143136.0e78366c3521b54b7b9385b8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322143136.0e78366c3521b54b7b9385b8@kernel.org> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Mar 22, 2022 at 02:31:36PM +0900, Masami Hiramatsu wrote: > On Mon, 21 Mar 2022 17:48:54 +0100 > Peter Zijlstra wrote: > > > On Mon, Mar 21, 2022 at 02:04:05PM +0100, Peter Zijlstra wrote: > > > On Mon, Mar 21, 2022 at 01:55:49PM +0100, Peter Zijlstra wrote: > > > > On Mon, Mar 21, 2022 at 02:03:27PM +1100, Stephen Rothwell wrote: > > > > > Hi all, > > > > > > > > > > After merging the tip tree, today's linux-next build (x864 allmodconfig) > > > > > produced these new warnings: > > > > > > > > > > vmlinux.o: warning: objtool: arch_rethook_prepare()+0x55: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: arch_rethook_trampoline_callback()+0x3e: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: unwind_next_frame()+0x93e: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: unwind_next_frame()+0x5f2: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: unwind_next_frame()+0x4a7: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: __rethook_find_ret_addr()+0x81: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: __rethook_find_ret_addr()+0x90: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: rethook_trampoline_handler()+0x8c: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > vmlinux.o: warning: objtool: rethook_trampoline_handler()+0x9b: relocation to !ENDBR: arch_rethook_trampoline+0x0 > > > > > > > > Hurmph, lemme go figure out where that code comes from, I've not seen > > > > those. > > > > > > Ahh, something tracing. I'll go do some patches on top of it. > > > > The below gets rid of the objtool warnings. > > Yes, I confirmed that. > > > But I still think it's fairly terrible to get a (flawed) carbon copy of > > the kretprobe code. > > Indeed. I would like to replace the trampoline code of kretprobe with > rethook, eventually. There is no reason why we keep the clone. > (But I need more arch maintainers help for that, there are too many > archs implemented kretprobes) FWIW, I'm more than happy to help on the arm64 side if you could Cc me for that; I'm aware of other things in this area I'd like to clean up for backtracing, too. Thanks, Mark.