From owner-freebsd-cloud@freebsd.org Fri Jan 12 10:43:40 2018 Return-Path: Delivered-To: freebsd-cloud@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 14E67EA4C80 for ; Fri, 12 Jan 2018 10:43:40 +0000 (UTC) (envelope-from 01000160e9f7b2db-51e1b120-17fb-4d5f-9e59-b0835d3f2bbf-000000@amazonses.com) Received: from a8-52.smtp-out.amazonses.com (a8-52.smtp-out.amazonses.com [54.240.8.52]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF84C82A55 for ; Fri, 12 Jan 2018 10:43:39 +0000 (UTC) (envelope-from 01000160e9f7b2db-51e1b120-17fb-4d5f-9e59-b0835d3f2bbf-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ae7m2yrxjw65l2cqdpjxuucyrvy564tn; d=tarsnap.com; t=1515753812; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=UzDhRL672GFAaBZr9f2/SNYeJ2+9AAa6DUIxQa6FVIk=; b=rtDTIqdRCli8aXrS/h5ASEHJirPrIp8uY5cTsEaxTI339Y/m5MXf3yAgRk7Jq36T i6vJ48OBxOjRLcOwb4aTrCzIUXOkej4ZJG9Ut1o6FyAkQKMgCzDqOxSahEoNW6klHDa UDdplwTF/mYvfZhfiypx0lajIMANrsDhrUpTBrx0= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1515753812; h=Subject:To:References:Cc:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=UzDhRL672GFAaBZr9f2/SNYeJ2+9AAa6DUIxQa6FVIk=; b=ipOGtZQ9/gNr4CDpeBKxTQR3puGIiya20IuuNeGT5++BssaHEFPGp8trB/zWH0LZ dLvezbOKWB31PrWEJBk/klESdPcJDpNWie7p+9QdCoxZ0w/QaCDo04+6jMz9q5/auJJ bzjvrWS5KkP1+urUriHWgcifbATqdXuNXJnlatm0= Subject: Re: Panic with recent -CURRENT kernel in EC2 To: "Bradley T. Hughes" , freebsd-cloud@freebsd.org References: Cc: freebsd-net@freebsd.org, Eric Joyner From: Colin Percival Message-ID: <01000160e9f7b2db-51e1b120-17fb-4d5f-9e59-b0835d3f2bbf-000000@email.amazonses.com> Date: Fri, 12 Jan 2018 10:43:32 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2018.01.12-54.240.8.52 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 10:43:40 -0000 This sounds like it may be related to r327031, which make ixgbe (and thus ixv) use iflib... maybe erj@ will have some ideas here? In case it helps, dhclient sets the MTU, which in the past has caused problems due to drivers resetting -- the fact that sys_ioctl is ending up in iflib_init_locked makes me wonder if this is a similar issue. (If it is, there's a locking problem somewhere...) Colin Percival On 01/12/18 01:23, Bradley T. Hughes wrote: > (Cross-posting to -net, but I'm not subscribed there... yet) > > I was wondering if anyone else has experienced this panic when dhclient tries to get an IP address after booting a recent 12.0-CURRENT kernel? Using the 12.0-CURRENT AMI from early November works, but with the latest snapshot or when using a kernel built from source I get this: > > ixv0: mem 0xf3000000-0xf3003fff,0xf3004000-0xf3007fff at device 3.0 on pci0 > ixv0: using 2048 tx descriptors and 2048 rx descriptors > ixv0: msix_init qsets capped at 1 > ixv0: pxm cpus: 2 queue msgs: 2 admincnt: 1 > ixv0: using 1 rx queues 1 tx queues > ixv0: Using MSIX interrupts with 2 vectors > ixv0: allocated for 1 queues > ixv0: allocated for 1 rx queues > taskqgroup_attach_cpu: setaffinity failed: 22 > taskqgroup_attach_cpu: setaffinity failed: 22 > ixv0: Ethernet address: 0a:ad:68:70:ea:78 > ixv0: netmap queues/slots: TX 1/2048, RX 1/2048 > ... > panic: Assertion if_getdrvflags(ifp) == i failed at /usr/src/sys/net/iflib.c:2199 > cpuid = 3 > time = 1515673176 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe008a8ee600 > vpanic() at vpanic+0x19c/frame 0xfffffe008a8ee680 > kassert_panic() at kassert_panic+0x126/frame 0xfffffe008a8ee6f0 > iflib_init_locked() at iflib_init_locked+0x75f/frame 0xfffffe008a8ee750 > iflib_if_ioctl() at iflib_if_ioctl+0x744/frame 0xfffffe008a8ee7b0 > ifioctl() at ifioctl+0x1903/frame 0xfffffe008a8ee850 > kern_ioctl() at kern_ioctl+0x2c4/frame 0xfffffe008a8ee8b0 > sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe008a8ee980 > amd64_syscall() at amd64_syscall+0x79b/frame 0xfffffe008a8eeab0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe008a8eeab0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80100a4fa, rsp = 0x7fffffffe408, rbp = 0x7fffffffe460 --- > > Thanks in advance :) -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid