From owner-freebsd-current@freebsd.org Fri May 10 06:07:57 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 498AD159895F for ; Fri, 10 May 2019 06:07:57 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (enterprise.ximalas.info [IPv6:2001:700:1100:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ximalas.info", Issuer "Hostmaster ximalas.info" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1BF1E9177B for ; Fri, 10 May 2019 06:07:55 +0000 (UTC) (envelope-from trond.endrestol@ximalas.info) Received: from enterprise.ximalas.info (Ximalas@localhost [127.0.0.1]) by enterprise.ximalas.info (8.15.2/8.15.2) with ESMTPS id x4A67kpt065433 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Fri, 10 May 2019 08:07:46 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ximalas.info; s=default; t=1557468466; bh=CnT2ALE6IWNpvzTm+h6+sb6GuQLCO5yDx6bYifzqpco=; h=Date:From:To:Subject:In-Reply-To:References; b=f4N6DTcH1VbDJhULICx6zwaWpJ5bGhec0v0N6h9ydh0jdbD99CllzUDeOhuJOLs4D 9A86sZVh53IZJ3/+UuMt3BNpPHJT5xAFhNIN+WMKZMUgcibnHO1kmOhqZQiLaxozwN irDoRU+Ufseg9lutwjqpvZeDezFEpii3RmlSmIpBw6fvnwJX+kUd/RW3aeeoe1c/3M PraoI9ElDcFbPHaIU2y1yahqanWqHuHmDlQNUOhZPg+6cM/NUSKGZdaopDlOHs33QQ GvrpEW7LWfELAvUw9HsTp/iypYy9Jh/pRuR83g3YHNF9l1gWMRx64mDIDRQGRzi7cT F7Pg+PQt5rKpA== Received: from localhost (trond@localhost) by enterprise.ximalas.info (8.15.2/8.15.2/Submit) with ESMTP id x4A67khm065429 for ; Fri, 10 May 2019 08:07:46 +0200 (CEST) (envelope-from trond.endrestol@ximalas.info) X-Authentication-Warning: enterprise.ximalas.info: trond owned process doing -bs Date: Fri, 10 May 2019 08:07:46 +0200 (CEST) From: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Sender: Trond.Endrestol@ximalas.info To: freebsd-current@freebsd.org Subject: Re: Panic in fbt_provide_module_function() on head amd64 r347403 In-Reply-To: <3040f1dad5052ef2074a8370bc0af078@lerctr.org> Message-ID: References: <3040f1dad5052ef2074a8370bc0af078@lerctr.org> User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) OpenPGP: url=http://ximalas.info/about/tronds-openpgp-public-key MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on enterprise.ximalas.info Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 10 May 2019 06:07:57 -0000 On Thu, 9 May 2019 17:23-0500, Larry Rosenman wrote: > On 05/09/2019 5:19 pm, Trond Endrestøl wrote: > > Host is Windows 7 x64 SP1. > > CPU is Core i7 960. > > Hypervisor is VirtualBox 6.0.6. > > VM is using UEFI. > > Kernel config is > > https://ximalas.info/~trond/create-zfs/canmount/VBOXGUEST-amd64-head > > > > Crash happens early during boot, right after launching the APs. > > > > fault virtual address = 0x0 > > [...] > > KDB backtrace: > > db_trace_self_wrapper() at > > vpanic() at > > panic() at > > trap_fatal() at > > trap_pfault() at > > trap() at > > calltrap() at > > -- trap 0xc, rip = 0xffffffff8196d63a, rsp = 0xffffffff8198d730, rbp = > > 0xffffffff8198d790 --- > > fbt_provide_module_function() at 0xffffffff8196d63a = > > fbt_provide_module_function+0x7a/frame 0xffffffff8198d790 > > link_elf_each_function_nameval() at 0xffffffff80822ae5 = > > link_elf_each_function_nameval+0x115/frame 0xffffffff8198d7e0 > > fbt_provide_module() at 0xffffffff8196c33e = > > fbt_provide_module+0xde/frame 0xffffffff8198dc10 > > fbt_linker_file_cb() at 0xffffffff8196c242 = > > fbt_linker_file_cb+0x12/frame 0xffffffff8198dc20 > > linker_file_foreach() at 0xffffffff807c47b7 = > > linker_file_foreach+0x67/frame 0xffffffff8198dc60 > > mi_startup() at 0xffffffff80786de6 = mi_startup+0x216/frame > > 0xffffffff8198dcb0 > > btext() at 0xffffffff8030da2c = btext+0x2c > > Uptime: 1s > > > > Previous BE is r346969 and works flawlessly. > > No dumpdev is enabled to capture the details this early during boot. > > Suggestions are welcome. > > There is a patch: > From: markj@FreeBSD.org (on my Crash loading dtraceall thread): > > > I see, my theory above is not the real problem here. The resolver for > x86_rng_store() may return NULL, which we do not expect. Can you show > the CPU info and features lines from the dmesg to confirm? CPU: Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz (3207.36-MHz K8-class CPU) Origin="GenuineIntel" Id=0x196a5 Family=0x6 Model=0x1a Stepping=5 Features=0x1783fbff Features=0x180201 AMD Features=0x28100800 AMD Features2=0x1 TSC: P-state invariant I'll try the patch below when I get home. Thanks. > Also see if this patch helps: > > diff --git a/sys/dev/random/ivy.c b/sys/dev/random/ivy.c > index 57f3d0a1d80b..71065d788cf9 100644 > --- a/sys/dev/random/ivy.c > +++ b/sys/dev/random/ivy.c > @@ -97,6 +97,13 @@ x86_rdseed_store(u_long *buf) > return (retry); > } > > +static int > +x86_dead_store(u_long *buf __unused) > +{ > + > + panic("missing hardware PRNG support"); > +} > + > DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), static) > { > has_rdrand = (cpu_feature2 & CPUID2_RDRAND); > @@ -107,7 +114,7 @@ DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), > static) > else if (has_rdrand) > return (x86_rdrand_store); > else > - return (NULL); > + return (x86_dead_store); > } > > /* It is required that buf length is a multiple of sizeof(u_long). */ -- Trond. From owner-freebsd-current@freebsd.org Fri May 10 01:24:38 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E0571593D34 for ; Fri, 10 May 2019 01:24:38 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CF3178A8DF for ; Fri, 10 May 2019 01:24:37 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: by mailman.ysv.freebsd.org (Postfix) id 8C57B1593D33; Fri, 10 May 2019 01:24:37 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 681681593D32 for ; Fri, 10 May 2019 01:24:37 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 0C04B8A8DE for ; Fri, 10 May 2019 01:24:35 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: by mail-qt1-f174.google.com with SMTP id r3so4791020qtp.10 for ; Thu, 09 May 2019 18:24:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:reply-to:date:message-id :user-agent:mime-version; bh=THpjltCWXGiqHMqp0kC/eLRk+6dI9nJliJb8R+x+2c0=; b=sdwNukPmLzyiVy1V8Z+HhvmmqVtareFt/OgsbBJ4KZP0wjj4Imb7aQ5AzCYsBE5RCj GRasZK+md609o3ZrYq9NBivYH0KtOJGAVnXAALD9lhwcnNpUbhglh4n0VBrK9dLXoG9b //AP7ZYVBTa4a/fuuLaDTP61YvgQp6nmSoDgQaySym5tVzygBFjVZCIY5Jl+ieWP9G5f WkilrSX4s0sIJCzsg8UvKybbAMOrrxKq2IxjOhc/ovNypGRBGWw8Z/i6nXzO21iW9G6t lfFf3sL/DFOtOQhKPw4SsEktvacw0xSTQxrZICkd8pIqMI9BOpgWLYLnr3rsl6mk+IEj a8lw== X-Gm-Message-State: APjAAAUMti+WEFTwEHl1yv0ujVYagj0bfjtmBphax7QBZsSf87YGVfZm W2tj8+5GVnOBJ0yhF9qoVqlnrirJSe0= X-Google-Smtp-Source: APXvYqzHG5mBRgbXLEXIZhe14bB4gao9UXRqD+sUH5AquyQkeyzWeCq02joHqE3+N1EYArwuz+BxoQ== X-Received: by 2002:a0c:d1b4:: with SMTP id e49mr6569204qvh.87.1557451469056; Thu, 09 May 2019 18:24:29 -0700 (PDT) Received: from phe.ftfl.ca.ftfl.ca (drmons0544w-142-167-140-18.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.167.140.18]) by smtp.gmail.com with ESMTPSA id j123sm2089946qkf.23.2019.05.09.18.24.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 18:24:28 -0700 (PDT) From: FreeBSD Core Team Secretary To: current@FreeBSD.org Subject: FreeBSD Core Team Response to Controversial Social Media Posts Reply-To: FreeBSD Core Team Date: Thu, 09 May 2019 22:24:26 -0300 Message-ID: <868svf6r05.fsf@phe.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 0C04B8A8DE X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of jrm@ftfl.ca designates 209.85.160.174 as permitted sender) smtp.mailfrom=jrm@ftfl.ca X-Spamd-Result: default: False [-7.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[core@FreeBSD.org]; RWL_MAILSPIKE_GOOD(0.00)[174.160.85.209.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx2.googlemail.com,alt2.aspmx.l.google.com,aspmx3.googlemail.com]; NEURAL_HAM_SHORT(-0.91)[-0.907,0]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[core-secretary@FreeBSD.org,jrm@ftfl.ca]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+,1:+]; FROM_NEQ_ENVFROM(0.00)[core-secretary@FreeBSD.org,jrm@ftfl.ca]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.42)[ip: (-6.07), ipnet: 209.85.128.0/17(-3.68), asn: 15169(-2.27), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[174.160.85.209.list.dnswl.org : 127.0.5.0]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[] X-Mailman-Approved-At: Fri, 10 May 2019 10:22:49 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 10 May 2019 01:24:38 -0000 --=-=-= Content-Type: text/plain The FreeBSD Core Team is aware of recent controversial statements made on social media by a FreeBSD developer. We, along with the Code of Conduct review committee, are investigating the matter and will decide what action to take. Both the Core Team and the FreeBSD Foundation would like to make it clear that views shared by individuals represent neither the Project nor the Foundation. -- FreeBSD Core Team --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEnwKDb1DTrVq3WsWIDLQD5OlbluwFAlzU0spfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDlG MDI4MzZGNTBEM0FENUFCNzVBQzU4ODBDQjQwM0U0RTk1Qjk2RUMACgkQDLQD5Olb luweZgf/eazsYL+ZW8FehJSW9WxUKeGJIMg+pS/JVSdm/nlSbJxfHGqhjNEwPs+w egIrxpFGofmJaWUCE7kDvdLpZWwQoZjqecG84hcFQFJ7bk60mjf9czdbUmpLpISz 35YBJmWjgMdVKJK+1qd4G/7EgK+T+JQFLOJhhukiaxHc6loGI7/3Ta1KZx9wwPlP flUzkxSVIMbbFvxzfFW+7Vb97YivKwy/Ey12SxpJ7HYQ2snHTjAe0Q1PxUoAHdOV Z/RC5zzEV/4i/JT+x/9OVJnYnrC+/zuTC7p4Qss3yKgaDMFaWEcvWPC7yi7WhbB6 abpRt2Q2gvSNF/BAPT6sCv2fOawacQ== =Yski -----END PGP SIGNATURE----- --=-=-=--