The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@intel.com>
To: Xiang Mei <xmei5@asu.edu>, Peter Zijlstra <peterz@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>, Kees Cook <kees@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, linux-hardening@vger.kernel.org,
	Uladzislau Rezki <urezki@gmail.com>,
	"Gustavo A . R . Silva" <gustavoars@kernel.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Jennifer Miller <jmill@asu.edu>, Tiffany Bao <tbao@asu.edu>,
	Ruoyu Wang <fishw@asu.edu>, Adam Doupe <doupe@asu.edu>,
	Kyle Zeng <zengyhkyle@asu.edu>,
	Yan Shoshitaishvili <yans@asu.edu>
Subject: Re: [PATCH v2] mm/vmalloc: widen guard region to defeat ENTER-based stack pivot
Date: Fri, 10 Jul 2026 11:58:18 -0700	[thread overview]
Message-ID: <bfa239d3-2582-4669-8614-0a299491a744@intel.com> (raw)
In-Reply-To: <CAPpSM+SzqLSPt2q0KhkzB-WvphXGmby99QBJL7v_nq4kJGAYFA@mail.gmail.com>

On 7/1/26 14:04, Xiang Mei wrote:
> Peter's explanation is correct: this technique makes CFH->ACE easier.
> 
> I think both ways can mitigate it, but I would like to hear your
> (maintainers') idea of which one we should proceed:
> 
> 1. supervisor-ENTER-#UD + Peter's objtool check. Cleanest for ENTER,
> but it needs a new bit from Intel/AMD, so future CPUs only.
> 2. Kill the landing zone with a 0x11-page guard area.

Or:

3. Do nothing. Normal kernel IBT is good enough.

The hardest part of #1 IMNHO is convincing people that we need "a new
bit" *PLUS* the two CET technologies (indirect branch tracking and
shadow stacks). If I were a hardware guy, I'd be complaining that those
silly kernel developers aren't even doing supervisor shadow stacks, so
maybe they should use what they have before we starting building new things.

Also, I kinda gave you a route forward. I think someone can both make
the vmalloc gaps more flexible, less hacky, simpler and cleaner. Then,
once that has been done, it's dirt simple for any individual vmalloc
user to have a custom-sized gap. Or, to have a universal, larger,
tunable vmalloc gap.

Get that series put together and I'm open to an 0x11-page gap that x86
pokes in to place in some way.

      reply	other threads:[~2026-07-10 18:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-29 21:47 [PATCH v2] mm/vmalloc: widen guard region to defeat ENTER-based stack pivot Xiang Mei
2026-06-29 22:29 ` Dave Hansen
2026-06-29 23:28   ` Xiang Mei
2026-06-29 23:37     ` Dave Hansen
2026-06-30  1:22       ` Xiang Mei
2026-06-30 14:01         ` Dave Hansen
2026-06-30 14:58           ` Pedro Falcato
2026-07-01  7:23             ` Peter Zijlstra
2026-06-30 22:02           ` Xiang Mei
2026-06-30 22:05             ` Dave Hansen
2026-06-30 22:13               ` H. Peter Anvin
2026-06-30 22:47                 ` Xiang Mei
2026-06-30 23:40                   ` Dave Hansen
2026-06-30 23:48                     ` Xiang Mei
2026-07-01  7:19           ` Peter Zijlstra
2026-06-30 14:40     ` Pedro Falcato
2026-06-30 15:15       ` Dave Hansen
2026-06-30 21:54         ` Dave Hansen
2026-06-30 21:41       ` Xiang Mei
2026-07-01  7:27   ` Peter Zijlstra
2026-07-01  7:48     ` Peter Zijlstra
2026-07-01  7:58       ` H. Peter Anvin
2026-07-01  8:31         ` Peter Zijlstra
2026-07-01 21:04           ` Xiang Mei
2026-07-10 18:58             ` 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=bfa239d3-2582-4669-8614-0a299491a744@intel.com \
    --to=dave.hansen@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=doupe@asu.edu \
    --cc=fishw@asu.edu \
    --cc=gustavoars@kernel.org \
    --cc=hpa@zytor.com \
    --cc=jmill@asu.edu \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tbao@asu.edu \
    --cc=tglx@kernel.org \
    --cc=urezki@gmail.com \
    --cc=x86@kernel.org \
    --cc=xmei5@asu.edu \
    --cc=yans@asu.edu \
    --cc=zengyhkyle@asu.edu \
    /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