From owner-freebsd-current@freebsd.org Tue Mar 9 15:33:32 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 B3CD15564D8 for ; Tue, 9 Mar 2021 15:33:32 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 4Dvzkg4JSGz4ZQF for ; Tue, 9 Mar 2021 15:33:31 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Date: Tue, 9 Mar 2021 16:33:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1615304009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=88Kplvk/VPD5QsAycgs9AGFrFpwyYvnQSCRrItDnRgU=; b=cwmYGebAiqDB5DZqkDRNPax2g1xxFivWcr911z6R973HShhQ/Udg8hkA0VvwTl2s/niFMR Jx5J0c788yw1Df+oEoOQqzq/aXWb0O+qyCUxSip2n6I4vOMqGUrIIJ3nNCDBkcBp7J2Yey c2NrvGdlOJZ86/m5QrjJmiZ98mQ/lYf9u4xHckch/4avuLODagBbELPCI0i5qzJfh+8Qzn E7Q6ehtEk4uY2cnTnXW+JCG2DSqa70xzKyKRoxkQ/gJ+H/O4zQNQ5GurKX/aXsUWU+cKCB zBU7t3QjNZJMt8RrEq28AfTgIkJKQOF7IWGRULglt2YQkSG2BTObeKmMVhOshg== From: Ronald Klop To: Mitidzi Racerex Cc: freebsd-current@freebsd.org Message-ID: <1617658290.2.1615304009453@localhost> In-Reply-To: References: Subject: Re: RC1 builds MIME-Version: 1.0 X-Mailer: Realworks (550.544.60dfe2d0fb4) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4Dvzkg4JSGz4ZQF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=cwmYGebA; dmarc=pass (policy=none) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 194.109.157.24 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-3.49 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[194.109.157.24:from]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_SHORT(-0.99)[-0.986]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[194.109.157.24:from]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MAILMAN_DEST(0.00)[freebsd-current] Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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: Tue, 09 Mar 2021 15:33:32 -0000 See https://lists.freebsd.org/pipermail/freebsd-stable/2021-March/093272.html Regards, Ronald. Van: Mitidzi Racerex Datum: maandag, 8 maart 2021 11:33 Aan: freebsd-current@freebsd.org Onderwerp: RC1 builds > > Please give a link to RC1 builds. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > From owner-freebsd-current@freebsd.org Tue Mar 9 20:53:50 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 73F72570262 for ; Tue, 9 Mar 2021 20:53:50 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dw6rG0W97z3Ds0 for ; Tue, 9 Mar 2021 20:53:50 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0FBCC5705B4; Tue, 9 Mar 2021 20:53:50 +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 0F83A5702FB for ; Tue, 9 Mar 2021 20:53:50 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 4Dw6rF6wPJz3DpW for ; Tue, 9 Mar 2021 20:53:49 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72e.google.com with SMTP id z128so14535714qkc.12 for ; Tue, 09 Mar 2021 12:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Da7SGM7X4M/aM1ebKbexNa9txbDMk8TEgp4djoil0XQ=; b=dL6yb7QJM3m0xpNX1p2e+wHxV9FipRp8RuwuOlH1TRQQ8smlzz389tIsmvLSPsJbCQ 2q3wuLLiCBYHNh3aA2OmnpiisufrWKD+wwkmeGl1HLxPofznBPqk0/3/h2QRutJUadUV zgOZnT+HeY2W6OKNOj+phHdCj72krC8tbrxjCr/1p8Ro0OJC4MpLGurrX57tFkyyTtMb T6iZDX6cbnPWw/uk1kpYtj4Xrt3/EydzLC4h6ynuGKnTOLd3ljfTQKLn0mP6+/2S4WF0 ypvQ8qAjDd+GpzaEJKkJO00VQ6YB+bX5ud/OkTGKes9OU2987nt22t3mXf/ROG39wdP5 EL+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Da7SGM7X4M/aM1ebKbexNa9txbDMk8TEgp4djoil0XQ=; b=PtuYjTSEuUT5/UFitbIPupLy/AdWUFqUcYZzFTMxGP5Gxn4KWYBtiwCEaaLGYN0dvg Og+dIjjbRNj2DjJ6PCJpoPL6b/VPloWrNTB+VUWXiRX5o/bfbH56721ryuL+xfqHjl1y LGBHclYBAAWMfYf23/OgawsKjVuWwTGIT9zCfQl4zHYpDV6X5w7/5mWvJ0+ZLwEa+Xls yLw5Wdem+4dsD5mkqVl6l7VvJ+pOMfOVZM7frh/7WUfVmJlzMNCb+6t69J3lgemfVtyk UfGwkWUyCUMvqkLn3Usv+ZlbOawg17gGKK+vXmUyUAGtUZFybYdv4wRan10ksFFx54lj u/NQ== X-Gm-Message-State: AOAM530v+cIX9S2DxLqzjIKnuM74l7J1zWv5NTTHQXclbBrjg3UCcGXJ ahsS3EYmrkfmPh6yYSjhNtn51hT7evWLQN750Ycj0m2oNAamhwMs X-Google-Smtp-Source: ABdhPJyGo214IMMhFYwjzWtfULVjtkEuebTiPg87rYvpcT+YjFA3ZES9Pk7s1FZ/pjnVfhMisQ7oFb9NCcSB3XhYc+k= X-Received: by 2002:a37:a085:: with SMTP id j127mr26310801qke.206.1615323228563; Tue, 09 Mar 2021 12:53:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 9 Mar 2021 13:53:37 -0700 Message-ID: Subject: Re: "panic: malloc(M_WAITOK) with sleeping prohibited" at main-n245363-b3dac3913dc9 To: FreeBSD Current X-Rspamd-Queue-Id: 4Dw6rF6wPJz3DpW X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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: Tue, 09 Mar 2021 20:53:50 -0000 On Tue, Mar 9, 2021 at 5:09 AM David Wolfskill wrote: > Just did a source-based update from: > > FreeBSD 14.0-CURRENT #1205 main-n245338-221622ec0c8e: Mon Mar 8 03:49:58 > PST 2021 root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC > amd64 1400005 1400005 > > to: > > FreeBSD 14.0-CURRENT #1206 main-n245363-b3dac3913dc9: Tue Mar 9 03:55:00 > PST 2021 > root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC > amd64 > > [latter scraped from the console] > > and: > > ... > pass6 at umass-sim0 bus 0 scbus6 target 0 lun 0 > pass6: uhub3: 6 ports with 6 removable, self powered > Removable Direct Access SCSI device > pass6: Serial Number 20100818841300000 > pass6: 40.000MB/s transfersuhub4: 8 ports with 8 removable, self powered > > panic: malloc(M_WAITOK) with sleeping prohibited > cpuid = 0 > time = 22 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe00e157a4b0 > vpanic() at vpanic+0x181/frame 0xfffffe00e157a500 > panic() at panic+0x43/frame 0xfffffe00e157a560 > malloc_dbg() at malloc_dbg+0xd4/frame 0xfffffe00e157a580 > malloc() at malloc+0x34/frame 0xfffffe00e157a5e0 > disk_alloc() at disk_alloc+0x1c/frame 0xfffffe00e157a600 > daregister() at daregister+0x3f4/frame 0xfffffe00e157a880 > cam_periph_alloc() at cam_periph_alloc+0x57b/frame 0xfffffe00e157a950 > daasync() at daasync+0x2c2/frame 0xfffffe00e157a9c0 > xpt_async_process_dev() at xpt_async_process_dev+0x152/frame > 0xfffffe00e157aa10 > xpt_async_process() at xpt_async_process+0x334/frame 0xfffffe00e157ab20 > xpt_done_process() at xpt_done_process+0x3a3/frame 0xfffffe00e157ab60 > xpt_done_td() at xpt_done_td+0xf5/frame 0xfffffe00e157abb0 > fork_exit() at fork_exit+0x80/frame 0xfffffe00e157abf0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00e157abf0 > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > KDB: enter: panic > [ thread pid 17 tid 100095 ] > Stopped at kdb_enter+0x37: movq $0,0x128b97e(%rip) > db> > The following reviews should fix this. It introduces a no-wait variant for disk_alloc(), provides a way to free allocated, but not created, disks and changes CAM to use the new routines and take some care for not leaking when an allocation fails. https://reviews.freebsd.org/D29161 https://reviews.freebsd.org/D29162 https://reviews.freebsd.org/D29163 Maybe you can try it? I got similar tracebacks when I booted w/o these changes, but not a peep with them... Warner > > I can afford to leave it that way for a bit, in case anyone has > suggestions for poking at it to get more information. I expect to > be attempting the same upgrade on a couple of laptops -- after they > finish building firefox. > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > It is supremely disingenuous to claim a lack of jurisdiction, then > proceed to participate in a decision on the same matter. > > See https://www.catwhisker.org/~david/publickey.gpg for my public key. >