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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C185C43334 for ; Tue, 5 Jul 2022 16:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0eccmIil/s/m6jzg/Rv3KzFk38t08mwfA7Evra+4L+U=; b=XvQbxdWL5nYa5X zUnj6RkPa2J1KzKEqJL3YJQf4rR0pKuOrGbh5swNnNrAZmqCl9PnLwWnXEkJK2Cg4ySHjrnhgAFEZ 3numWEn/8oDuL/DTaCcVdYh9dDUmnTw6ogrnp1i6lsqi3fWvGxNIT/TTxpqY5Vj0L+PktOfacMpq3 cp9/98IFJTVu/jcCs72Xz7BmirHVHWDm1uN2LdhMLZ3A+rTpz4iojpBblZZhGquklccv0jXs5Qox1 1tLQ2OZE8QIEnnYcKm2BDmn/nB7zsuSalHsOr9Oi7o+kMaZD0paGtfrhR2DfVSJGVvNrusKPGdAOS Hgo51xn7wprk1Utq6RtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8kyy-001L8a-4R; Tue, 05 Jul 2022 16:01:00 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8kyv-001L7R-8E for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2022 16:00:58 +0000 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 B3DCE61B83; Tue, 5 Jul 2022 16:00:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 776F6C341C7; Tue, 5 Jul 2022 16:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657036856; bh=YNoy2tz1hW0bUHeiRLsEX677IMFG+Q+xyAdLl28Mtqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UGU6JIiEjRMRtof4/IjlS1ygWl+HXu2eAqiQGE7kkekGmdUD6sJWgbpch74gE4T7u zqBWuZfI0n2u0AZeapu/OGLKpgAUFTZpyPhtKLHlv+Y4DUUz3dnKWNJlHH4RU59oaw 9N0+tLrXdbfGGrbuDj5VWj5N+ZzEQKOzvgOc/2MU554TZuVQ8Oom1sMa0zQcfHFQ14 98aUZQPw/TESnFu1HDny23iWt+fRy82vVXcZOKLac55O9YZH7Zel5DVa1MOPsj97gO 9VQbpfGYhyo+9WTzKsZsyFlUOBPUMl2xHthsFmRzu1Bhj3wZ3odx5xIVxXrdc0/0Nv 8kIkbVIZB4EtQ== Date: Tue, 5 Jul 2022 17:00:46 +0100 From: Will Deacon To: Daniel Borkmann , jean-philippe.brucker@arm.com Cc: Xu Kuohai , bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Mark Rutland , Catalin Marinas , Alexei Starovoitov , Zi Shen Lim , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , "David S . Miller" , Hideaki YOSHIFUJI , David Ahern , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Jakub Kicinski , Jesper Dangaard Brouer , Russell King , James Morse , Hou Tao , Jason Wang Subject: Re: [PATCH bpf-next v6 0/4] bpf trampoline for arm64 Message-ID: <20220705160045.GA1240@willie-the-truck> References: <20220625161255.547944-1-xukuohai@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220705_090057_409073_E1E90092 X-CRM114-Status: GOOD ( 24.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Daniel, On Thu, Jun 30, 2022 at 11:12:54PM +0200, Daniel Borkmann wrote: > On 6/25/22 6:12 PM, Xu Kuohai wrote: > > This patchset introduces bpf trampoline on arm64. A bpf trampoline converts > > native calling convention to bpf calling convention and is used to implement > > various bpf features, such as fentry, fexit, fmod_ret and struct_ops. > > > > The trampoline introduced does essentially the same thing as the bpf > > trampoline does on x86. > > > > Tested on raspberry pi 4b and qemu: > > > > #18 /1 bpf_tcp_ca/dctcp:OK > > #18 /2 bpf_tcp_ca/cubic:OK > > #18 /3 bpf_tcp_ca/invalid_license:OK > > #18 /4 bpf_tcp_ca/dctcp_fallback:OK > > #18 /5 bpf_tcp_ca/rel_setsockopt:OK > > #18 bpf_tcp_ca:OK > > #51 /1 dummy_st_ops/dummy_st_ops_attach:OK > > #51 /2 dummy_st_ops/dummy_init_ret_value:OK > > #51 /3 dummy_st_ops/dummy_init_ptr_arg:OK > > #51 /4 dummy_st_ops/dummy_multiple_args:OK > > #51 dummy_st_ops:OK > > #57 /1 fexit_bpf2bpf/target_no_callees:OK > > #57 /2 fexit_bpf2bpf/target_yes_callees:OK > > #57 /3 fexit_bpf2bpf/func_replace:OK > > #57 /4 fexit_bpf2bpf/func_replace_verify:OK > > #57 /5 fexit_bpf2bpf/func_sockmap_update:OK > > #57 /6 fexit_bpf2bpf/func_replace_return_code:OK > > #57 /7 fexit_bpf2bpf/func_map_prog_compatibility:OK > > #57 /8 fexit_bpf2bpf/func_replace_multi:OK > > #57 /9 fexit_bpf2bpf/fmod_ret_freplace:OK > > #57 fexit_bpf2bpf:OK > > #237 xdp_bpf2bpf:OK > > > > v6: > > - Since Mark is refactoring arm64 ftrace to support long jump and reduce the > > ftrace trampoline overhead, it's not clear how we'll attach bpf trampoline > > to regular kernel functions, so remove ftrace related patches for now. > > - Add long jump support for attaching bpf trampoline to bpf prog, since bpf > > trampoline and bpf prog are allocated via vmalloc, there is chance the > > distance exceeds the max branch range. > > - Collect ACK/Review-by, not sure if the ACK and Review-bys for bpf_arch_text_poke() > > should be kept, since the changes to it is not trivial > > - Update some commit messages and comments > > Given you've been taking a look and had objections in v5, would be great if you > can find some cycles for this v6. Mark's out at the moment, so I wouldn't hold this series up pending his ack. However, I agree that it would be good if _somebody_ from the Arm side can give it the once over, so I've added Jean-Philippe to cc in case he has time for a quick review. KP said he would also have a look, as he is interested in this series landing. Failing that, I'll try to look this week, but I'm off next week and I don't want this to miss the merge window on my account. Cheers, Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel