From owner-freebsd-current@freebsd.org Fri Mar 12 04:08:27 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 DC65656D2AC for ; Fri, 12 Mar 2021 04:08:27 +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 4DxXNq19kmz4mH1 for ; Fri, 12 Mar 2021 04:08:26 +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 4DxXNn3Y2QzDy3L for ; Thu, 11 Mar 2021 20:08:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1615522105; bh=2VaRGSFiJJsP36roS48eHL9Iif/VwlpWUuq85gYN/l8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YRuhEWPj6B2mO9C3Cs2wbsnsaUv1MB0HLHyvRvsmTSJtC1EbK1WdZGYDr13yCb3v0 PPjRd+a3LVmYo4qo+5G5TOfOAYAUy8tCq78NpBhV1dlIbcuQL/mhDt+043/IxoHuiw /4XcUfL9CpBGTJA37vufI13u5tGKRJS0kP/8nCqc= X-Riseup-User-ID: 5A90DFA3CC4289FAC023FBDC098A6E4629257D99DD1292EE2D8F896260B297C9 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4DxXNn2Mp7z5vNM; Thu, 11 Mar 2021 20:08:25 -0800 (PST) MIME-Version: 1.0 Date: Thu, 11 Mar 2021 20:08:25 -0800 From: Alastair Hogge To: Alastair Hogge Cc: freebsd-current@freebsd.org Subject: Re: Asus E45M1-M PRO (panic: malloc(M_WAITOK) with sleeping prohibited) In-Reply-To: References: <3db68a3f1944fa9e099796ff45f1b1a2@riseup.net> Message-ID: <75c4ededf209275342c62b1c339bf809@riseup.net> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DxXNq19kmz4mH1 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=YRuhEWPj; 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)[]; TO_DN_SOME(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[198.252.153.129:from]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[riseup.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; 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)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; SPAMHAUS_ZRD(0.00)[198.252.153.129:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; 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 04:08:27 -0000 On 2021-03-12 12:04, David Wolfskill wrote: > On Thu, Mar 11, 2021 at 07:57:36PM -0800, Alastair Hogge wrote: >> Turns out, EFI boot stopped working. The following boots but fails with >> ... >> 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 --- >> .... > > You may find the change that's in https://reviews.freebsd.org/D29210 > helps -- the trace looks similar to what I saw, and it has worked for > me. > > Note that I only saw the panic while running a kernel with INVARIANTS. Fantastic! Thanks for those pointers, I will try imp's fix after the current build finishes. To health, Alastair