mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@intel.com>
To: s1nkhole <dedemorow@gmail.com>
Cc: x86@kernel.org, Andy Lutomirski <luto@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	hpa@zytor.com, Peter Zijlstra <peterz@infradead.org>,
	Kees Cook <kees@kernel.org>, Brian Gerst <brgerst@gmail.com>,
	Pawan Gupta <pawan.kumar.gupta@linux.intel.com>,
	linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/entry/32: Harden return-to-user
Date: Wed, 28 Oct 2026 13:50:59 -0700	[thread overview]
Message-ID: <3d982c1c-4c97-4dbc-958a-4e71131c0020@intel.com> (raw)
In-Reply-To: <20261028192139.32606-1-dedemorow@gmail.com>

On 10/28/26 12:21, s1nkhole wrote:
> If you have a moment: this is my first work on arch/x86, and I would like
> to contribute something that is actually useful. Is there a small task
> in x86/entry or in kernel hardening that you would suggest as a better
> starting point, or a place where help with testing or review would be
> welcome? I can build and run kernels under QEMU.

It's not small, but kernel shadow stacks are an _incredibly_ powerful
hardening tool. You can buy a system off the shelf that sanely supports
them (including FRED), but the kernel doesn't support them yet.

My current work in progress is here:

> https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/log/?h=kss-2026-10-23

Another set of eyes on that would be nice. Although I do think I'm going
to abandon tacking the shadow stack on to the thread_union for now. So I
don't suggest looking at it too deeply until I get another version out
the door.

One thing you could do today is go into the list in here:

> https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/commit/?h=kss-2026-10-21&id=4dab5fe58904ee07b3622f25bbe3c1b7ff820bf5

and pick a feature or two and figure out if they need fixing for shadow
stacks or not, and if so what a fix might look like.

Or another set of eyes on this:

> https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/log/?h=taskfun-2026-10-26

It's ready to post but I'm just waiting for the merge window to close.

      parent reply	other threads:[~2026-10-28 20:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 21:52 Andrey Zakharov
2026-10-27 22:01 ` Dave Hansen
2026-10-28 19:21   ` s1nkhole
2026-10-28 20:40     ` Borislav Petkov
2026-10-28 20:50     ` Dave Hansen [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=3d982c1c-4c97-4dbc-958a-4e71131c0020@intel.com \
    --to=dave.hansen@intel.com \
    --cc=bp@alien8.de \
    --cc=brgerst@gmail.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=dedemorow@gmail.com \
    --cc=hpa@zytor.com \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=pawan.kumar.gupta@linux.intel.com \
    --cc=peterz@infradead.org \
    --cc=tglx@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®