From: Ingo Molnar <mingo@kernel.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Akihiro Suda <suda.kyoto@gmail.com>,
Linux Regressions <regressions@lists.linux.dev>,
Linux x86 <x86@kernel.org>,
aruna.ramakrishna@oracle.com, tglx@linutronix.de
Subject: Re: [REGRESSION][BISECTED] x86: kernel 6.12 crashes during get_xsave_addr_user on Apple Virtualization
Date: Thu, 13 Mar 2025 19:01:48 +0100 [thread overview]
Message-ID: <Z9MdjKI1IDgwMn5D@gmail.com> (raw)
In-Reply-To: <3f4758be-df0e-44f3-b259-af02a2d7b3b3@intel.com>
* Dave Hansen <dave.hansen@intel.com> wrote:
> On 3/11/25 07:35, Akihiro Suda wrote:
> > (...)
> > [ 0.477064] Run /init as init process
> > [ 0.478585] ------------[ cut here ]------------
> > [ 0.478747] WARNING: CPU: 0 PID: 1 at
> > arch/x86/kernel/fpu/xstate.c:1003 get_xsave_addr_user+0x28/0x40
> > [ 0.478893] Modules linked in:
> > [ 0.478999] CPU: 0 UID: 0 PID: 1 Comm: init Not tainted
> > 6.11.0-rc1-00007-g70044df250d0 #15
> > [ 0.479148] RIP: 0010:get_xsave_addr_user+0x28/0x40
>
> The warning here seems to be because the kernel thinks protections keys
> is enabled (X86_FEATURE_OSPKE) but also thinks XSAVE management of
> protection keys is _dis_abled. That's a valid hardware configuration,
> but it's a configuration the kernel never expects to see.
>
> New kernels care about this more because we effectively have new code
> that does:
>
> if (cpu_feature_enabled(X86_FEATURE_OSPKE))
> get_xsave_addr_user(XFEATURE_PKRU, ...)
>
> Is there a chance that you have a _full_ dmesg from one of these
> systems? I'm looking for the "x86/fpu: xstate_offset..." lines. It would
> also be interesting to see a CPUID dump on a booted system from before
> the patch that started causing issues and maybe even on one with one of
> the workarounds applied. You can get that with:
>
> cpuid -1 --raw
I'll hold off on the fresh x86/urgent commit I applied earlier today
until this bug is better understood.
Thanks,
Ingo
next prev parent reply other threads:[~2025-03-13 18:01 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 14:35 [REGRESSION][BISECTED] x86: kernel 6.12 crashes during get_xsave_addr_user on Apple Virtualization Akihiro Suda
2025-03-11 18:25 ` Aruna Ramakrishna
2025-03-12 5:57 ` Akihiro Suda
2025-03-12 6:18 ` Akihiro Suda
2025-03-12 9:31 ` [PATCH] x86: disable PKU when running " Akihiro Suda
2025-03-12 9:32 ` Akihiro Suda
2025-03-12 10:09 ` [PATCH v2] " Akihiro Suda
2025-03-12 10:21 ` Greg KH
2025-03-13 17:02 ` Ingo Molnar
2025-03-13 23:59 ` Akihiro Suda
2025-03-13 17:11 ` [tip: x86/urgent] x86/pkeys: Disable " tip-bot2 for Akihiro Suda
2025-03-14 6:26 ` [PATCH v2] x86: disable " kernel test robot
2025-03-14 6:26 ` kernel test robot
2025-03-13 17:58 ` [REGRESSION][BISECTED] x86: kernel 6.12 crashes during get_xsave_addr_user " Dave Hansen
2025-03-13 18:01 ` Ingo Molnar [this message]
2025-03-14 6:22 ` Akihiro Suda
2025-03-14 8:48 ` [PATCH] x86/pkeys: Disable PKU when XFEATURE_PKRU is missing Akihiro Suda
2025-03-14 8:49 ` kernel test robot
2025-03-19 21:00 ` [tip: x86/urgent] x86/pkeys: Add quirk to disable " tip-bot2 for Akihiro Suda
2025-03-19 21:39 ` [PATCH] x86/pkeys: Disable " Ingo Molnar
2025-03-20 14:21 ` Akihiro Suda
2025-03-20 15:11 ` Borislav Petkov
2025-03-20 19:46 ` Ingo Molnar
2025-03-19 22:11 ` [tip: x86/urgent] x86/pkeys: Add quirk to disable " tip-bot2 for Akihiro Suda
2025-03-14 15:07 ` [REGRESSION][BISECTED] x86: kernel 6.12 crashes during get_xsave_addr_user on Apple Virtualization Dave Hansen
2025-03-15 13:09 ` Akihiro Suda
2025-03-15 13:48 ` Borislav Petkov
2025-03-15 15:10 ` Akihiro Suda
2025-03-15 19:02 ` Borislav Petkov
2025-03-15 18:45 ` Dave Hansen
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=Z9MdjKI1IDgwMn5D@gmail.com \
--to=mingo@kernel.org \
--cc=aruna.ramakrishna@oracle.com \
--cc=dave.hansen@intel.com \
--cc=regressions@lists.linux.dev \
--cc=suda.kyoto@gmail.com \
--cc=tglx@linutronix.de \
--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 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.