Re: kernel panic by enabling net.inet.ip.random_id

2016-01-08 Thread Gleb Smirnoff
On Wed, Jan 06, 2016 at 01:24:53PM -0500, Shawn Webb wrote: S> That's what gets toggled via the sysctl. I think I figured out that I S> need to call ip_initid() in the SYSINIT. Compiling and testing now. Right, that's the problem. You actually want VNET_SYSINIT(). Please next time you report a pa

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-06 Thread Shawn Webb
Yup, calling ip_initid() in the SYSINIT works! Thanks for the help. Thanks, Shawn On Wed, Jan 06, 2016 at 01:24:53PM -0500, Shawn Webb wrote: > That's what gets toggled via the sysctl. I think I figured out that I > need to call ip_initid() in the SYSINIT. Compiling and testing now. > > Thanks,

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-06 Thread Shawn Webb
That's what gets toggled via the sysctl. I think I figured out that I need to call ip_initid() in the SYSINIT. Compiling and testing now. Thanks, Shawn On Wed, Jan 06, 2016 at 10:15:08AM -0800, Adrian Chadd wrote: > Why'd you condition the vimage definition? :) > > > > -a > > > On 6 January

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-06 Thread Adrian Chadd
Why'd you condition the vimage definition? :) -a On 6 January 2016 at 06:46, Shawn Webb wrote: > (kgdb) list *(0x80b5de9e) > 0x80b5de9e is in ip_fillid (/usr/src/sys/netinet/ip_id.c:237). > warning: Source file is more recent than executable. > > 232 new_id = 0; >

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-06 Thread Shawn Webb
(kgdb) list *(0x80b5de9e) 0x80b5de9e is in ip_fillid (/usr/src/sys/netinet/ip_id.c:237). warning: Source file is more recent than executable. 232 new_id = 0; 233 do { 234 if (new_id != 0) 235 V_random_id_collis

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-05 Thread Adrian Chadd
try list *(0x[address]) . That line is mtx_unlock(), which makes no sense (as mtx_lock succeeded fine.) -a On 5 January 2016 at 18:13, Shawn Webb wrote: > Thanks for the quick reply! Here's some more debugging output: > > === Begin Log === > (kgdb) bt > #0 doadump (textdump=0) at pcpu.h:221

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-05 Thread Shawn Webb
Thanks for the quick reply! Here's some more debugging output: === Begin Log === (kgdb) bt #0 doadump (textdump=0) at pcpu.h:221 #1 0x8037c78b in db_dump (dummy=, dummy2=false, dummy3=0, dummy4=0x0) at /usr/src/sys/ddb/db_command.c:533 #2 0x8037c57e in db_command (cmd_table=0x0

Re: kernel panic by enabling net.inet.ip.random_id

2016-01-05 Thread Adrian Chadd
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 > h

kernel panic by enabling net.inet.ip.random_id

2016-01-05 Thread Shawn Webb
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