From owner-freebsd-current@freebsd.org Fri Mar 12 03:57:39 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E473856C3A4 for ; Fri, 12 Mar 2021 03:57:39 +0000 (UTC) (envelope-from agh@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DxX8M16mbz4kmy for ; Fri, 12 Mar 2021 03:57:38 +0000 (UTC) (envelope-from agh@riseup.net) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4DxX8K0cvbzDy18 for ; Thu, 11 Mar 2021 19:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1615521457; bh=cW4ztJmgAZSs8sj7vh3wy5V71wEOkEbopaJ3Uc9UxdU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=L5A6MZfeqeagJu6mK/h1jBZ3a3WJGeVL8yt6CC2paZAyjIyf+pB7VYdSDColbLgdi 3UGL7uXMpavA1PzwRy4Y/EOkAkrgHMTZXng4tFyCI/efYZgBmxPKsHliz70mqf0x0X n+m9R0jv1iCfjx/ACO0KFSBg2jdlVttUSRLz/6T8= X-Riseup-User-ID: A38A94DAFA82A0D5CA263792A88716ACB5B2EEE114600EC6B8608774B243A02D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4DxX8J6NB0z5vRr for ; Thu, 11 Mar 2021 19:57:36 -0800 (PST) MIME-Version: 1.0 Date: Thu, 11 Mar 2021 19:57:36 -0800 From: Alastair Hogge To: freebsd-current@freebsd.org Subject: Re: Asus E45M1-M PRO (panic: malloc(M_WAITOK) with sleeping prohibited) In-Reply-To: References: Message-ID: <3db68a3f1944fa9e099796ff45f1b1a2@riseup.net> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DxX8M16mbz4kmy X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=L5A6MZfe; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (mx1.freebsd.org: domain of agh@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=agh@riseup.net X-Spamd-Result: default: False [-5.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[198.252.153.129:from]; R_SPF_ALLOW(-0.20)[+mx]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[riseup.net:+]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[198.252.153.129:from]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[198.252.153.129:from:127.0.2.255]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2021 03:57:39 -0000 Turns out, EFI boot stopped working. The following boots but fails with umass0:6:0: Attached to scbus6 Root mount waiting for: usbus5 CAM panic: malloc(M_WAITOK) with sleeping prohibited Tested with FreeBSD-14.0-CURRENT-amd64-20210311-15565e0a217-257277-mini-memstick.img OK boot [176/1976] Loading kernel... /boot/kernel/kernel text=0x17f580 text=0xe09440 text=0x6a7ae4 data=0x140 data=0x1c2648+0x43c9b8 syms=[0x8+0x187d28+0x8+0x1a8351] Loading configured modules... can't find '/boot/entropy' can't find '/etc/hostid' GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb ---<>--- Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.0-CURRENT #0 main-n245383-15565e0a217: Thu Mar 11 06:32:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) WARNING: WITNESS option enabled, expect reduced performance. VT(vga): resolution 640x480 CPU: AMD E-450 APU with Radeon(tm) HD Graphics (1649.98-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x500f20 Family=0x14 Model=0x2 Stepping=0 Features=0x178bfbff Features2=0x802209 AMD Features=0x2e500800 AMD Features2=0x35ff SVM: NP,NRIP,NAsids=8 TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 7845748736 (7482 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled. Firmware Warning (ACPI): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20210105/tbfadt-796) ioapic0: MADT APIC ID 0 != hw id 3 ioapic0 irqs 0-23 Launching APs: 1 Timecounter "TSC" frequency 1649980197 Hz quality 800 random: entropy device external interface WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0. kbd1 at kbdmux0 mlx5en: Mellanox Ethernet driver 3.6.0 (December 2020) vtvga0: smbios0: at iomem 0xf0460-0xf047e smbios0: Version: 2.6, BCD Revision: 2.6 aesni0: No AES or SHA support. acpi0: acpi0: Power Button (fixed) cpu0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 450 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf0ff mem 0xd0000000-0xdfffffff,0xfeb00000-0xfeb3ffff irq 18 at device 1.0 on pci0 vgapci0: Boot video device hdac0: mem 0xfeb44000-0xfeb47fff irq 19 at device 1.1 on pci0 pcib1: irq 16 at device 4.0 on pci0 pci1: on pcib1 igb0: mem 0xfe600000-0xfe6fffff,0xfe784000-0xfe787fff irq 16 at device 0.0 on pci1 igb0: Using 1024 TX descriptors and 1024 RX descriptors igb0: Using 2 RX queues 2 TX queues igb0: Using MSI-X interrupts with 3 vectors igb0: Ethernet address: a0:36:9f:07:d9:58 [103/1976] igb0: netmap queues/slots: TX 2/1024, RX 2/1024 igb1: mem 0xfe500000-0xfe5fffff,0xfe780000-0xfe783fff irq 17 at device 0.1 on pci1 igb1: Using 1024 TX descriptors and 1024 RX descriptors igb1: Using 2 RX queues 2 TX queues igb1: Using MSI-X interrupts with 3 vectors igb1: Ethernet address: a0:36:9f:07:d9:59 igb1: netmap queues/slots: TX 2/1024, RX 2/1024 ahci0: port 0xf140-0xf147,0xf130-0xf133,0xf120-0xf127,0xf110-0xf113,0xf100-0xf10f mem 0xfeb4f000-0xfeb4f3ff irq 19 at device 17.0 on pci0 ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported ahci0: quirks=0x22000 ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 ohci0: mem 0xfeb4e000-0xfeb4efff irq 18 at device 18.0 on pci0 usbus0 on ohci0 usbus0: 12Mbps Full Speed USB v1.0 ehci0: mem 0xfeb4d000-0xfeb4d0ff irq 17 at device 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 usbus1: 480Mbps High Speed USB v2.0 ohci1: mem 0xfeb4c000-0xfeb4cfff irq 18 at device 19.0 on pci0 usbus2 on ohci1 usbus2: 12Mbps Full Speed USB v1.0 ehci1: mem 0xfeb4b000-0xfeb4b0ff irq 17 at device 19.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 usbus3: 480Mbps High Speed USB v2.0 hdac1: mem 0xfeb40000-0xfeb43fff irq 16 at device 20.2 on pci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci2: on pcib2 ohci2: mem 0xfeb4a000-0xfeb4afff irq 18 at device 20.5 on pci0 usbus4 on ohci2 usbus4: 12Mbps Full Speed USB v1.0 pcib3: at device 21.0 on pci0 pci3: on pcib3 pcib4: irq 16 at device 0.0 on pci3 pci4: on pcib4 pci4: at device 4.0 (no driver attached) pcib5: at device 21.2 on pci0 pci5: on pcib5 pcib6: irq 18 at device 0.0 on pci5 pci6: on pcib6 pci6: at device 2.0 (no driver attached) pcib7: at device 21.3 on pci0 pci7: on pcib7 xhci0: mem 0xfe800000-0xfe807fff irq 19 at device 0.0 on pci7 xhci0: 32 bytes context size, 32-bit DMA usbus5 on xhci0 usbus5: 5.0Gbps Super Speed USB v3.0 ohci3: mem 0xfeb49000-0xfeb49fff irq 18 at device 22.0 on pci0 usbus6 on ohci3 usbus6: 12Mbps Full Speed USB v1.0 ehci2: mem 0xfeb48000-0xfeb480ff irq 17 at device 22.2 on pci0 usbus7: EHCI version 1.0 usbus7 on ehci2 usbus7: 480Mbps High Speed USB v2.0 acpi_button0: on acpi0 uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 uart2: console (115200,n,8,1) orm0: at iomem 0xce800-0xcf7ff pnpid ORM0000 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 14. hwpstate0: on cpu0 Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 [30/1976] hdaa0: at nid 1 on hdacc0 pcm0: at nid 3 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm1: at nid 20 and 24,26 on hdaa1 pcm2: at nid 27 and 25 on hdaa1 pcm3: at nid 30 on hdaa1 pcm4: at nid 17 on hdaa1 WARNING: WITNESS option enabled, expect reduced performance. ugen7.1: at usbus7 ugen6.1: at usbus6 uhub0 on usbus7 uhub1 on usbus6 uhub0: on usbus7 uhub1: on usbus6 ugen4.1: at usbus4 ugen5.1: <0x1b21 XHCI root HUB> at usbus5 uhub2 on usbus4 uhub3 on usbus5 uhub3: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus5 uhub2: on usbus4 ugen2.1: at usbus2 ugen3.1: at usbus3 uhub4 on usbus2 uhub5 on usbus3 uhub5: on usbus3 uhub4: on usbus2 ugen0.1: at usbus0 ugen1.1: at usbus1 uhub6 on usbus0 uhub6: on usbus0 uhub7 on usbus1 uhub7: on usbus1 Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]... Root mount waiting for: CAM usbus0ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-3 ATA SATA 3.x device ada0: Serial Number 20442B2AE044 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 238475MB (488397168 512 byte sectors) usbus1 usbus2 usbus3 usbus4 usbus5 usbus6 usbus7 uhub2: 2 ports with 2 removable, self powered uhub1: 4 ports with 4 removable, self powered uhub4: 5 ports with 5 removable, self powered uhub6: 5 ports with 5 removable, self powered uhub3: 4 ports with 4 removable, self powered ugen5.2: at usbus5 uhub8 on uhub3 uhub8: on usbus5 Root mount waiting for: usbus1 usbus3 usbus5 usbus7 uhub0: 4 ports with 4 removable, self powered uhub8: 4 ports with 4 removable, self powered uhub5: 5 ports with 5 removable, self powered uhub7: 5 ports with 5 removable, self powered ugen7.2: at usbus7 umass0 on uhub0 umass0: on usbus7 umass0: SCSI over Bulk-Only; quirks = 0x4001 umass0:6:0: Attached to scbus6 Root mount waiting for: usbus5 CAM panic: malloc(M_WAITOK) with sleeping prohibited cpuid = 0 time = 4 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0081dcf5f0 vpanic() at vpanic+0x181/frame 0xfffffe0081dcf640 panic() at panic+0x43/frame 0xfffffe0081dcf6a0 malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe0081dcf6c0 malloc() at malloc+0x34/frame 0xfffffe0081dcf720 disk_alloc() at disk_alloc+0x1c/frame 0xfffffe0081dcf740 daregister() at daregister+0x3f4/frame 0xfffffe0081dcf9c0 cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xfffffe0081dcfa90 daasync() at daasync+0x2c2/frame 0xfffffe0081dcfb00 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xfffffe0081dcfb50 xpt_async_process() at xpt_async_process+0x334/frame 0xfffffe0081dcfc60 xpt_done_process() at xpt_done_process+0x3a3/frame 0xfffffe0081dcfca0 xpt_done_td() at xpt_done_td+0xf5/frame 0xfffffe0081dcfcf0 fork_exit() at fork_exit+0x80/frame 0xfffffe0081dcfd30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0081dcfd30 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- KDB: enter: panic [ thread pid 6 tid 100043 ] Stopped at kdb_enter+0x37: movq $0,0x128bbde(%rip) db> bt Tracing pid 6 tid 100043 td 0xfffffe0010b40700 kdb_enter() at kdb_enter+0x37/frame 0xfffffe0081dcf5f0 vpanic() at vpanic+0x1b2/frame 0xfffffe0081dcf640 panic() at panic+0x43/frame 0xfffffe0081dcf6a0 malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe0081dcf6c0 malloc() at malloc+0x34/frame 0xfffffe0081dcf720 disk_alloc() at disk_alloc+0x1c/frame 0xfffffe0081dcf740 daregister() at daregister+0x3f4/frame 0xfffffe0081dcf9c0 cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xfffffe0081dcfa90 daasync() at daasync+0x2c2/frame 0xfffffe0081dcfb00 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xfffffe0081dcfb50 xpt_async_process() at xpt_async_process+0x334/frame 0xfffffe0081dcfc60 xpt_done_process() at xpt_done_process+0x3a3/frame 0xfffffe0081dcfca0 xpt_done_td() at xpt_done_td+0xf5/frame 0xfffffe0081dcfcf0 fork_exit() at fork_exit+0x80/frame 0xfffffe0081dcfd30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0081dcfd30 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- db>