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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82386C433EF for ; Wed, 29 Sep 2021 16:19:49 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4A7E36137A for ; Wed, 29 Sep 2021 16:19:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4A7E36137A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=SRh6ns5SCusxgRzsQdz05/pjUMKYywXjrEiOxZZ5hrY=; b=EDKGLqIBd5YrKv GJx3havHVy0WNOiRvki6eLffsMz4hWw23ut6bxzQfKTiD5nrEh/ftzBwNRTqM3nYHyalgCmQdzafG 4+jgX42lv3wRpE0GUsucAVl4/0t+ueCQQemBwp+gtqJKkgRgutbzRru6q3XNFnEWl1sIzKlv6zNgk 7OVbXoTtSHIHg7g5APQcgLY46cBQFLFLytY+uj26FY4kKhzPU9FpTjiiJcMCV2/QtV9DFo7aQy0rj bEXP9GnkrvHymLDm/wtB7bCpQFRXDgz62/vpuvAoaydq/YZIj38HyW3hwW+gsbJNwCflswGGb8zW0 rhSstRUJXBYSZnUwl3hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVcHl-00Bm0p-DZ; Wed, 29 Sep 2021 16:18:21 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVcHa-00BlxR-1t for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 16:18:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D10C961353; Wed, 29 Sep 2021 16:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632932289; bh=S79irzCLmLoJh10SJfq3xLHcqmeiQCHBKW/lpibZeMQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BV5dpfjjsRh40sZ4XGQS9X8JtH2bEOtQKcU9Ad7mgyAuJ7aesYKqHesSXtiuZoeOC qC5O9+PbQWg3gHA8/h52PRYAP1f1bcnKroIs5gW4EVVmtJTv2iVvmzE9K9WmcfxMa2 faluT3+ZfHuM7ocAMObsykSeG2tK5C4q7v/Tm34ZdtzDJxb8mDPth8hvy90VF9/Frg kRw/ivDWzyLinnl6V3JlNaURxyxd7aQAvfjWN9eNl3M5Aprs7+Zndh9XfdJ8YyIPkh cWuAL7dYxq5pqYgpvClvdM7PshzwHXMrToEQ2fUEtctDPEqRfCXdxzoPm85DXQ08Tb 8A+pEzjq69Qeg== Date: Wed, 29 Sep 2021 17:18:04 +0100 From: Will Deacon To: Lorenz Bauer Cc: Daniel Borkmann , Alexei Starovoitov , Zi Shen Lim , Catalin Marinas , Andrii Nakryiko , kernel-team@cloudflare.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 2/4] bpf: define bpf_jit_alloc_exec_limit for arm64 JIT Message-ID: <20210929161804.GF22029@willie-the-truck> References: <20210924095542.33697-1-lmb@cloudflare.com> <20210924095542.33697-3-lmb@cloudflare.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210924095542.33697-3-lmb@cloudflare.com> 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-20210929_091810_143255_0A5EC838 X-CRM114-Status: GOOD ( 15.53 ) 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 On Fri, Sep 24, 2021 at 10:55:40AM +0100, Lorenz Bauer wrote: > Expose the maximum amount of useable memory from the arm64 JIT. > > Signed-off-by: Lorenz Bauer > --- > arch/arm64/net/bpf_jit_comp.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c > index 41c23f474ea6..803e7773fa86 100644 > --- a/arch/arm64/net/bpf_jit_comp.c > +++ b/arch/arm64/net/bpf_jit_comp.c > @@ -1136,6 +1136,11 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) > return prog; > } > > +u64 bpf_jit_alloc_exec_limit(void) > +{ > + return BPF_JIT_REGION_SIZE; > +} Looks like this won't result in a functional change, as we happen to return SZ_128M anyway thanks to the way in which the modules area is constructed. But making this explicit is definitely better, so: Acked-by: Will Deacon (I'm assuming this will go via the bpf tree, but please shout if I should take it via arm64 instead) Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel