Re: [PATCH] x86: Allow user accesses to the base of the guard page
From: Linus Torvalds
Date: Sat Nov 23 2024 - 19:30:33 EST
On Sat, 23 Nov 2024 at 16:24, Mikel Rychliski <mikel@xxxxxxxxxx> wrote:
>
> access_ok() for x86_64 checks the validity of the byte one past the end of the
> requested buffer, even if that buffer is non-zero.
Ahh, the non-zero case does indeed look like a valid reason for fixing
this. I was just reacting to the stated zero-sized case that really
doesn't matter.
So if David's patch fixes your use case, I'm happy to apply it with a
fixed commit message.
Linus