Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1750938pxb; Fri, 25 Mar 2022 05:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjfIA/RJ/7+5cYcwPlTI0B4qknmXg086JxwBx8CEVC9LoFNgLv6PHkFap3dvh0dNOZUicn X-Received: by 2002:a50:ff02:0:b0:419:2d32:44fe with SMTP id a2-20020a50ff02000000b004192d3244femr12487672edu.49.1648209894263; Fri, 25 Mar 2022 05:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648209894; cv=none; d=google.com; s=arc-20160816; b=P+blSGBQKSPs0fxmvNPHySbBZhDhlQBiqnUKVzNmbfYjrUUuesszozZ3vLUZfb+ApN 4MhXsyACKha6rmdSZWKUNf7yCSc+4vvV1Hw0DuyYvIRkraXZ3gKdhO4vI4TyblisSVyC ZD5Lk/mzD1tPLWmSA4aww82i7H7nUWkRnzRosHuaX/pmIGdqfQ5/s9g/fevm9mfK0uWs 9pOsRZgrGAixh/YyXT7zjI7nbYCMZasrVv6Qte8IJr64dODCDlTq/ofScA1wXlE23mS1 mFJ6KgdKR9PVtcnw/O/16aQvXD8dwl9N8sbJgJskzpx1aVRHr4KVEdkToh0rsR4Sj+aw 87gw== 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 :dkim-signature; bh=iaBjvO5NExMW0sI4UgBOcooXNjD2euZoPvppJ0Jaco8=; b=yFa0eYTTp3V8C7uNTRfTSFtkOvTZL0LZDV0L6lM9HlvZmkc0SEWX7L9nxWLUwx1Ses XwONxEf+3OvD34ZPe7xFzFHtwqyHv205nmZq6YUAtpLT+RzGxe0j217i69NUA81Wjm9R JCVKCHs2Az9DciDZJKNxxiNmq6iKf2L64pLigGd6HfninDEVM+7+t/P5lbPqt8c+wqfz NPdo1Mmw/EHxXDT8tZ9VbmpRau17IEnTF8AhWaYHjrLSzaUT9F+PaLu7RXeW5lPsUjmJ p8uPhNRs0DzSx0lKYjoqfpl3Z3p7pWhKr7UwJ9huOTkvwdvYAo1jf9ArdMv1ltxzKdTB PxKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcYTchiv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ej9-20020a056402368900b00418c2b5bd8asi2855885edb.108.2022.03.25.05.04.20; Fri, 25 Mar 2022 05:04:54 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dcYTchiv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244915AbiCWO5T (ORCPT + 99 others); Wed, 23 Mar 2022 10:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234970AbiCWO5S (ORCPT ); Wed, 23 Mar 2022 10:57:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 932747DE21; Wed, 23 Mar 2022 07:55:47 -0700 (PDT) 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 893FB61710; Wed, 23 Mar 2022 14:55:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1B89C340E8; Wed, 23 Mar 2022 14:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648047347; bh=cHeg4XtXSKgVyvX8tOP4tySGT9vRJ7ndAZJt2ckl/9s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dcYTchivxGaG6WxPPEba8PM2zS7O0KO2EdTM617uO2m3o8q5R7irBhAzrnirHy282 eHEmQa5/xfeqTSMf9I4JTs/7ShcSfgTK515bn3KrpHY4tfpIpKnGwNxySG4WF3bOW8 FBjNZ7zxGipf0SNk05gxu1V3EBoYyh2huO+Sh7gbHRMV0LYxHYVhgak9jQZO8PbkrG NvAUbqsDCwnCb2JYg6KFSdBTvQLs2eNBO7od2DRtSc4SpR4e5ZXd2p2gwn8bAZWBLL ArSh/2uU9eNNSfBWCOm/wf42D/+mTIl71JA+hF0C8Fg5kuqBH6ndYfJOXlhsY6dqZQ SCPd+W/uZFuGg== Date: Wed, 23 Mar 2022 23:55:39 +0900 From: Masami Hiramatsu To: Mark Rutland Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Jiri Olsa , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Andrii Nakryiko , netdev@vger.kernel.org, bpf@vger.kernel.org, lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt , "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" , catalin.marinas@arm.com, will@kernel.org Subject: Re: [PATCH v13 bpf-next 0/1] fprobe: Introduce fprobe function entry/exit probe Message-Id: <20220323235539.644ad8ace98347467de3e897@kernel.org> In-Reply-To: References: <164800288611.1716332.7053663723617614668.stgit@devnote2> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; 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=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 Wed, 23 Mar 2022 14:18:40 +0000 Mark Rutland wrote: > On Wed, Mar 23, 2022 at 11:34:46AM +0900, Masami Hiramatsu wrote: > > Hi, > > Hi Masami, > > > Here is the 13th version of rethook x86 port. This is developed for a part > > of fprobe series [1] for hooking function return. But since I forgot to send > > it to arch maintainers, that caused conflict with IBT and SLS mitigation series. > > Now I picked the x86 rethook part and send it to x86 maintainers to be > > reviewed. > > > > [1] https://lore.kernel.org/all/164735281449.1084943.12438881786173547153.stgit@devnote2/T/#u > > As mentioned elsewhere, I have similar (though not identical) concerns > to Peter for the arm64 patch, which was equally unreviewed by > maintainers, and the overall structure. Yes, those should be reviewed by arch maintainers. > > > Note that this patch is still for the bpf-next since the rethook itself > > is on the bpf-next tree. But since this also uses the ANNOTATE_NOENDBR > > macro which has been introduced by IBT/ENDBR patch, to build this series > > you need to merge the tip/master branch with the bpf-next. > > (hopefully, it is rebased soon) > > I thought we were going to drop the series from the bpf-next tree so > that this could all go through review it had missed thusfar. > > Is that still the plan? What's going on? Now the arm64 (and other arch) port is reverted from bpf-next. I'll send those to you soon. Since bpf-next is focusing on x86 at first, I chose this for review in this version. Sorry for confusion. > > > The fprobe itself is for providing the function entry/exit probe > > with multiple probe point. The rethook is a sub-feature to hook the > > function return as same as kretprobe does. Eventually, I would like > > to replace the kretprobe's trampoline with this rethook. > > Can we please start by converting each architecture to rethook? Yes. As Peter pointed, I'm planning to add a kretprobe patches to use rethook if available in that series. let me prepare it. > > Ideally we'd unify things such that each architecture only needs *one* > return trampoline that both ftrace and krpboes can use, which'd be > significantly easier to get right and manage. Agreed :-) Thank you, > > Thanks, > Mark. -- Masami Hiramatsu