Re: [PATCH 1/3] x86: fix access_ok() and valid_user_address() using wrong USER_PTR_MAX in modules

From: Linus Torvalds

Date: Fri Oct 31 2025 - 17:46:45 EST


On Fri, 31 Oct 2025 at 10:42, Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> -extern unsigned long USER_PTR_MAX;
> +extern unsigned long user_ptr_max;

Yeah, this doesn't work at all.

We still use USER_PTR_MAX in other places, including the linker script
and arch/x86/lib/getuser.S

So you changed about half the places to the new name, breaking the others.

Linus