NetBSD Problem Report #59337

From www@netbsd.org  Mon Apr 21 08:58:07 2025
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)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2868E1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 Apr 2025 08:58:07 +0000 (UTC)
Message-Id: <20250421085805.B1B141A923D@mollari.NetBSD.org>
Date: Mon, 21 Apr 2025 08:58:05 +0000 (UTC)
From: rares.aioanei@gmail.com
Reply-To: rares.aioanei@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Kernel panic while running ATF suite on -current
X-Send-Pr-Version: www-1.0

>Number:         59337
>Category:       kern
>Synopsis:       Kernel panic while running ATF suite on -current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 21 09:00:02 +0000 2025
>Last-Modified:  Mon Apr 21 09:10:01 +0000 2025
>Originator:     Rares Aioanei
>Release:        10.99.14 (updated today, 21st of April)
>Organization:
>Environment:
NetBSD netbsdvmcurr.localdom.ain 10.99.14 NetBSD 10.99.14 (GENERIC) #0: Sat Apr 19 14:25:11 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
While running ATF tests and updating my pkgsrc tree at the same time, the machine rebooted. Afterwards, I found this in /var/log/messages : 

Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] panic: kernel diagnostic assertion "!(l->l_md.md_flags & MDL_FPU_IN_CPU)" failed: file "/usr/src/sys/arch/x86/x86/fpu.c", line 149 
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] cpu2: Begin traceback...
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] vpanic() at netbsd:vpanic+0x171
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] kern_assert() at netbsd:kern_assert+0x4b
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] process_read_fpregs_xmm() at netbsd:process_read_fpregs_xmm+0x122
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] process_read_fpregs() at netbsd:process_read_fpregs+0x9
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] proc_regio() at netbsd:proc_regio+0x69
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] do_ptrace() at netbsd:do_ptrace+0xc4f
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] sys_ptrace() at netbsd:sys_ptrace+0x2b
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] syscall() at netbsd:syscall+0x9d
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] --- syscall (number 26) ---
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] netbsd:syscall+0x9d:
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] cpu2: End traceback...
Apr 21 11:43:30 netbsdvmcurr /netbsd: 
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] dumping to dev 0,1 (offset=1039, size=2097022):
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5358317] dump Skipping crash dump on recursive panic
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] panic: atastart: channel 0 busy, xfer not possible
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] cpu2: Begin traceback...
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] vpanic() at netbsd:vpanic+0x171
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] panic() at netbsd:panic+0x3c
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] atastart() at netbsd:atastart+0x5c5
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] wd_dumpblocks() at netbsd:wd_dumpblocks+0xfe
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dk_dump() at netbsd:dk_dump+0x15f
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_flush() at netbsd:dump_header_flush+0x5d
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_addbytes() at netbsd:dump_header_addbytes+0x40
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_addseg() at netbsd:dump_header_addseg+0x29
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_seg_iter() at netbsd:dump_seg_iter+0xe6
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] cpu_dump() at netbsd:cpu_dump+0x76
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dodumpsys() at netbsd:dodumpsys+0x100
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] dumpsys() at netbsd:dumpsys+0x1d
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] kern_reboot() at netbsd:kern_reboot+0x93
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] vpanic() at netbsd:vpanic+0x17b
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] kern_assert() at netbsd:kern_assert+0x4b
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] process_read_fpregs_xmm() at netbsd:process_read_fpregs_xmm+0x122
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] process_read_fpregs() at netbsd:process_read_fpregs+0x9
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] proc_regio() at netbsd:proc_regio+0x69
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] do_ptrace() at netbsd:do_ptrace+0xc4f
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] sys_ptrace() at netbsd:sys_ptrace+0x2b
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] syscall() at netbsd:syscall+0x9d
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] --- syscall (number 26) ---
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] netbsd:syscall+0x9d:
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] cpu2: End traceback...
Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] rebooting...

>How-To-Repeat:
Run ATF tests 
>Fix:

>Audit-Trail:
From: Rares Aioanei <bsdlisten@outlook.com>
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
 gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/59337: Kernel panic while running ATF suite on -current
Date: Mon, 21 Apr 2025 12:09:33 +0300

 On 4/21/25 12:00, rares.aioanei@gmail.com wrote:
 >> Number:         59337
 >> Category:       kern
 >> Synopsis:       Kernel panic while running ATF suite on -current
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       medium
 >> Responsible:    kern-bug-people
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Mon Apr 21 09:00:02 +0000 2025
 >> Originator:     Rares Aioanei
 >> Release:        10.99.14 (updated today, 21st of April)
 >> Organization:
 >> Environment:
 > NetBSD netbsdvmcurr.localdom.ain 10.99.14 NetBSD 10.99.14 (GENERIC) #0: Sat Apr 19 14:25:11 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
 > 
 >> Description:
 > While running ATF tests and updating my pkgsrc tree at the same time, the machine rebooted. Afterwards, I found this in /var/log/messages :
 > 
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] panic: kernel diagnostic assertion "!(l->l_md.md_flags & MDL_FPU_IN_CPU)" failed: file "/usr/src/sys/arch/x86/x86/fpu.c", line 149
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] cpu2: Begin traceback...
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] vpanic() at netbsd:vpanic+0x171
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5157224] kern_assert() at netbsd:kern_assert+0x4b
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] process_read_fpregs_xmm() at netbsd:process_read_fpregs_xmm+0x122
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] process_read_fpregs() at netbsd:process_read_fpregs+0x9
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] proc_regio() at netbsd:proc_regio+0x69
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] do_ptrace() at netbsd:do_ptrace+0xc4f
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] sys_ptrace() at netbsd:sys_ptrace+0x2b
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] syscall() at netbsd:syscall+0x9d
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] --- syscall (number 26) ---
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] netbsd:syscall+0x9d:
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] cpu2: End traceback...
 > Apr 21 11:43:30 netbsdvmcurr /netbsd:
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5257809] dumping to dev 0,1 (offset=1039, size=2097022):
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9762.5358317] dump Skipping crash dump on recursive panic
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] panic: atastart: channel 0 busy, xfer not possible
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] cpu2: Begin traceback...
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] vpanic() at netbsd:vpanic+0x171
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] panic() at netbsd:panic+0x3c
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5716764] atastart() at netbsd:atastart+0x5c5
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] wd_dumpblocks() at netbsd:wd_dumpblocks+0xfe
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dk_dump() at netbsd:dk_dump+0x15f
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_flush() at netbsd:dump_header_flush+0x5d
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_addbytes() at netbsd:dump_header_addbytes+0x40
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_header_addseg() at netbsd:dump_header_addseg+0x29
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dump_seg_iter() at netbsd:dump_seg_iter+0xe6
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] cpu_dump() at netbsd:cpu_dump+0x76
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5817350] dodumpsys() at netbsd:dodumpsys+0x100
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] dumpsys() at netbsd:dumpsys+0x1d
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] kern_reboot() at netbsd:kern_reboot+0x93
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] vpanic() at netbsd:vpanic+0x17b
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] kern_assert() at netbsd:kern_assert+0x4b
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] process_read_fpregs_xmm() at netbsd:process_read_fpregs_xmm+0x122
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] process_read_fpregs() at netbsd:process_read_fpregs+0x9
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.5917905] proc_regio() at netbsd:proc_regio+0x69
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] do_ptrace() at netbsd:do_ptrace+0xc4f
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] sys_ptrace() at netbsd:sys_ptrace+0x2b
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] syscall() at netbsd:syscall+0x9d
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] --- syscall (number 26) ---
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] netbsd:syscall+0x9d:
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] cpu2: End traceback...
 > Apr 21 11:43:30 netbsdvmcurr /netbsd: [ 9763.6018477] rebooting...
 > 
 >> How-To-Repeat:
 > Run ATF tests
 >> Fix:
 > 
 Last line written in the ATF log was

 tc, 0.008192, lib/libc/sys/t_ptrace_wait6, posix_spawn3, passed

 which is consistent with "syscall (number 26)" as seen before reboot and 
 which corresponds to ptrace 
 (https://github.com/NetBSD/src/blob/trunk/sys/sys/syscall.h)

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.