From owner-freebsd-current@freebsd.org Wed Sep 13 14:20:46 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2707AE23564 for ; Wed, 13 Sep 2017 14:20:46 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 042CB665C9 for ; Wed, 13 Sep 2017 14:20:46 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 00B1AE23561; Wed, 13 Sep 2017 14:20:46 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00562E23560 for ; Wed, 13 Sep 2017 14:20:46 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-yw0-f177.google.com (mail-yw0-f177.google.com [209.85.161.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA36A665C6; Wed, 13 Sep 2017 14:20:45 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-yw0-f177.google.com with SMTP id v72so859966ywa.3; Wed, 13 Sep 2017 07:20:45 -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:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=Ir33ZYx8OaSZCKR+Lo9SOM9Bi+G5dHtzOnnI+KG7C1Y=; b=XVAe3eZw+cbOE0ejpQWOAxXNAT4/8cHn+2CFx1adUAnr3pGC1qiOqZBhe2/hKJZmte UsKTkDYqG66/W/2ljtEDOnQyAnlnwfSlZ4sYCAT42elbd/clirLsu2PmgsVyWoHhZB/X /VjEI5XeAiJi1wNwl/4USdC/LmhmRUZp2y2lNPr5oIa9UQLcpxuwqYD/y9y6cslFrTA1 4oX/nQxqkbZFNI5m4YRh+nEXGVdYeObQDZk5qTwPWP5sB9Q/tD1R6o2Q45tFZkM0kG4b AGVa9GplHujpunOhLbVx1b6Vx1Uwhy201ei/JAEOymvNAEL29ARDZqg6nv8t87vM9EWk LuOQ== X-Gm-Message-State: AHPjjUiRqFC9+xMcaRF+2n+NuGrf+tLwlwmSXfwFyT/1P5hBlmcbOYef Y+w8wVS84LGCu3heLmI= X-Received: by 10.37.162.144 with SMTP id c16mr15053055ybi.244.1505312438545; Wed, 13 Sep 2017 07:20:38 -0700 (PDT) Received: from mail-it0-f54.google.com (mail-it0-f54.google.com. [209.85.214.54]) by smtp.gmail.com with ESMTPSA id t66sm4693343ywe.79.2017.09.13.07.20.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 07:20:38 -0700 (PDT) Received: by mail-it0-f54.google.com with SMTP id 6so2681885itl.1; Wed, 13 Sep 2017 07:20:37 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCaP0PeqYvgqEsZ2mtGiKZJ0oz/x1Uyz6YXbtmZmTU/ohpa5tqYY13sUbyyQ/HK6UIWDGYEUDHYgV1Ncm9QhUo= X-Received: by 10.36.84.81 with SMTP id t78mr4543007ita.117.1505312437154; Wed, 13 Sep 2017 07:20:37 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.81.131 with HTTP; Wed, 13 Sep 2017 07:20:36 -0700 (PDT) In-Reply-To: <20170913131042.GZ1351@albert.catwhisker.org> References: <20170913131042.GZ1351@albert.catwhisker.org> From: Conrad Meyer Date: Wed, 13 Sep 2017 07:20:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Panic: @r323525: iflib To: David Wolfskill , current Cc: Stephen Hurd Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 13 Sep 2017 14:20:46 -0000 Well, we know it's due to r323516, but unfortunately can't have you bisect from there because it was committed as a giant lump. If it can't be fixed quickly, maybe it should be reverted? Best, Conrad On Wed, Sep 13, 2017 at 6:10 AM, David Wolfskill wrote: > My build machine didn't have the problem -- unfortunately (as I have a > serial console on it). The laptop did.... The panic occurs immediately > after probing the NICs (so the good news is that it didn't have a chance > yet to mount any filesystems; the bad news is that there's no dump > available). (In transcribing the backtrace, I realized that the laptop > has an em(4) device; the build machine does not. And iflib appears to > be implicated.) > > I used my phone to grab screeshots of the backtrace... and the program I > run on the phone to act as an SSH server so I can get the photos from it > has suddenly become completely confused as to what the IP address of the > phone is on the local network (using an unreachable 10/8 address; at > this point, I won't waste my time trying to figure out how THAT broke). > > I did try clearing /usr/obj/usr/src/sys/CANARY/* and rebuilding the > kernel, but the symptom persists. (I am using "WITH_META_MODE=yes".) > > Previous successful build was: > FreeBSD g1-252.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #398 r323483M/323489:1200044: Tue Sep 12 04:31:08 PDT 2017 root@g1-252.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY amd64 > > The usual historical information, including a verbose-boot dmesg.boot > from the above-cited build, may be found at > . > > I will try hand-transcribing some of the lock & backtrace info: > > ... > em0: allocated for 1 rx_queues > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex taskqgroup (taskqgroup) r = 0 (0xfffffe07be2e4800) locked @ /usr/src/sys/kern/subr_gtaskqueue.c:803 > stack backtrace: [which I am abbreviating at this point -- dhw] > #0 ... at witness_debugger+0x73 > #1 ... at witness_warn+0x43f > #2 ... at trap_pfault+0x53 > #3 ... at trap+0x2c5 > #4 ... at calltrap+0x8 > #5 ... at iflib_device_register+0x2a61 > #6 ... at iflib_device_attach+0xb7 > #7 ... at device_attach+0x3ee > #8 ... at bus_generic_attach+0x5a > #9 ... at pci_attach+0xd5 > #10 ... at device_attach+0x3ee > #11 ... at bus_generic_attach+0x5a > #12 ... at acpi_pcib_acpi_attach+0x3bc > #13 ... at device_attach+0x3ee > #14 ... at bus_generic_attach+0x5a > #15 ... at acpi_attach+0xe85 > #16 ... at device_attach+0x3ee > #17 ... at bus_generic_attach+0x5a > > Fatal trap 12: page fault while in kernel mode > cpuid = 2; apic id = 02 > fault virtual address = 0xffffffff8b530c20 > fault code = supervisor write data, page not present > ... > [ thread pid 0 tid 100000 ] > Stopped at 0xffffffff80a743b0 = taskqgroup_attach+0x230: orq %rax,-0x 58(%rbp,%xrx,8) > > I can provide more specific excerpts, but I need to focus on some > other activities for a while. > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > http://www.cbc.ca/news/opinion/donald-trump-playbook-1.4265374 > > See http://www.catwhisker.org/~david/publickey.gpg for my public key.