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

From: Borislav Petkov

Date: Thu Nov 06 2025 - 06:14:49 EST


On Wed, Nov 05, 2025 at 09:50:51PM +0100, Mateusz Guzik wrote:
> For unrelated reasons I disassembled kmem_cache_free and the following
> goodies popped up:
> sub 0x18e033f(%rip),%rax # ffffffff82f944d0 <page_offset_base>
> [..]
> add 0x18e031d(%rip),%rax # ffffffff82f944c0 <vmemmap_base>
> [..]
> mov 0x2189e19(%rip),%rax # ffffffff8383e010 <__pi_phys_base>
>
> These are definitely worthwhile to get rid of.

Says which semi-respectable benchmark?

If none, why bother?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette