Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2639533pxb; Sat, 26 Mar 2022 00:14:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWtaM4RaEtPz97BkViu6EjSL5+7BEeLQsP2mmkOi/IGQbljddihzmbKY96E7uVt/Eh860t X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr16609224ejc.554.1648278869349; Sat, 26 Mar 2022 00:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648278869; cv=none; d=google.com; s=arc-20160816; b=KTGrrZmF2kfTOp6sred8RrT+5KzRelPlw90GPW+7z5IqFw8N8N8RX7ePygkkPBq2E8 oHFREHgMdcyA5Cw/+lBz03ifgNI8VYBFczIW2iwWZq6XtlvmjH197mCxD0QMKMFUzBdB 3MiMtM+8kHWeoOJ7kRDotiME1MeBUulWoxDUf4KrCwciGWUziMvA9WF5mC28scF5oo/t BdetsLf2bY+Ytidn4HcK8eA4MrsfNIag3XugNEDL4DUOpl8j4w/uPW+gaoz4ScC1ESfp s/yKcj+cti0ZQ/zRQ/e9SIMLxPpXOXirRSytWLQQCbvXhatHAhBZaaXQ1tVmq5cL+Sh0 EKBg== 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=K9cj+9NVe/36rgGeJGx8GjggEbVpwg4x778ow/ISm/Y=; b=kZPgNirpWM0NmgbzURVAw/hLqvWZe+LB0LS6GA2HXL6zOCYPzw+QNwSRrxT1YIEAqn XJi4aT/PHUjLPwEgzTnmy6yaR+TxnovsP0EleO9FmlcpOgPEriOQkkFgoEqQAoWXl/kr O0yedU4EddyMm7sTqM/kTVmolDpZYNzylm3zLs5XHIUHV4+HFJNOEXV9cP1+IG0Q9yk/ VOe3x9mFnAaDO+yNi4aQucyXsakmwGEiQ4mw8/OaegoG5FnvTAx+CA/stAlQME3zSjeG h8mLdM1Ur/U4IUMpPnmlIXh2vyxHCLHvPOHrdztKtCwWzdNSgFLYtz/NlerKTDrSDYbS 94cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cm3FW1Xd; 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 d2-20020a1709063ec200b006df76385bb6si5141963ejj.86.2022.03.26.00.13.55; Sat, 26 Mar 2022 00:14:29 -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=Cm3FW1Xd; 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 S230096AbiCZB2N (ORCPT + 99 others); Fri, 25 Mar 2022 21:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiCZB2M (ORCPT ); Fri, 25 Mar 2022 21:28:12 -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 D599863387; Fri, 25 Mar 2022 18:26:36 -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 688FD618FB; Sat, 26 Mar 2022 01:26:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD2B4C2BBE4; Sat, 26 Mar 2022 01:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648257995; bh=RC+BEGuNVMZhMjCmzDiJ6C8Er/DhjeIkXm3qc1XisbU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cm3FW1XdDVekMPRjk8s84UOCdFl57xZTeI6av5miMXE97C6X9NcGIuEt+AyCCrDJT ViwirGqDPU8wGn7MNCcIjJYiuY5DoI8mfn7pmCeqhweJa/OHBxzNgQ2CgZ7EL1Yzle 4PLByvZhta7iAfDj9R/B9SlVpauUqC5nOCCbBLa05RsgbKRhu5Eg4QAPDy4PWEUeA2 i33ueBryrGNzKAQRv265yhWny3nWYgFp4jP7z3qtwa+iFIWFxRtDJMq54zsHTrafuD MiLsv9yWmZXqvR8lQuHvDEhyN4UlEl9E4CAw5Zpl7hEpijQAWaguTJh+LTR6gJxALT cDLdL5C9OaAiQ== Date: Sat, 26 Mar 2022 10:26:29 +0900 From: Masami Hiramatsu To: Alexei Starovoitov Cc: Peter Zijlstra , Masami Hiramatsu , Alexei Starovoitov , Andrii Nakryiko , X86 ML , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Dan Carpenter , kernel-janitors@vger.kernel.org, Steven Rostedt , Jiri Olsa , bpf , LKML Subject: Re: [PATCH bpf-next v2 0/4] kprobes: rethook: x86: Replace kretprobe trampoline with rethook Message-Id: <20220326102629.ab36e0f5f71371426e2d36a5@kernel.org> In-Reply-To: References: <164821817332.2373735.12048266953420821089.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 Fri, 25 Mar 2022 09:49:47 -0700 Alexei Starovoitov wrote: > On Fri, Mar 25, 2022 at 7:43 AM Peter Zijlstra wrote: > > > > On Fri, Mar 25, 2022 at 11:22:53PM +0900, Masami Hiramatsu wrote: > > > > > Masami Hiramatsu (3): > > > kprobes: Use rethook for kretprobe if possible > > > rethook: kprobes: x86: Replace kretprobe with rethook on x86 > > > x86,kprobes: Fix optprobe trampoline to generate complete pt_regs > > > > > > Peter Zijlstra (1): > > > Subject: x86,rethook: Fix arch_rethook_trampoline() to generate a complete pt_regs > > > > You fat-fingered the subject there ^ > > > > Other than that: > > > > Acked-by: Peter Zijlstra (Intel) > > > > Hopefully the ftrace return trampoline can also be switched over.. > > Thanks Peter. What's an ETA on landing endbr set? > Did I miss a pull req? > I see an odd error in linux-next with bpf selftests > which may or may not be related. Planning to debug it > when everything settles in Linus's tree. That is what I pointed in cover mail. > BTW, this patch can be applied to next-20220324, not the bpf-next tree > directly, because this depends on ANNOTATE_NOENDBR macro. However, since > the fprobe is merged in the bpf-next, I marked this for bpf-next. > So until merging the both of fprobes and ENDBR series, to compile this > you need below 2 lines in arch/x86/kernel/rethook.c. > > #ifndef ANNOTATE_NOENDBR > #define ANNOTATE_NOENDBR > > Masami, could you do another respin? OK, I will add above temporary mitigation. > > Also do you mind squashing patches 2,3,4 ? > It's odd to have the same lines of code patched up 3 times. > Just do it right once. Hmm, I think those are different commit for different features. I would like to keep those 3 patches separated (for the case if we find any issue to introduce regs->ss later) Thank you, -- Masami Hiramatsu