From owner-freebsd-current@freebsd.org Wed Jan 6 02:06:42 2016 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 C9736A6374D for ; Wed, 6 Jan 2016 02:06:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (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 98D781868 for ; Wed, 6 Jan 2016 02:06:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x230.google.com with SMTP id 77so174596493ioc.2 for ; Tue, 05 Jan 2016 18:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=a5yeYhtTvKoLjO8ko2JRtleb1xivpm5bUw3Dtn5Mhs8=; b=Lw921lwyRiB2dQvP/Z1mbM9B+d3YOfrlSH4dEU4QZzHTvbLd2VYC7+kcaTdrm4Y2CC Yjf/8MRIew7Bnyt6tqz8Kxb9fWdjaT2poYtEckrpWpss2+tigriwN7YOGNQy25bgk8j0 IzsF+exzDGHkwUHN4nNGLa4OL/yEoj2kCqm+Z25e2PKJMv2Smuo48rWHcJFz6Tj1NKxG hKg0hvhr6284PoPEyd9v0sukO0JtAlCi4mdVDbZrTyXYToiMSSh+pwqWmNM/mngKIZen SV4mlougJV8pMSOgiRPYk54dBHLJL79ZbbEJCYFG7u2swo8I+auBeehyt9W/tYF07Iz2 Oznw== MIME-Version: 1.0 X-Received: by 10.107.162.146 with SMTP id l140mr31525956ioe.123.1452046002043; Tue, 05 Jan 2016 18:06:42 -0800 (PST) Received: by 10.36.121.202 with HTTP; Tue, 5 Jan 2016 18:06:41 -0800 (PST) In-Reply-To: <20160106015742.GA8405@mutt-hardenedbsd> References: <20160106015742.GA8405@mutt-hardenedbsd> Date: Tue, 5 Jan 2016 18:06:41 -0800 Message-ID: Subject: Re: kernel panic by enabling net.inet.ip.random_id From: Adrian Chadd To: Shawn Webb Cc: freebsd-current Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 06 Jan 2016 02:06:43 -0000 looks like a null pointer deference. What's kgdb show at that IP? -a On 5 January 2016 at 17:57, Shawn Webb wrote: > Hey All, > > Here's a kernel panic I'm experiencing by enabling net.inet.ip.random_id > at boot. > > I'm on latest HEAD on amd64 in bhyve. I'll soon-ish be testing on native > hardware with VIMAGE enabled. > > === Begin Log === > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex ip_id_mtx (ip_id_mtx) r = 0 (0xffffffff81c54830) locked @ /usr/src/sys/netinet/ip_id.c:227 > stack backtrace: > #0 0xffffffff80a79620 at witness_debugger+0x70 > #1 0xffffffff80a7a937 at witness_warn+0x3d7 > #2 0xffffffff80e6b887 at trap_pfault+0x57 > #3 0xffffffff80e6b15f at trap+0x4bf > #4 0xffffffff80e4af97 at calltrap+0x8 > #5 0xffffffff80b6c41b at ip_output+0x16b > #6 0xffffffff80b68e82 at icmp_reflect+0x5b2 > #7 0xffffffff80b6883f at icmp_error+0x46f > #8 0xffffffff80beeb12 at udp_input+0x982 > #9 0xffffffff80b69d1d at ip_input+0x17d > #10 0xffffffff80b08ba1 at netisr_dispatch_src+0x81 > #11 0xffffffff80afecce at ether_demux+0x15e > #12 0xffffffff80affa14 at ether_nh_input+0x344 > #13 0xffffffff80b08ba1 at netisr_dispatch_src+0x81 > #14 0xffffffff80afefcf at ether_input+0x4f > #15 0xffffffff8089a5c3 at vtnet_rxq_eof+0x823 > #16 0xffffffff8089b2ce at vtnet_rx_vq_intr+0x4e > #17 0xffffffff809e9ba6 at intr_event_execute_handlers+0x96 > > > Fatal trap 12: page fault while in kernel mode > cpuid = 6; apic id = 06 > fault virtual address = 0x5bd > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80b5de9e > stack pointer = 0x28:0xfffffe02b8d483e0 > frame pointer = 0x28:0xfffffe02b8d48410 > 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 (irq265: virtio_pci0) > [ thread pid 12 tid 100040 ] > Stopped at ip_fillid+0x8e: movzbl (%rax,%rcx,1),%esi > === End Log === > > Thanks, > > -- > Shawn Webb > HardenedBSD > > GPG Key ID: 0x6A84658F52456EEE > GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE