Re: [PATCH bpf v5] bpf: verifier: prevent userspace memory access

From: Alexei Starovoitov
Date: Sun Mar 24 2024 - 15:14:06 EST


On Sun, Mar 24, 2024 at 11:54 AM Puranjay Mohan <puranjay12@xxxxxxxxx> wrote:
>
> +u64 bpf_arch_uaddress_limit(void)
> +{
> + return max(TASK_SIZE_MAX + PAGE_SIZE, VSYSCALL_ADDR);

This is broken. See my other email.
Sadly you didn't test it.