Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp138409rwb; Mon, 26 Sep 2022 10:15:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bHxmIFlnYsro0Ha98nH8GsfF9s5eZoUQNz4VODS4sT49RVjqSDAQngLbQZ9kgkTgwZd+C X-Received: by 2002:a17:90b:1bc7:b0:202:52ce:a1d with SMTP id oa7-20020a17090b1bc700b0020252ce0a1dmr26479814pjb.110.1664212517368; Mon, 26 Sep 2022 10:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664212517; cv=none; d=google.com; s=arc-20160816; b=1AcBxLrOuVV8EuM41Ri/6lWKLR0pcJfdV3VCbNrKDkcV7r1JDa6xWQERMsbRLLEdm/ TaD5o5GLTrnixhTg9dIrRxa3aKq2x/vuId2pqTeBTa+FZvmBi8ri/J+b/p9MLw6Wyym7 XnfePan8bXAuZ9zJKM2Fm78K2DOGXDi8//agQGSESjx0Fym1/WyfolhGbVcuewgtjJmY BHXg0KDyryc3uHOI6pScyat4jGInqGx8na7OtEC4nUwl92zEgET2LL3JmSdE8gfyrjYz 5SZoCPenQD5MhxbMCm/N68P+/U0MjUIgueqnGTuzcKDR1Vx1UHIha5DEF4W1/vxqsOwY V/xg== 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=/6g2LuhpJ7iceNEDiMvtSeL06vjk/UbZ609Rxm3sMGE=; b=GaLmquMhOnWVmSe4JHtB/scM/nqBx18bucFcZAF9yZOZRyciDIgDq9Q09YCyeBEGbn h19w67P3Hs3euSXc1MzJHjtIV0xvlJo9q304JaLS2zz4hbwGWL2eJ5H22O9HUlLESAi3 tDp+BnjoDTO3+kdbKuuDLh5ys51jW0ga4Uwt9bddv+3uqwAwl8Y9hJbA9Tqbf8FuoAcf +NddbaQ9SxfrxCwOX6DZeOk9RH9Mwe6SE57XtL0l6A7iuLxwHNkphdmxXexo+FNQw4Pd R56Ey4b8/rOEOWvUQnbfQKyvhLN7N7jMhjqnIWHTvUmTVXRB/BZ5QAqOyz7Mb10yMtXR kTVQ== 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 z14-20020a170902ccce00b00177f0fa645csi12890007ple.279.2022.09.26.10.15.04; Mon, 26 Sep 2022 10:15:17 -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 S229528AbiIZPx3 (ORCPT + 99 others); Mon, 26 Sep 2022 11:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234536AbiIZPww (ORCPT ); Mon, 26 Sep 2022 11:52:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0A891D0D; Mon, 26 Sep 2022 07:40:29 -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 0628460E2C; Mon, 26 Sep 2022 14:40:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5215C433B5; Mon, 26 Sep 2022 14:40:23 +0000 (UTC) Date: Mon, 26 Sep 2022 15:40:20 +0100 From: Catalin Marinas To: Daniel Borkmann Cc: Xu Kuohai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Mark Rutland , Florent Revest , Will Deacon , Jean-Philippe Brucker , Steven Rostedt , Ingo Molnar , Oleg Nesterov , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Zi Shen Lim , Pasha Tatashin , Ard Biesheuvel , Marc Zyngier , Guo Ren , Masami Hiramatsu Subject: Re: [PATCH bpf-next v2 0/4] Add ftrace direct call for arm64 Message-ID: References: <20220913162732.163631-1-xukuohai@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Sep 22, 2022 at 08:01:16PM +0200, Daniel Borkmann wrote: > On 9/13/22 6:27 PM, Xu Kuohai wrote: > > This series adds ftrace direct call for arm64, which is required to attach > > bpf trampoline to fentry. > > > > Although there is no agreement on how to support ftrace direct call on arm64, > > no patch has been posted except the one I posted in [1], so this series > > continues the work of [1] with the addition of long jump support. Now ftrace > > direct call works regardless of the distance between the callsite and custom > > trampoline. > > > > [1] https://lore.kernel.org/bpf/20220518131638.3401509-2-xukuohai@huawei.com/ > > > > v2: > > - Fix compile and runtime errors caused by ftrace_rec_arch_init > > > > v1: https://lore.kernel.org/bpf/20220913063146.74750-1-xukuohai@huaweicloud.com/ > > > > Xu Kuohai (4): > > ftrace: Allow users to disable ftrace direct call > > arm64: ftrace: Support long jump for ftrace direct call > > arm64: ftrace: Add ftrace direct call support > > ftrace: Fix dead loop caused by direct call in ftrace selftest > > Given there's just a tiny fraction touching BPF JIT and most are around core arm64, > it probably makes sense that this series goes via Catalin/Will through arm64 tree > instead of bpf-next if it looks good to them. Catalin/Will, thoughts (Ack + bpf-next > could work too, but I'd presume this just results in merge conflicts)? I think it makes sense for the series to go via the arm64 tree but I'd like Mark to have a look at the ftrace changes first. Thanks. -- Catalin