From owner-freebsd-current@freebsd.org Tue Aug 18 12:48:52 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 478223BB01B for ; Tue, 18 Aug 2020 12:48:52 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BW9hM5vfBz41VZ for ; Tue, 18 Aug 2020 12:48:51 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id CAAF63BAF36; Tue, 18 Aug 2020 12:48:51 +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 CA76B3BAFD0 for ; Tue, 18 Aug 2020 12:48:51 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BW9hM3clCz41Xw for ; Tue, 18 Aug 2020 12:48:51 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-wr1-x435.google.com with SMTP id y3so18172719wrl.4 for ; Tue, 18 Aug 2020 05:48:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Y89dL52vpxTOrpJqPTAy94AUqrBl8FXi7nfhp2QS0jg=; b=FkzKIdmN451lc5Oc/I9bTQ+TUiJWJ/WOdLZfvycA2Jpd499W5kIr5MeyC8zoRfqw87 s+8h/fyiCM1Uz0tu3t7Y1CqoYclAqwt9T2zHP9horHqvp2f6Myp5LoE5CS/Kqj8LH7Nn HrN5t4gpQBl46Hav/i7VJtqPLKGE2LGGtXVavYaQ05Lyygp+7oDkwdcKj2okNCGFQxN+ B7D8FiIoQo0ObunE8dOrgMi79Kb86Zu2ZJpZMT9xodhaP0C0wqWLDK7JPcE+SXit3ndI cb0Tap6tN+Mr5Ik8Z6bteeInw+sRnvG1ISZe0OHde4lLtIGBvvH10VY3U1NoRY3r2Emr b6mw== X-Gm-Message-State: AOAM530oXnWjIS4G3EMWjC39tMwshb0NaKDYYnQzjUiYeUO94OISbA2p qBBFT3SqGDzmO+e8cLnZTIiZOTPT8cdU+Cqc3Ambu1fT X-Google-Smtp-Source: ABdhPJx0ZgtmPfSAkj1UhRduAvDiTRJ0GEKPUTrE8fhDe7xdI+bvwpXIxgwJUpPxwqn/WqSEI3ia/m0Pya/B9beqars= X-Received: by 2002:adf:f8d0:: with SMTP id f16mr21408745wrq.66.1597754928839; Tue, 18 Aug 2020 05:48:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5d:614c:0:0:0:0:0 with HTTP; Tue, 18 Aug 2020 05:48:47 -0700 (PDT) In-Reply-To: <20200818124419.GO1394@albert.catwhisker.org> References: <20200818124419.GO1394@albert.catwhisker.org> From: Mateusz Guzik Date: Tue, 18 Aug 2020 14:48:47 +0200 Message-ID: Subject: Re: "panic: malloc(M_WAITOK) in non-sleepable context" after r364296 -> r364341 To: current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4BW9hM3clCz41Xw X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] 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:48:52 -0000 see https://reviews.freebsd.org/D26027 On 8/18/20, David Wolfskill wrote: > 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 = 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 = 1 > time = 20 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xffffffff8218d440 > 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 > 0xffffffff8218da10 > 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 = 0, rsp = 0, rbp = 0 --- > KDB: enter: panic > [ thread pid 16 tid 100068 ] > Stopped at kdb_enter+0x37: movq $0,0x10b70f6(%rip) > db> > > > 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 > -- > 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. > -- Mateusz Guzik