NetBSD Problem Report #55437

From www@netbsd.org  Tue Jun 30 20:02:04 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 A83B91A9217
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Jun 2020 20:02:04 +0000 (UTC)
Message-Id: <20200630200203.BC4C51A9218@mollari.NetBSD.org>
Date: Tue, 30 Jun 2020 20:02:03 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Panic: fpudna from kernel
X-Send-Pr-Version: www-1.0

>Number:         55437
>Category:       kern
>Synopsis:       Panic: fpudna from kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 30 20:05:00 +0000 2020
>Last-Modified:  Fri Jul 03 16:35:01 +0000 2020
>Originator:     Sevan Janiyan
>Release:        NetBSD-HEAD
>Organization:
>Environment:
NetBSD 9.99.68 202006300450Z amd64
>Description:
Upgraded to latest available build from head (202006300450Z), attempting to compile a new kernel results in panic with string "fpudna from kernel, ip 0xffffffff802292df, trapframe 0xffffce013e4"

bt
vpanic() at netbsd:vpanic+0x152
snprintf() at netbsd:snprintf
fpu_set_default_cw() at netbsd:fpu_set_default_cw     (no address here - sevan)
Xtrap07() at netbsd:Xtrap07+0xbd
cpu_switchto() at netbsd:cpu_switchto+0xa1
idle_loop() at netbsd:idle_loop+0x180

>How-To-Repeat:
Install 202006300450Z amd64 build
Attempt to build a kernel
>Fix:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/55437: Panic: fpudna from kernel
Date: Wed, 1 Jul 2020 10:26:46 +0200

 On Tue, Jun 30, 2020 at 08:05:00PM +0000, venture37@geeklan.co.uk wrote:
 > Upgraded to latest available build from head (202006300450Z), attempting to compile a new kernel results in panic with string "fpudna from kernel, ip 0xffffffff802292df, trapframe 0xffffce013e4"
 > 
 > bt
 > vpanic() at netbsd:vpanic+0x152
 > snprintf() at netbsd:snprintf
 > fpu_set_default_cw() at netbsd:fpu_set_default_cw     (no address here - sevan)
 > Xtrap07() at netbsd:Xtrap07+0xbd
 > cpu_switchto() at netbsd:cpu_switchto+0xa1
 > idle_loop() at netbsd:idle_loop+0x180

 I've seen it in the latest Xen test runs too:
 http://www-soc.lip6.fr/~bouyer/NetBSD-tests/xen/HEAD/i386/202006290150Z_anita.txt

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55437: Panic: fpudna from kernel
Date: Thu, 2 Jul 2020 21:24:19 +0100

 Updated to 202007020920Z, same panic, different bt.

 fpudna from kernel, ip 0xffffffff802292af, trapframe 0xffffd6813e5

 bt
 breakpoint() at netbsd:breakpoint+0x5
 vpanic() at netbsd:vpanic+0x152
 snprintf() at netbsd:snprintf
 fpu_set_default_cw() at netbsd:fpu_set_default_cw
 Xtrap07() at netbsd:Xtrap07+0xbd
 aesni_enc_impl() at netbsd:aesni_enc_impl+0x1c
 rijndaelEncrypt() at netbsd:rijndaelEncrypt+0x4b
 ccmp_init_blocks() at netbsd:ccmp_decap+0x18f
 ieee80211_crypto_decap() at netbsd:ieee80211_crypto_decap+0xb2
 ieee80211_input() at netbsd:ieee802_input+0xb93
 iwn_notif_intr() at netbsd:iwn_notif_intr+0x515
 iwn_softintr() at netbsd:iwn_softintr+0x4cc
 softint_dispatch() at netbsd:softint_dispatch+0x2d1
 DDB lost frame for netbsd:Xsoftintr+0x4f, trying 0xffffd6813e50d0f0
 Xsoftintr() at netbsd:Xsoftintr+0x4f

From: David Brownlee <abs@absd.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	Sevan Janiyan <venture37@geeklan.co.uk>
Subject: Re: kern/55437: Panic: fpudna from kernel
Date: Fri, 3 Jul 2020 12:37:43 +0100

 Updated to 202007030000Z, fpu_set_default_cw panic on Thinkpad T480
 with /home on cgd, but no aes functions in stack

 cpu0: features1 0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MONITOR,DS-CPL,VMX,EST,TM2>
 cpu0: features1 0x7ffafbbf<SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE41,SSE42>
 cpu0: features1 0x7ffafbbf<X2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,OSXSAVE,AVX>
 cpu0: features1 0x7ffafbbf<F16C,RDRAND>

 fpu_set_default_cw() at netbsd:fpu_set_default_cw
 Xtrap07() at netbsd:Xtrap07+0xbd
 cpu_switchto() at netbsd:cpu_switchto:+0xa1
 sleepq_block() at netbsd:sleepq_block+0xac
 cv_wait() at netbsd:cv_wait+0xff
 biowait() at netbsd: biowait:+0x68
 bread() at netbsd:bread+0x2c
 ffs_bufrd() at netbsd:ffs_bufrd+0x152

From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/55437: Panic: fpudna from kernel
Date: Fri, 3 Jul 2020 17:32:57 +0100

 On 03/07/2020 12:40, David Brownlee wrote:
 > Updated to 202007030000Z, fpu_set_default_cw panic on Thinkpad T480
 >  with /home on cgd, but no aes functions in stack

 Ah, I should've stated, I'm using FDE via cgdroot.kmod on a ThinkPad
 x230, cpuctl info:

 cpu0: highest basic info 0000000d
 cpu0: highest extended info 80000008
 cpu0: "Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz"
 cpu0: Intel Xeon E3-1200v2 and 3rd gen core, Ivy Bridge (686-class),
 2594.11 MHz
 cpu0: family 0x6 model 0x3a stepping 0x9 (id 0x306a9)
 cpu0: features
 0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE>
 cpu0: features
 0xbfebfbff<MCA,CMOV,PAT,PSE36,CLFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2>
 cpu0: features 0xbfebfbff<SS,HTT,TM,SBF>
 cpu0: features1 0x7fbae3bf<SSE3,PCLMULQDQ,DTES64,MONITOR,DS-CPL,VMX,EST,TM2>
 cpu0: features1
 0x7fbae3bf<SSSE3,CX16,xTPR,PDCM,PCID,SSE41,SSE42,X2APIC,POPCNT>
 cpu0: features1 0x7fbae3bf<DEADLINE,AES,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
 cpu0: features2 0x28100800<SYSCALL/SYSRET,XD,RDTSCP,EM64T>
 cpu0: features3 0x1<LAHF>
 cpu0: features5 0x281<FSGSBASE,SMEP,ERMS>
 cpu0: xsave features 0x7<x87,SSE,AVX>
 cpu0: xsave instructions 0x1<XSAVEOPT>
 cpu0: xsave area size: current 832, maximum 832, xgetbv enabled
 cpu0: enabled xsave 0x7<x87,SSE,AVX>
 cpu0: I-cache 32KB 64B/line 8-way, D-cache 32KB 64B/line 8-way
 cpu0: L2 cache 256KB 64B/line 8-way
 cpu0: L3 cache 3MB 64B/line 12-way
 cpu0: 64B prefetching
 cpu0: ITLB 64 4KB entries 4-way, 2M/4M: 8 entries
 cpu0: DTLB 64 4KB entries 4-way, 2M/4M: 32 entries (L0)
 cpu0: L2 STLB 512 4KB entries 4-way
 cpu0: Initial APIC ID 0
 cpu0: Cluster/Package ID 0
 cpu0: Core ID 0
 cpu0: SMT ID 0
 cpu0: MONITOR/MWAIT extensions 0x3<EMX,IBE>
 cpu0: monitor-line size 64
 cpu0: C1 substates 2
 cpu0: C2 substates 1
 cpu0: C3 substates 1
 cpu0: C4 substates 2
 cpu0: DSPM-eax 0x77<DTS,IDA,ARAT,PLN,ECMD,PTM>
 cpu0: DSPM-ecx 0x9<HWF,EPB>
 cpu0: SEF highest subleaf 00000000
 cpu0: Power Management features: 0x100<ITSC>
 cpu0: Perfmon-eax 0x7300403<VERSION=0x3,GPCounter=0x4,GPBitwidth=0x30>
 cpu0: Perfmon-eax 0x7300403<Vectorlen=0x7>
 cpu0: Perfmon-edx 0x603<FixedFunc=0x3,FFBitwidth=0x30>
 cpu0: microcode version 0x1b, platform ID 4

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.