mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kees Cook <kees@kernel.org>
To: LKML <linux-kernel@vger.kernel.org>, Dennis Chen <dechen@redhat.com>
Cc: Kees Cook <kees@kernel.org>,
	x86@kernel.org, Christoph Hellwig <hch@infradead.org>,
	Borislav Petkov <bp@alien8.de>
Subject: Re: [PATCH] lkdtm: Make UNSET_SMEP built-in-only and unexport native_write_cr4()
Date: Wed, 14 Oct 2026 13:11:35 -0700	[thread overview]
Message-ID: <179200869545.3133508.11783463903727237796.b4-ty@kernel.org> (raw)
In-Reply-To: <20261014175859.30863-1-dechen@redhat.com>

On Wed, 14 Oct 2026 13:58:59 -0400, Dennis Chen wrote:
> native_write_cr4 should not be exported to modules. Commit 21953ee5013d
> ("x86/cpu: Export native_write_cr4() only when CONFIG_LKTDM=m")
> restricted the export somewhat, but native_write_cr4() is still exposed
> to all GPL-compatible modules when CONFIG_LKDTM=m.
> 
> UNSET_SMEP is the only module user of native_write_cr4(). Restrict
> the test to CONFIG_LKDTM=y and remove the export. When LKDTM is
> built as a module, report XFAIL for UNSET_SMEP.
> 
> [...]

Applied to for-next/hardening, thanks!

[1/1] lkdtm: Make UNSET_SMEP built-in-only and unexport native_write_cr4()
      https://git.kernel.org/kees/c/e2cd253cb31b

Take care,

-- 
Kees Cook


  reply	other threads:[~2026-10-14 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14 17:58 Dennis Chen
2026-10-14 20:11 ` Kees Cook [this message]
2026-10-15  5:55 ` Christoph Hellwig

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=179200869545.3133508.11783463903727237796.b4-ty@kernel.org \
    --to=kees@kernel.org \
    --cc=bp@alien8.de \
    --cc=dechen@redhat.com \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®