From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1C303612E0 for ; Mon, 10 Aug 2026 09:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786352989; cv=none; b=lZtUpleQbu6itaKqhn2Hz3Hd27kE8qBa+MtUIyttJV65p9n9lWwYtLEiorrVlszTHfNpzDiYGra4Ep9HsF3Rgc2JNtYti4DoST74uW8K+/gzmmarC3LltRlI8mInfRaaqvtnh39pAr+Fl2Up9ncFDN+U7o/slhtfccgaJf72luU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786352989; c=relaxed/simple; bh=a0emzp2COR5bjkn1x0lGuR029CYBLJvQN70nx1OYhg0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dSTvGX1l8HXkr0pB1GDp8Dm0e77neW1W8NP8tdGQm93AB+MJv/fCX22XvwIi7TzV/TFDglrnJ8VNfIGLj/su2L01siFlLlHDmmiAUKpLNfCACkc4AzNyZY/AtwDaHDEtt3KHsRJQM5eNbu1/1YkGG2tjCBicWZW/4d467RCn3DY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=c8j79+86; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="c8j79+86" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-84e507b079dso895632b3a.0 for ; Mon, 10 Aug 2026 02:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1786352987; x=1786957787; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=hs90xeVz8qUMkHf4/NtV7fxdGX75nHeK1U0M0EYiRo4=; b=c8j79+861APMDy8SvnAlorE2FXDepWJjs6bLfXjWzTGQI4GEAINlRKhFyzdBTRjhAh hdD/2TQkJED2b8T0HViMDeza6v99x5E50uL4V7rZOcDg+gPd6GH3285Xon2k9V0uICM7 8aIGmeCVm1Hsz7IBPHW8xw7T+gaFBR7e+ELMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786352987; x=1786957787; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hs90xeVz8qUMkHf4/NtV7fxdGX75nHeK1U0M0EYiRo4=; b=m6fk/88y8mTqHfKU12vms7uXBmusRabwTxNrlYQxVHWLDGpINtFZo8tOaUWoGM7frs SKkOrlCUxE4csrDy14lT9ihUtLe14EpUstgQJOiXozEc93Lc/vZbhmOR1R2YgFYyfFpt aHRSF1ufwNgbGeIjhFYMJKXU+lbxLLhOoblPdf7oJd+EaaBopcd9bU2M2xH5xSjQFYJP GkDpU347EGwF4plpIg8BAT4eKJe95VEIiLkiXShPqB4gCogH9J89bjhJk27FmPBdFqoA nwUtneuspvIFWuDz1KgEY1ijXDSuBQxda9EpahVGeJT7BgqPnx9qHBKRTccDK2qHHm35 ipSA== X-Forwarded-Encrypted: i=1; AHgh+RojAC5vN7chdenTvcNvjtcUKAAIF7SSvST4e4SDodE19/7ecYDbc1i1x7zg7W5Sh6zhi94/2RxVFzegs80=@vger.kernel.org X-Gm-Message-State: AOJu0YxZ6yAVzMp+dDBcs20Rj3RSG8vo0oQy+tV0fOdyjpSi5zv2+j2Z eu4cLnglJm/EKgXSXsQ5XYDZDUxmf/fZ0G2HDzZ7/9XvZHZYO71TkGM/c+CB9lmm6Q== X-Gm-Gg: AR+sD12KO5pj+J+HyV6giHe9y8oyJIl5t9YfepGpNXvax8M3hdH+jlHhQCtt7GMoruN wxtxxSeHLsiv/UohRdzWYKTDUtEPFLQpvXTHcvqdZ7vs8OTI3udOS9FFz0b4JDqZbQYpi/R69bK zDhLC1xwxIbH6y3MvQRidU+/1QY22A3aoqHe+zM43bvV4YRKqF8qGBxP6BpEMjfgAv1E/s1vPYy JB5ihXui9kgj50DvHP32B5IXDuRl1M1vro5ITOh9GA1bG3u5Gzbqrq6/kb87E4zCZMaUcekFyh4 MA/crNIPma1gpQ4eWOivadzPdiAgZEqesmIW4FvL1mbaJSW1ququ8hrtUExueJoEU1iLD87RK5P awgIo5GtnwqFXE3AaX9pAE2ssGa7pFpaKWeAyV6OpvUgZoI6Ru2eNHoPrvgGu6uDx7aG61ZNmfy oicLj/3lEYG47S17ZY0LwppriwNrQ+E0ORVtf7GXEhNS7OzoyI3oa09ms8bs7lX3rq0jWkF/E6P Ddf9M+ucfzF29IeAmVVN0InushV X-Received: by 2002:a05:6a00:6c88:b0:845:d6a5:716b with SMTP id d2e1a72fcca58-84f6966fdb9mr20167499b3a.23.1786352987214; Mon, 10 Aug 2026 02:09:47 -0700 (PDT) Received: from google.com ([2a00:79e0:2031:6:ddfb:e755:8f7f:81af]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84f5a3a0f8dsm3623770b3a.12.2026.08.10.02.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 02:09:46 -0700 (PDT) Date: Mon, 10 Aug 2026 18:09:43 +0900 From: Sergey Senozhatsky To: Peter Zijlstra Cc: Sergey Senozhatsky , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: x86: missing FRED #PF event data? Message-ID: References: <20260810090347.GS48970@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260810090347.GS48970@noisy.programming.kicks-ass.net> 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.