From owner-svn-src-head@freebsd.org Tue May 29 05:00:15 2018 Return-Path: Delivered-To: svn-src-head@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 46518FBABA3; Tue, 29 May 2018 05:00:15 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D7FDF76B3C; Tue, 29 May 2018 05:00:14 +0000 (UTC) (envelope-from pho@holm.cc) Received: from x2.osted.lan (87-58-223-204-dynamic.dk.customer.tdc.net [87.58.223.204]) by relay01.pair.com (Postfix) with ESMTP id 00B36D00B24; Tue, 29 May 2018 01:00:12 -0400 (EDT) Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.9/8.14.9) with ESMTP id w4T50AtN011317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 29 May 2018 07:00:10 +0200 (CEST) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.9/8.14.9/Submit) id w4T50ApZ011316; Tue, 29 May 2018 07:00:10 +0200 (CEST) (envelope-from pho) Date: Tue, 29 May 2018 07:00:09 +0200 From: Peter Holm To: Matt Macy Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r334305 - head/sys/net Message-ID: <20180529050009.GA11230@x2.osted.lan> References: <201805290053.w4T0rspX052002@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201805290053.w4T0rspX052002@repo.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2018 05:00:15 -0000 On Tue, May 29, 2018 at 12:53:54AM +0000, Matt Macy wrote: > Author: mmacy > Date: Tue May 29 00:53:53 2018 > New Revision: 334305 > URL: https://svnweb.freebsd.org/changeset/base/334305 > > Log: > route: fix missed ref adds > - ensure that we bump the ifa ref whenever we add a reference > - defer freeing epoch protected references until after the if_purgaddrs > loop > > Modified: > head/sys/net/if.c > head/sys/net/route.c > > Modified: head/sys/net/if.c > ============================================================================== > --- head/sys/net/if.c Tue May 29 00:19:23 2018 (r334304) Writing entropy file:. Setting hostname: flix1a.netperf.freebsd.org. lo0: link state changed to UP Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex nd6 onlink (nd6 onlink) r = 0 (0xfffffe00e4fa7a98) locked @ netinet6/nd6_rtr.c:1145 stack backtrace: #0 0xffffffff80be2923 at witness_debugger+0x73 #1 0xffffffff80be3d01 at witness_warn+0x461 #2 0xffffffff8104c753 at trap_pfault+0x53 #3 0xffffffff8104bdd7 at trap+0x2c7 #4 0xffffffff810277cc at calltrap+0x8 #5 0xffffffff80ca7276 at rtrequest1_fib+0x496 #6 0xffffffff80ca7de0 at rtrequest_fib+0x70 #7 0xffffffff80de628b at nd6_prefix_onlink+0x40b #8 0xffffffff80de5daf at nd6_prelist_add+0x22f #9 0xffffffff80dc17a4 at in6_ifattach+0x6e4 #10 0xffffffff80c7cd7a at if_up+0x6a #11 0xffffffff80c7ebec at ifioctl+0x1a9c #12 0xffffffff80be8009 at kern_ioctl+0x2b9 #13 0xffffffff80be7cdc at sys_ioctl+0x15c #14 0xffffffff8104d067 at amd64_syscall+0x2a7 #15 0xffffffff810280ad at fast_syscall_common+0x101 Fatal trap 12: page fault while in kernel mode cpuid = 31; apic id = 25 fault virtual address = 0x18 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80ca873b stack pointer = 0x28:0xfffffe00edce4ad0 frame pointer = 0x28:0xfffffe00edce4b00 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 = 321 (ifconfig) [ thread pid 321 tid 100799 ] Stopped at rt_getifa_fib+0x12b: movq 0x18(%r13),%rax db> bt Tracing pid 321 tid 100799 td 0xfffff8017a2af000 rt_getifa_fib() at rt_getifa_fib+0x12b/frame 0xfffffe00edce4b00 rtrequest1_fib() at rtrequest1_fib+0x496/frame 0xfffffe00edce4c00 rtrequest_fib() at rtrequest_fib+0x70/frame 0xfffffe00edce4cc0 nd6_prefix_onlink() at nd6_prefix_onlink+0x40b/frame 0xfffffe00edce4e10 nd6_prelist_add() at nd6_prelist_add+0x22f/frame 0xfffffe00edce4e90 in6_ifattach() at in6_ifattach+0x6e4/frame 0xfffffe00edce4fd0 if_up() at if_up+0x6a/frame 0xfffffe00edce5000 ifioctl() at ifioctl+0x1a9c/frame 0xfffffe00edce50d0 kern_ioctl() at kern_ioctl+0x2b9/frame 0xfffffe00edce5130 sys_ioctl() at sys_ioctl+0x15c/frame 0xfffffe00edce5200 amd64_syscall() at amd64_syscall+0x2a7/frame 0xfffffe00edce5330 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00edce5330 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80047e83a, rsp = 0x7fffffffe428, rbp = 0x7fffffffe480 --- db> x/s version version: FreeBSD 12.0-CURRENT #0 r334313: Tue May 29 06:47:31 CEST 2018\012 pho@flix1a.netperf.freebsd.org:/usr/src/sys/amd64/compile/PHO\012 db> - Peter