Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-13 Thread Mark Johnston
On Tue, Sep 12, 2017 at 10:34:00AM +0200, Raphael Kubo da Costa wrote: > Mark Johnston writes: > > > I think the bug is that keg_large_init() doesn't take > > sizeof(struct uma_slab) into account when setting uk_ppera for the keg. > > In particular, the bug isn't specific to

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-12 Thread Andrey V. Elsukov
On 12.09.2017 06:35, Mark Johnston wrote: >> [...] >> FreeBSD/SMP: 2 package(s) x 14 core(s) x 2 hardware threads >> >> Also I determined that it can successfully boot with disabled >> hyper-threading. > > After the change to CACHE_LINE_SIZE, we have > sizeof(struct uma_zone) == 448 and

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-12 Thread Raphael Kubo da Costa
Mark Johnston writes: > I think the bug is that keg_large_init() doesn't take > sizeof(struct uma_slab) into account when setting uk_ppera for the keg. > In particular, the bug isn't specific to the bootup process; it only > affects internal zones with an item size in the

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Mark Johnston
On Mon, Sep 11, 2017 at 09:15:51PM +0300, Andrey V. Elsukov wrote: > On 11.09.2017 15:23, Andrey V. Elsukov wrote: > > --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = > > 0x821939b0 --- > > zone_import() at zone_import+0x110/frame 0x821939b0 > >

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Raphael Kubo da Costa
Raphael Kubo da Costa writes: > "Andrey V. Elsukov" writes: > >> On 11.09.2017 15:23, Andrey V. Elsukov wrote: >> >>> --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = >>> 0x821939b0 --- >>> zone_import() at

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Andrey V. Elsukov
On 11.09.2017 21:38, John Baldwin wrote: > On Monday, September 11, 2017 09:15:51 PM Andrey V. Elsukov wrote: >> On 11.09.2017 15:23, Andrey V. Elsukov wrote: >>> --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = >>> 0x821939b0 --- >>> zone_import() at

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Raphael Kubo da Costa
"Andrey V. Elsukov" writes: > On 11.09.2017 15:23, Andrey V. Elsukov wrote: > >> --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = >> 0x821939b0 --- >> zone_import() at zone_import+0x110/frame 0x821939b0 >> zone_alloc_item() at

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread John Baldwin
On Monday, September 11, 2017 09:15:51 PM Andrey V. Elsukov wrote: > On 11.09.2017 15:23, Andrey V. Elsukov wrote: > > --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = > > 0x821939b0 --- > > zone_import() at zone_import+0x110/frame 0x821939b0 > >

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Andrey V. Elsukov
On 11.09.2017 15:23, Andrey V. Elsukov wrote: > --- trap 0xc, rip = 0x80d84870, rsp = 0x82193970, rbp = > 0x821939b0 --- > zone_import() at zone_import+0x110/frame 0x821939b0 > zone_alloc_item() at zone_alloc_item+0x36/frame 0x821939f0 > uma_startup() at

Re: r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Andrey V. Elsukov
On 11.09.2017 11:31, Raphael Kubo da Costa wrote: > I've recently tried to upgrade a HEAD VM (running on a Linux host with > QEMU) from r321082 to r323412. > > The new kernel panics right after I try to boot into it with: > > panic: Assertion slab->us_keg == keg failed at

r323412: Panic on boot (slab->us_keg == keg)

2017-09-11 Thread Raphael Kubo da Costa
I've recently tried to upgrade a HEAD VM (running on a Linux host with QEMU) from r321082 to r323412. The new kernel panics right after I try to boot into it with: panic: Assertion slab->us_keg == keg failed at /usr/src/sys/vm/uma_core.c:2285 cpuid = 0 time = 1 KDB: stack backtrace: