From owner-freebsd-current@freebsd.org Tue May 14 15:10:09 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 29ED01590519 for ; Tue, 14 May 2019 15:10:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-it1-x12d.google.com (mail-it1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 31E1170BDE; Tue, 14 May 2019 15:10:08 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-it1-x12d.google.com with SMTP id g71so5214260ita.5; Tue, 14 May 2019 08:10:08 -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:mime-version :content-disposition:user-agent; bh=lk9AOnRJK/gp1iwlRWUgLcq4R7qBVEMkReYBRS+yqjs=; b=p8iVmBrKkRIj6K61CryDNn3U6Oe9aEXzvH6kCSkdlxCmbdOkdTnRL4X99UEOA5KJRJ vvOqFI+7H6mO4RSDlz//oAmpjpaoHnkz0AmfCUxQEqi7PrkX6+HVZONxoFHw1h53HnYY 4NsQ2jvI7Jaky+noj4p1B6/64zbjhWgnsx75Cx/8iViLGY0AuRAI0urjMvLyVwVs1rFz JVUeNthC4tYSeSySbHs+FNuqzI4fDtNFaaxVRY3kybwHdbxwxE9jqr1CNc/IS6smAwPT Uema+eZSRtgC/3+LzDR1ZsujLTY5CAndoM9T0kMTualWqBt0M/0yL4VC8QhkaTyt4e6z kFqg== 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 :mime-version:content-disposition:user-agent; bh=lk9AOnRJK/gp1iwlRWUgLcq4R7qBVEMkReYBRS+yqjs=; b=P4G6zKvrKSsVF3ZCnUpgDUByAUHIAw0RqwdZmn0T//+ruha8r2iwc10pIA/a6WR/x0 nUlZU1VE0Tl7/iMP18Rjo+IKviwzHwrM8Xe6o3ivkIMfU300VtO54ewKTQA8C+LE/JJU FqrPHLn+murr6kfSLDVAhuxaRWNU1eKJLF249egAQV+4OiQoCgklqOB94HAHoy/0bNfG IpojguoNDCJcncUkZc7dE8jfd7BWdWLAhqywvgKW4Gitx1Xtc6xl3WC3btSf7O3e6xA8 lxraHaqC7R3TPVZEcUfV2ieMJnfdzD2ccS2AlNdmtyTG2ow93y2V1i/uJOzSM9s+Zwe/ md5w== X-Gm-Message-State: APjAAAWMCFAG1FDfomDPi+SKDzxKcBFmXRMM3hNRhChSsiQ4wiLgcZKx o0uqJ4D2WjfcRwGZiVLU8kbKv10F X-Google-Smtp-Source: APXvYqzJOIZqDzcdQLXxQdlnEZH1ShPc95SfXriBDnZQ+EPegz/h+LNYgjcE6ybGyhP2kXK3rsr3yQ== X-Received: by 2002:a24:c304:: with SMTP id s4mr3404920itg.99.1557846607132; Tue, 14 May 2019 08:10:07 -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 m10sm5469197iol.20.2019.05.14.08.10.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 08:10:05 -0700 (PDT) Sender: Mark Johnston Date: Tue, 14 May 2019 11:10:02 -0400 From: Mark Johnston To: freebsd-current@freebsd.org Cc: kevans@freebsd.org Subject: panic in tunstart_l2() Message-ID: <20190514151002.GE51157@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 31E1170BDE X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=p8iVmBrK; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::12d as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-5.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_SHORT(-0.92)[-0.922,0]; IP_SCORE(-2.87)[ip: (-8.78), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[d.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[] 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: Tue, 14 May 2019 15:10:09 -0000 Hi, I hit the following panic last night on a non-INVARIANTS kernel at r347549. The workload involves running a number of bhyve VMs with frequent restarts, during which a tap interface is destroyed and recreated. I'm a bit short on time to debug this today, so while I retry with INVARIANTS on I thought I'd also report the issue in case anyone else is seeing it. The panic occurred because the ifnet's softc field is NULL. <6>tap18: promiscuous mode enabled <6>tap18: link state changed to UP <6>tap8: link state changed to DOWN Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0xa0 fault code = supervisor write data , page not present instruction pointer = 0x20:0xffffffff808f51c9 stack pointer = 0x28:0xffffffff8193c480 frame pointer = 0x28:0xffffffff8193c4b0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 12 (swi4: clock (0)) trap number = 12 panic: page fault cpuid = 0 time = 1557803798 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff8193c130 vpanic() at vpanic+0x19d/frame 0xffffffff8193c180 panic() at panic+0x43/frame 0xffffffff8193c1e0 trap_fatal() at trap_fatal+0x394/frame 0xffffffff8193c240 trap_pfault() at trap_pfault+0x49/frame 0xffffffff8193c2a0 trap() at trap+0x29f/frame 0xffffffff8193c3b0 calltrap() at calltrap+0x8/frame 0xffffffff8193c3b0 --- trap 0xc, rip = 0xffffffff808f51c9, rsp = 0xffffffff8193c480, rbp = 0xffffffff8193c4b0 --- tunstart_l2() at tunstart_l2+0x49/frame 0xffffffff8193c4b0 if_transmit() at if_transmit+0x170/frame 0xffffffff8193c4f0 bridge_enqueue() at bridge_enqueue+0x9a/frame 0xffffffff8193c530 ether_output_frame() at ether_output_frame+0xa2/frame 0xffffffff8193c560 ether_output() at ether_output+0x69b/frame 0xffffffff8193c5f0 ip_output() at ip_output+0x1445/frame 0xffffffff8193c740 tcp_output() at tcp_output+0x1bb7/frame 0xffffffff8193c8e0 tcp_timer_rexmt() at tcp_timer_rexmt+0x509/frame 0xffffffff8193c940 softclock_call_cc() at softclock_call_cc+0x143/frame 0xffffffff8193c9f0 softclock() at softclock+0x79/frame 0xffffffff8193ca10 ithread_loop() at ithread_loop+0x1d4/frame 0xffffffff8193ca70 fork_exit() at fork_exit+0x83/frame 0xffffffff8193cab0 fork_trampoline() at fork_trampoline+0xe/frame 0xffffffff8193cab0