From owner-freebsd-current@freebsd.org Fri May 10 15:37:07 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 65BEE15A59E2 for ; Fri, 10 May 2019 15:37:07 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-it1-x141.google.com (mail-it1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (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 DE90375BC1 for ; Fri, 10 May 2019 15:37:06 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-it1-x141.google.com with SMTP id i10so6163662ite.0 for ; Fri, 10 May 2019 08:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vFD2m6EBxEXAAkz/Xz4tA3ufJh/aB8aqVg9yx6xc9zM=; b=tWTFBbQdSY0vD8jG51IIWv08pmog4RMCp9iXKgXm8rsKd18OVZhMT4hHxoItmfbo2G YFADOz0aALeDCWap8zjpBQnWydfhu6ivZTvdfBZwH6wLzP34aOtyOPxY0BgsQFRbAuLg os3rqXNp0rqMqImNn8Rnm6eFMnzMUinFTfo5rp8qnejIXumcDwKwND+9CO3kBO9icetV KAHpvnlkdHcWFJ10XSDyjcXlXXUfoCwg1pxMyIsCSex7XWjzw1qrHSwWL2NQJyInBw7h AS2yDp7Fo8eXsMxLfprwOI8/uCgdOZav+G2JVXi3jBEaDvRkO9DQBVi1tT0N5Cu1wqvn o/ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=vFD2m6EBxEXAAkz/Xz4tA3ufJh/aB8aqVg9yx6xc9zM=; b=jfdirZkWWz66ZWwkowSpST5nALujCctBNdZhQ+GyLOcrLhz1nHvMp7nH/eJQcPF5WM NGqKYoeKuQcW6pWog/urSdJmm8bmuczGZYtCuoYBvaPOdvkSYS4GwtqX4LOoqll3jwU8 4pARmXhIUmWDv2ptXeVvJbVschBWnQIqbjCIa/PaBqd8du6bozSTbi4TH8nA4V/CMtgO xEaLtjCVbAeEzGILWbFRLM333PZgL4IwK7uOzliiYxITywnurMPh/WNcJDXXrMnTHYXl gENzzaXNthKhEtZMQqdqvKegPt814lYzjf71eXyhQRxKnKh8J1/MiRM9p5I1eaQAep5N x5eA== X-Gm-Message-State: APjAAAUz4nrbMboNkg/eu8wtS5bQWki3zpLdKJGpY+xnyFWMktC+Lw1G bkqgbHa9mywlm26hbukWmiq0MXy4 X-Google-Smtp-Source: APXvYqxKRBvV/WzGZeYLYdXr7rNWLXEFjYN92gD2hCofuthE4EegJvgd7k93ac17PdQPJIKuXu6Tug== X-Received: by 2002:a02:7f81:: with SMTP id r123mr8752912jac.85.1557502625817; Fri, 10 May 2019 08:37:05 -0700 (PDT) Received: from raichu (toroon0560w-lp140-01-69-159-36-31.dsl.bell.ca. [69.159.36.31]) by smtp.gmail.com with ESMTPSA id k76sm2074354ita.6.2019.05.10.08.37.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 08:37:04 -0700 (PDT) Sender: Mark Johnston Date: Fri, 10 May 2019 11:37:02 -0400 From: Mark Johnston To: Trond =?iso-8859-1?Q?Endrest=F8l?= Cc: freebsd-current@freebsd.org Subject: Re: Panic in fbt_provide_module_function() on head amd64 r347403 Message-ID: <20190510153702.GC48230@raichu> References: <3040f1dad5052ef2074a8370bc0af078@lerctr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: DE90375BC1 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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 15:37:07 -0000 On Fri, May 10, 2019 at 08:07:46AM +0200, Trond Endrestøl wrote: > 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. The problem should be fixed by head r347423.