From owner-freebsd-current@freebsd.org Fri Mar 12 07:20:26 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 6573E5709A0 for ; Fri, 12 Mar 2021 07:20:26 +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 4DxcfK2s23z4vWJ for ; Fri, 12 Mar 2021 07:20:25 +0000 (UTC) (envelope-from agh@riseup.net) Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 4Dxcf73l0jzDySX for ; Thu, 11 Mar 2021 23:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1615533623; bh=6v2MrN0hFKroKXznjhDvbGjlX3ApPlA4YSVOUZRhrCI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ccNrVCGF3ZcuA7GYkNDYP70Lcym2iRYOcpp8eb6TUBRBugx6SvtDU/eBx1rtT/77X aszWBmNzxCKslmy9RrRZ0D/hf/HB+SMSjLXao92Hc8pc+5rN9gwmQi5HJrBtEgPivR yGfb/1h5jkUO9YKo+GCJbtudKg/2BHKtr4qfuYAQ= X-Riseup-User-ID: F88B8888D77E3ED58434CCA4CDF7E7EAD60D92B28B5722A114C90DDAC955CA8B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4Dxcf72Z34z1yQs; Thu, 11 Mar 2021 23:20:15 -0800 (PST) MIME-Version: 1.0 Date: Thu, 11 Mar 2021 23:20:15 -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: <9ec378ec3287b7c8978fa5c27579af16@riseup.net> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DxcfK2s23z4vWJ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=ccNrVCGF; 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.996]; 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]; SPAMHAUS_ZRD(0.00)[198.252.153.129:from:127.0.2.255]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; 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 07:20:26 -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. Patch works; tested with INVARIANTS only. Thanks all. To good health, Alastair