* [PATCH bpf-next 2/4] bpf: define bpf_jit_alloc_exec_limit for arm64 JIT [not found] <20210924095542.33697-1-lmb@cloudflare.com> @ 2021-09-24 9:55 ` Lorenz Bauer 2021-09-29 16:18 ` Will Deacon 0 siblings, 1 reply; 2+ messages in thread From: Lorenz Bauer @ 2021-09-24 9:55 UTC (permalink / raw) To: Daniel Borkmann, Alexei Starovoitov, Zi Shen Lim, Catalin Marinas, Will Deacon, Andrii Nakryiko Cc: kernel-team, Lorenz Bauer, netdev, bpf, linux-arm-kernel, linux-kernel Expose the maximum amount of useable memory from the arm64 JIT. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> --- 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; +} + void *bpf_jit_alloc_exec(unsigned long size) { return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START, -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next 2/4] bpf: define bpf_jit_alloc_exec_limit for arm64 JIT 2021-09-24 9:55 ` [PATCH bpf-next 2/4] bpf: define bpf_jit_alloc_exec_limit for arm64 JIT Lorenz Bauer @ 2021-09-29 16:18 ` Will Deacon 0 siblings, 0 replies; 2+ messages in thread From: Will Deacon @ 2021-09-29 16:18 UTC (permalink / raw) To: Lorenz Bauer Cc: Daniel Borkmann, Alexei Starovoitov, Zi Shen Lim, Catalin Marinas, Andrii Nakryiko, kernel-team, netdev, bpf, linux-arm-kernel, linux-kernel 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 <lmb@cloudflare.com> > --- > 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 <will@kernel.org> (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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-29 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210924095542.33697-1-lmb@cloudflare.com>
2021-09-24 9:55 ` [PATCH bpf-next 2/4] bpf: define bpf_jit_alloc_exec_limit for arm64 JIT Lorenz Bauer
2021-09-29 16:18 ` Will Deacon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox