From: "David Hildenbrand (Red Hat)" <david@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Wang <00107082@163.com>,
catalin.marinas@arm.com, lance.yang@linux.dev, b-padhi@ti.com,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
Jan Polensky <japo@linux.ibm.com>
Subject: Re: Linux 6.18-rc6
Date: Mon, 17 Nov 2025 18:53:37 +0100 [thread overview]
Message-ID: <189cfb08-2593-4ff1-a3fa-3c7957cb6b60@kernel.org> (raw)
In-Reply-To: <CAHk-=wg5dtEx63dm4fy-DkrX4Hw0htLyzPPbOhbYYxt4ESReDw@mail.gmail.com>
On 17.11.25 18:28, Linus Torvalds wrote:
> On Mon, 17 Nov 2025 at 06:08, David Hildenbrand (Red Hat)
> <david@kernel.org> wrote:
>>
>> To not lose too much time, I just pushed the following patch to
>>
>> https://github.com/davidhildenbrand/linux.git zerotags
>
> Hmm. Why isn't the fix for this simply this (intentionally
> whitespace-damaged - don't apply mindlessly) one-liner:
>
> --- a/include/linux/highmem.h
> +++ b/include/linux/highmem.h
> @@ -253,5 +253,6 @@ static inline void
> clear_highpage_kasan_tagged(struct page *page)
>
> static inline void tag_clear_highpage(struct page *page)
> {
> + clear_highpage(page);
> }
>
> because even when the *real* tag_clear_highpage() triggers, it falls down to
>
> if (!system_supports_mte()) {
> clear_highpage(page);
> return;
> }
>
> so basically I think the fundamental bug here is that our fallback
> tag_clear_highpage() was just buggy and didn't do what it was supposed
> to do.
>
> That one-liner would seem to be a lot simpler and more robust than
> making this configuration-dependent. Just make the fallback do the
> right thing - blammo, problem solved.
>
> Am I missing something?
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().
--
Cheers
David
next prev parent reply other threads:[~2025-11-17 17:53 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-16 22:42 Linux 6.18-rc6 Linus Torvalds
2025-11-17 8:20 ` David Wang
2025-11-17 10:33 ` Linus Torvalds
2025-11-17 12:56 ` David Wang
2025-11-17 13:30 ` David Hildenbrand (Red Hat)
2025-11-17 13:45 ` David Wang
2025-11-17 14:08 ` David Hildenbrand (Red Hat)
2025-11-17 15:28 ` David Wang
2025-11-17 16:59 ` Xi Ruoyao
2025-11-17 21:19 ` Joan Bruguera Micó
2025-11-17 17:28 ` Linus Torvalds
2025-11-17 17:53 ` David Hildenbrand (Red Hat) [this message]
2025-11-17 17:59 ` Linus Torvalds
2025-11-17 18:24 ` David Hildenbrand (Red Hat)
2025-11-17 19:17 ` David Hildenbrand (Red Hat)
2025-11-18 1:10 ` Linus Torvalds
2025-11-18 4:13 ` David Wang
2025-11-18 13:55 ` David Wang
2025-11-18 14:12 ` David Hildenbrand (Red Hat)
2025-11-18 14:33 ` David Wang
2025-11-18 14:44 ` Carlos Llamas
2025-11-18 14:51 ` David Hildenbrand (Red Hat)
2025-11-18 14:53 ` Carlos Llamas
2025-11-18 15:09 ` David Wang
2025-11-18 7:28 ` David Hildenbrand (Red Hat)
2025-11-18 16:49 ` Linus Torvalds
2025-11-19 15:42 ` Catalin Marinas
2025-11-18 3:59 ` Carlos Llamas
2025-11-17 16:42 ` Linus Torvalds
2025-11-17 18:13 ` Guenter Roeck
2025-11-18 17:23 ` Stephanie Gawroriski
2025-11-18 18:01 ` Linus Torvalds
2025-11-18 20:18 ` Stephanie Gawroriski
2025-11-19 9:08 ` Heikki Krogerus
2025-11-19 14:18 ` Stephanie Gawroriski
2025-11-19 15:04 ` Stephanie Gawroriski
2025-11-24 9:50 ` Heikki Krogerus
2025-11-26 16:01 ` Stephanie Gawroriski
2025-11-27 9:53 ` Heikki Krogerus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=189cfb08-2593-4ff1-a3fa-3c7957cb6b60@kernel.org \
--to=david@kernel.org \
--cc=00107082@163.com \
--cc=akpm@linux-foundation.org \
--cc=b-padhi@ti.com \
--cc=catalin.marinas@arm.com \
--cc=japo@linux.ibm.com \
--cc=lance.yang@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox