From owner-freebsd-current@freebsd.org Tue Aug 18 12:44:28 2020 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 E191A3BAC99 for ; Tue, 18 Aug 2020 12:44:28 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BW9bJ5684z4100 for ; Tue, 18 Aug 2020 12:44:28 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.nyi.freebsd.org (Postfix) id AD21C3BAC97; Tue, 18 Aug 2020 12:44:28 +0000 (UTC) Delivered-To: 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 ACED43BAC96 for ; Tue, 18 Aug 2020 12:44:28 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BW9bH2YfFz419b for ; Tue, 18 Aug 2020 12:44:27 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.16.1/8.15.2) with ESMTP id 07ICiJ7U026011 for ; Tue, 18 Aug 2020 12:44:19 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.16.1/8.16.1/Submit) id 07ICiJxS026010 for current@freebsd.org; Tue, 18 Aug 2020 05:44:19 -0700 (PDT) (envelope-from david) Date: Tue, 18 Aug 2020 05:44:19 -0700 From: David Wolfskill To: current@freebsd.org Subject: "panic: malloc(M_WAITOK) in non-sleepable context" after r364296 -> r364341 Message-ID: <20200818124419.GO1394@albert.catwhisker.org> Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mgiPvHqStUXOBTSF" Content-Disposition: inline X-Rspamd-Queue-Id: 4BW9bH2YfFz419b X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.56 / 15.00]; HAS_REPLYTO(0.00)[current@freebsd.org]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.04)[-0.042]; DMARC_NA(0.00)[catwhisker.org]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; MAILMAN_DEST(0.00)[current]; REPLYTO_EQ_TO_ADDR(5.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Tue, 18 Aug 2020 12:44:28 -0000 --mgiPvHqStUXOBTSF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Just did a src update from r364296 -> r364341 on amd64 on my bild machine (laptop is still working -- it built firefox earlier, which takes some time). On initial reboot, the build machine panicked: umass0: SCSI over Bulk-Only; quirks =3D 0x4000 umass0:6:0: Attached to scbus6 (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? panic: malloc(M_WAITOK) in non-sleepable context cpuid =3D 1 time =3D 20 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff8218d= 440 vpanic() at vpanic+0x182/frame 0xffffffff8218d490 panic() at panic+0x43/frame 0xffffffff8218d4f0 malloc() at malloc+0x20c/frame 0xffffffff8218d540 devfs_alloc() at devfs_alloc+0x28/frame 0xffffffff8218d570 make_dev_sv() at make_dev_sv+0x97/frame 0xffffffff8218d600 make_dev_s() at make_dev_s+0x3b/frame 0xffffffff8218d660 passregister() at passregister+0x3e7/frame 0xffffffff8218d8b0 cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xffffffff8218d980 passasync() at passasync+0x5c/frame 0xffffffff8218d9c0 xpt_async_process_dev() at xpt_async_process_dev+0x152/frame 0xffffffff8218= da10 xpt_async_process() at xpt_async_process+0x334/frame 0xffffffff8218db20 xpt_done_process() at xpt_done_process+0x3a3/frame 0xffffffff8218db60 xpt_done_td() at xpt_done_td+0xf5/frame 0xffffffff8218dbb0 fork_exit() at fork_exit+0x80/frame 0xffffffff8218dbf0 fork_trampoline() at fork_trampoline+0xe/frame 0xffffffff8218dbf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic [ thread pid 16 tid 100068 ] Stopped at kdb_enter+0x37: movq $0,0x10b70f6(%rip) db>=20 So -- it's at the debugger prompt; given sufficient hints, I'm happy to poke at it & report back. Yesterday's (r364296) verbose dmesg.boot is at http://www.catwhisker.org/~david/FreeBSD/history/freebeast.13_dmesg.txt (in case that's useful). Peace, david --=20 David H. Wolfskill david@catwhisker.org Donald Trump is either ignorant of how to govern or is refusing to do so. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --mgiPvHqStUXOBTSF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl87zSNfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 PcmgAwgA1kQvl/vuEcKNunvqutvNPv2s/gNPUm7cOoDFkKcJPBhfVnhteBW2IZaz D/8PIWkTdivYxg7OErBJKQMdrlt69VdzzT+5XkogRFg+39tlgu2/+6xdjOSLsXLX 3NgZoeZLKCFGIfZyLY53PM61f7UFUwbLUSlYZEYeWekvVAi2v5VYIxiM6TUnjVr0 S1CBFDH99AKFu5TscZXiJMGRH4flCla+XoXiHtuLLJyU51enj2dUvFgomIPZNYkB ayKuKLo3A4XzhHeQoVeCDl5Eac2+u1ZmY/nurDnrnwtSJVCJrKo/PzQjzFlaYPD8 dhL0YemksGPhTnAeF75UZd2zSnJTBw== =7Frk -----END PGP SIGNATURE----- --mgiPvHqStUXOBTSF--