Linux Documentation
 help / color / mirror / Atom feed
From: David Laight <david.laight.linux@gmail.com>
To: Chris Down <chris@chrisdown.name>
Cc: Marco Elver <elver@google.com>,
	Alexander Potapenko <glider@google.com>,
	Dmitry Vyukov <dvyukov@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	kasan-dev@googlegroups.com, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	kernel-team@meta.com, the arch/x86 maintainers <x86@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH v2] kfence: don't allow static keys mode on x86
Date: Thu, 3 Dec 2026 22:41:24 +0000	[thread overview]
Message-ID: <20261203224124.5377af4b@pumpkin> (raw)
In-Reply-To: <axCgNQE5y6jFX8JT@chrisdown.name>

On Wed, 02 Dec 2026 14:48:21 -0800
Chris Down <chris@chrisdown.name> wrote:

> Hi Marco,
> 
> Marco Elver writes:
> >Having pondered this a bit longer, I'm quite split on what to do. One
> >option is to leave as-is, but does knowing it's constrained by EXPERT
> >cover the case you were worried about?  
> 
> Hmm, let me think a bit more about this. I agree with you and Peter that
> losing x86 build and test coverage of those paths is a real cost for the
> architectures that keep the option.
> 
> Thanks for reviewing all the versions. Let me get back on this once I
> understand a bit more about under what conditions this was set, and why
> some tiers are using this. But for now feel free to consider this not
> needed to worry about :-)

I wondered why it was done at all.
I can imaging the static key being used to enable/disable kfence, but a
single extra memory access inside a memory allocater that is running with
'a bit of extra debug' enabled seems unlikely to be measurable.

I was more intrigued to see that is can't actually be turned off, and seems
to always be enabled (some time after boot) if compiled in.

David

> 
> Thanks!
> 
> Chris
> 


      reply	other threads:[~2026-12-03 22:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 18:22 [PATCH v2] kfence: don't allow static keys mode on x86 Chris Down
2026-11-29 11:36 ` Marco Elver
2026-11-30  8:16   ` Peter Zijlstra
2026-12-02 22:48   ` Chris Down
2026-12-03 22:41     ` David Laight [this message]

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=20261203224124.5377af4b@pumpkin \
    --to=david.laight.linux@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=chris@chrisdown.name \
    --cc=corbet@lwn.net \
    --cc=dvyukov@google.com \
    --cc=elver@google.com \
    --cc=glider@google.com \
    --cc=kasan-dev@googlegroups.com \
    --cc=kernel-team@meta.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterz@infradead.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=x86@kernel.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