NetBSD Problem Report #58650

From www@netbsd.org  Wed Aug 28 09:48:43 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 839021A9244
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 28 Aug 2024 09:48:43 +0000 (UTC)
Message-Id: <20240828094842.355F01A9245@mollari.NetBSD.org>
Date: Wed, 28 Aug 2024 09:48:42 +0000 (UTC)
From: tomas.rippl@tutanota.com
Reply-To: tomas.rippl@tutanota.com
To: gnats-bugs@NetBSD.org
Subject: unable to install v10.0 - kernel does not boot, sysinst does not start
X-Send-Pr-Version: www-1.0

>Number:         58650
>Category:       install
>Synopsis:       unable to install v10.0 - kernel does not boot, sysinst does not start
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 28 09:50:00 +0000 2024
>Last-Modified:  Thu May 15 18:20:00 +0000 2025
>Originator:     Tomas Rippl
>Release:        10.0
>Organization:
>Environment:
unable to do
>Description:
I am trying to install NetBSD 10.0 on Lenovo Thinkpad E14 Gen 6 Type 21M7 (Intel Core Ultra 7 155H Meteor Lake, Intel Arc grahics). The process shows:
"fatal privileged instruction fault in supervisor mode"
"trap type 0 code 0 rip 0xffffffff8023c24e cs 0x8 rflags 0x10246...." and many more similar lines like "kernel: privileged instruction fault trap, code=0" and "Stopped in pid 0.0 (system) at netbsd:xrstor+0xa: fxsavel"
and I am offered a shell prompt.
>How-To-Repeat:

>Fix:

>Audit-Trail:
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58650 CVS commit: [netbsd-10] src/sys/arch/x86/x86
Date: Thu, 15 May 2025 18:17:07 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Thu May 15 18:17:07 UTC 2025

 Modified Files:
 	src/sys/arch/x86/x86 [netbsd-10]: fpu.c

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #1119):

 	sys/arch/x86/x86/fpu.c: revision 1.81
 	sys/arch/x86/x86/fpu.c: revision 1.90 (partial, via patch)

 x86: Fix fpu_kern_enter/leave for machines with big fpu state.

 fpu_kern_enter/leave are used for FPU/SIMD access from the kernel,
 for cgd(4) crypto and similar.  Currently, we use a statically
 allocated union savefpu object with particular content to put the
 FPU into a safe state or an all-zero state.

 This doesn't work (reliably, anyway) when the FPU state is larger
 than 576 bytes, e.g. with AVX-512 register state (another ~2 KiB)
 or Intel AMX TILECFG/TILEDATA (another ~10 KiB).  For machines
 with larger FPU state, this change dynamically allocates a larger
 area for the safe/zero FPU states.

 (This change doesn't add support for Intel AMX TILECFG/TILEDATA;
 it just avoids the failure mode.  The part of
 https://mail-index.netbsd.org/source-changes/2025/04/24/msg156552.html
 it applies is limited.)
 This may improve the situation for the following PRs:

 PR kern/57258: kthread_fpu_enter/exit problem
 PR kern/58650: unable to install v10.0 - kernel does not boot, sysinst does not start


 To generate a diff of this commit:
 cvs rdiff -u -r1.79.4.4 -r1.79.4.5 src/sys/arch/x86/x86/fpu.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.