Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2018 10:58:52 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Panic in prison_alloc() on boot
Message-ID:  <20180212085852.GA94212@kib.kiev.ua>
In-Reply-To: <CAFMmRNxCQpXCbC29=3bfmWmUxGmnVgZbxuoCesBEL3gBLwPuwg@mail.gmail.com>
References:  <CAFMmRNxCQpXCbC29=3bfmWmUxGmnVgZbxuoCesBEL3gBLwPuwg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 11, 2018 at 11:50:43PM -0500, Ryan Stone wrote:
> I'm getting a persistent panic on boot in prison_allow().  The first
> case that I hit is this:
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 10; apic id = 22
> fault virtual address   = 0x30
> fault code              = supervisor read data, page not present
> instruction pointer     = 0x20:0xffffffff80ab9674
> stack pointer           = 0x28:0xfffffe00f8bb16f0
> frame pointer           = 0x28:0xfffffe00f8bb16f0
> 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         = 90 (mount_nullfs)
> [ thread pid 90 tid 100913 ]
> Stopped at      prison_allow+0x4:       movq    ll+0xf(%rdi),%rax
> db> bt
> Tracing pid 90 tid 100913 td 0xfffff801a5aab000
> prison_allow() at prison_allow+0x4/frame 0xfffffe00f8bb16f0
Can you get the core dump and look at the arguments ?
It is most likely cred->cr_prison which is NULL.

> nullfs_mount() at nullfs_mount+0x31/frame 0xfffffe00f8bb1830
> vfs_donmount() at vfs_donmount+0x1415/frame 0xfffffe00f8bb1a80
> sys_nmount() at sys_nmount+0x72/frame 0xfffffe00f8bb1ac0
> amd64_syscall() at amd64_syscall+0xa48/frame 0xfffffe00f8bb1bf0
> fast_syscall_common() at fast_syscall_common+0x101/frame 0x7fffffffecb0
> 
> However if I comment out my nullfs mounts in /etc/fstab, I just get a
> panic in prison_allow() called from elsewhere.
> 
> I've seen this panic with r328936 (Feb 6), r329091 (Feb 9) and r329142 (Feb 11)
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180212085852.GA94212>