All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Thomas Gleixner <tglx@kernel.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: x86: missing FRED #PF event data?
Date: Mon, 10 Aug 2026 11:23:28 +0200	[thread overview]
Message-ID: <20260810092328.GH1642880@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <anmUOn2lyzjcbJKp@google.com>

On Mon, Aug 10, 2026 at 06:09:43PM +0900, Sergey Senozhatsky wrote:
> On (26/08/10 11:03), Peter Zijlstra wrote:
> > > > > and got the following while running my tests (and well, we don't crash
> > > > > anymore):
> > > > > 
> > > > > [  254.040223] :: fixed up address to ffff9c4d64af4000  [[fred: 0 cr2: ffff9c4d64af4000]]
> > > > > ...
> > > > > [ 1821.904563] :: fixed up address to ffff9c4e9dd0a000  [[fred: 0 cr2: ffff9c4e9dd0a000]]
> > > > > 
> > > > > Does any of this make sense to you?
> > > > 
> > > > I think the explanation is some pKVM shenanigans.  Sorry for the noise.
> > > 
> > > No, I think we are back at square one.  I thought that maybe pKVM
> > > was disabling FRED and that was causing issues.  But I actually see
> > > that both cpu_feature_enabled(X86_FEATURE_FRED) and (cr4 & X86_CR4_FRED)
> > > claim FRED is enabled, yet fred #PF data is 0 while CR2 holds the correct
> > > address.
> > 
> > Can you reproduce on real hardware? I mean, you were babbling about pKVM
> > (whatever that is), so I'm thinking you're on some dodgy virt thing.
> > 
> > Not that I have any actual FRED hardware to test anything on :/
> 
> It's an actual H/W, a laptop (Intel(R) Core(TM) Ultra 7 355 powered),
> I was babbling about pKVM because it seems that the best way to
> reproduce is to launch a VM, yet the crash is happening on the host
> side.

Urg, ok, lets wait for hpa to wake up. He's the one that knows most
about FRED.

  reply	other threads:[~2026-08-10  9:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10  6:49 x86: missing FRED #PF event data? Sergey Senozhatsky
2026-08-10  7:38 ` Sergey Senozhatsky
2026-08-10  8:58   ` Sergey Senozhatsky
2026-08-10  9:03     ` Peter Zijlstra
2026-08-10  9:09       ` Sergey Senozhatsky
2026-08-10  9:23         ` Peter Zijlstra [this message]
2026-08-10 13:51           ` Sean Christopherson
2026-08-10 14:47             ` Sergey Senozhatsky
2026-08-10 10:06         ` David Laight
2026-08-10 10:40           ` Sergey Senozhatsky
2026-08-10 15:40     ` H. Peter Anvin
2026-08-11  1:47       ` Sergey Senozhatsky
2026-08-11  3:11         ` H. Peter Anvin
2026-08-11  5:37           ` Xin Li
2026-08-11  7:05             ` Sergey Senozhatsky

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=20260810092328.GH1642880@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=senozhatsky@chromium.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 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.