NetBSD Problem Report #57520

From www@netbsd.org  Tue Jul 11 22:02:05 2023
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D77391A923D
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Jul 2023 22:02:05 +0000 (UTC)
Message-Id: <20230711220204.408681A923E@mollari.NetBSD.org>
Date: Tue, 11 Jul 2023 22:02:04 +0000 (UTC)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@NetBSD.org
Subject: netbsd-10 amd64 system hangs on reboot
X-Send-Pr-Version: www-1.0

>Number:         57520
>Category:       kern
>Synopsis:       netbsd-10 amd64 system hangs on reboot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 11 22:05:00 +0000 2023
>Originator:     Hisashi T Fujinaka
>Release:        NetBSD 10.0_BETA
>Organization:
none
>Environment:
System: NetBSD mail.i8u.org 10.0_BETA NetBSD 10.0_BETA (CHRIS) #518: Thu Jul 6 10:12:28 PDT 2023 htodd@mail.i8u.org:/usr/obj/amd64/sys/arch/amd64/compile/CHRIS amd64
Architecture: x86_64
Machine: amd64
>Description:
This is one of several problems I'm having with my Intel system.

My system no longer boots with "shutdown -r" or "reboot" as it either hangs in BIOS (less common)
or hangs after trying to start up the CPUs (very common). I bisected the kernel and probably need
more investigation around the particular commit, but here's what bisect said was the bad commit:

[htodd@mara]/home/netbsd-git/src 1169 % git bisect good
5dc4f69652439cc1381a2f97747e783b95804f85 is the first bad commit
commit 5dc4f69652439cc1381a2f97747e783b95804f85
Author: martin <martin@NetBSD.org>
Date:   Thu Mar 30 11:41:07 2023 +0000

    Pull up following revision(s) (requested by bouyer in ticket #129):

            sys/kern/vfs_xattr.c: revision 1.39

    extattr_set_vp(): properly handle XATTR_REPLACE flags, FFSv2ea will return
    ENOATTR, not ENODATA if the attribute is missing.

    Makes glusterfs 10 run on a FFSv2ea file system.

 sys/kern/vfs_xattr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

This is my local server so I'd rather not have it out of commission very long.

I marked this as high because rebooting requires a physical presence with this
problem.

I will provide the kernel config (commenting out several things) later, because
the GENERIC kernel panics.
>How-To-Repeat:
Just reboot the system with the latest kernel.
>Fix:

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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.