Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2019 08:07:46 +0200 (CEST)
From:      =?UTF-8?Q?Trond_Endrest=C3=B8l?= <trond.endrestol@ximalas.info>
To:        freebsd-current@freebsd.org
Subject:   Re: Panic in fbt_provide_module_function() on head amd64 r347403
Message-ID:  <alpine.BSF.2.21.9999.1905100800540.6389@enterprise.ximalas.info>
In-Reply-To: <3040f1dad5052ef2074a8370bc0af078@lerctr.org>
References:  <alpine.BSF.2.21.9999.1905092328550.6389@enterprise.ximalas.info> <3040f1dad5052ef2074a8370bc0af078@lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features=0x180201<SSE3,SSSE3,SSE4.1,SSE4.2>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  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: <owner-freebsd-current@freebsd.org>
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 <freebsd-current@mailman.ysv.freebsd.org>;
 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 <freebsd-current@freebsd.org>; 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 <current@mailman.ysv.freebsd.org>; 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 <current@freebsd.org>; 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 <current@freebsd.org>; 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 <current@freebsd.org>
 (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 <core-secretary@FreeBSD.org>
To: current@FreeBSD.org
Subject: FreeBSD Core Team Response to Controversial Social Media Posts
Reply-To: FreeBSD Core Team <core@FreeBSD.org>
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
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=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-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.9999.1905100800540.6389>