Re: Linux 6.18-rc6

From: Linus Torvalds
Date: Mon Nov 17 2025 - 13:00:12 EST


On Mon, 17 Nov 2025 at 09:53, David Hildenbrand (Red Hat)
<david@xxxxxxxxxx> wrote:
>
> I had the same in mind for a second, but then I looked at
> kernel_init_pages() with the kasan_disable_current() handling and
> concluded that it's clearer to just disallow tag_clear_highpage() being
> abused in the first place and reduce the effective code footprint of
> post_alloc_hook().

See, I had the exact opposite reaction: I think the one-liner is
better not just because it's simpler, but exactly *because* of the
mess that is kernel_init_pages().

IOW, that one-liner is either correct *without* all that crud - and
it's unnecessary for the __GFP_ZEROTAGS case because that only happens
at init time - or it shows a bug in the arm64 code.

Either way it's a win. Either it's simpler, or it gives us better coverage.

No?

Linus