From: "Roger Pau Monné" <roger@xenproject.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
Jan Beulich <jbeulich@suse.com>,
Teddy Astie <teddy.astie@vates.tech>
Subject: Re: [PATCH] x86/shstk: Fix possible crash while enabling Shadow Stacks
Date: Mon, 19 Oct 2026 20:58:19 +0200 [thread overview]
Message-ID: <atZoSz16waAvDlPw@Mac.lan> (raw)
In-Reply-To: <20261019155959.883789-1-andrew.cooper3@citrix.com>
On Mon, Oct 19, 2026 at 04:59:59PM +0100, Andrew Cooper wrote:
> Between writing MSR_S_CET.SHSTK_EN and establishing SSP using RSTORSSP or
> SETSSBSY, there must not be any CALL or RET instructions.
>
> Building Xen with -fno-early-inlining causes wrmsr() to become out-of-line,
> and thus suffers #DF during boot.
>
> Make the MSR and shstk helpers always_inline. They ought to have been this
> way all along.
>
> Reported-by: Roger Pau Monné <roger@xenproject.org>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Sorry seems like I'm a bit slow today. Also worth adding:
Fixes: b60ab42db2f0 ("x86/shstk: Activate Supervisor Shadow Stacks").
Thanks, Roger.
next prev parent reply other threads:[~2026-10-19 18:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 15:59 [PATCH] x86/shstk: Fix possible crash while enabling Shadow Stacks Andrew Cooper
2026-10-19 16:04 ` Teddy Astie
2026-10-19 16:52 ` Roger Pau Monné
2026-10-19 16:53 ` Andrew Cooper
2026-10-19 18:58 ` Roger Pau Monné [this message]
2026-10-20 8:31 ` Andrew Cooper
2026-10-20 8:45 ` Roger Pau Monné
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=atZoSz16waAvDlPw@Mac.lan \
--to=roger@xenproject.org \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=teddy.astie@vates.tech \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.