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 B6465C25B08 for ; Mon, 15 Aug 2022 10:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242461AbiHOKOk (ORCPT ); Mon, 15 Aug 2022 06:14:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242488AbiHOKOU (ORCPT ); Mon, 15 Aug 2022 06:14:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72E0A1838F for ; Mon, 15 Aug 2022 03:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=94mknGMm7mI4VqlZFtaFa4uxvsWZSNfDJ0hpPYKdDDo=; b=E/N6uqxoGf82WRiXlgfjIZeGRZ nOSMNdhD1Xsd7rptt46qU/xAW2IFzONteVQ6JOfhBWI59kaJT26DnRJ1Z0ryLVKvhCoVkm7O5dWcW wdmue6mxLefOrFts7UBos6fOkOMkko+B8GT8xDwnE0FRshjffF42f/sTaCL1KA4tw+i3DFvtvDSx4 JBwEBXRj1JIlbiTxIAhJ/P+Iqh+t63DfrRewR81k2ASEQ7JMgR11YulSU9Tpdi/30lQX7e/QkN2eN /jenCvhamtn3zoU6NRPwmUmuYOfpQ2lkHZl8sQu7pLtdAwyldGBAXwGFM61IqFsAlNsXEWmqrsFH6 MweDznsQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNX6K-005clC-5d; Mon, 15 Aug 2022 10:13:40 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 5C19B980153; Mon, 15 Aug 2022 12:13:39 +0200 (CEST) Date: Mon, 15 Aug 2022 12:13:39 +0200 From: Peter Zijlstra To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , "Masami Hiramatsu (Google)" Subject: Re: [PATCHv2 bpf-next 2/6] ftrace: Keep the resolved addr in kallsyms_callback Message-ID: References: <20220811091526.172610-1-jolsa@kernel.org> <20220811091526.172610-3-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220811091526.172610-3-jolsa@kernel.org> Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, Aug 11, 2022 at 11:15:22AM +0200, Jiri Olsa wrote: > Keeping the resolved 'addr' in kallsyms_callback, instead of taking > ftrace_location value, because we depend on symbol address in the > cookie related code. > > With CONFIG_X86_KERNEL_IBT option the ftrace_location value differs > from symbol address, which screwes the symbol address cookies matching. > > There are 2 users of this function: > - bpf_kprobe_multi_link_attach > for which this fix is for Except you fail to explain what the problem is and how this helps anything.