Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2017 18:58:27 +0200
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        Alan Somers <asomers@freebsd.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: CURRENT (r316844): Fatal trap 12: page fault while in kernel mode (syslogd)
Message-ID:  <20170414185827.1ab68398@thor.intern.walstatt.dynvpn.de>
In-Reply-To: <CAOtMX2gnNtBkWcJArauE=g5SP-F3h2QqazoOKBUfSVZZarkGPw@mail.gmail.com>
References:  <20170414175246.2353dcf0@thor.intern.walstatt.dynvpn.de> <CAOtMX2gnNtBkWcJArauE=g5SP-F3h2QqazoOKBUfSVZZarkGPw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/CXaekI.U9YSFnFWM1jqm6cC
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Fri, 14 Apr 2017 10:02:03 -0600
Alan Somers <asomers@freebsd.org> schrieb:

> On Fri, Apr 14, 2017 at 9:53 AM, O. Hartmann <o.hartmann@walstatt.org> wr=
ote:
> > I just updated today CURRENT's tree sources for nanoBSD to r316844 and =
recompiled an
> > image I use for an PCengines APU 2C4. The APU now crashes with the erro=
r shown below.
> >
> > r316717 is all right and boots and works as expected.
> >
> > Just now, I depend on the box, so debugging kernel with more info is un=
derway, but in
> > due time.
> >
> > Kind regards,
> >
> > Oliver
> >
> > [...]
> > uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2>=
 on usbus1
> > uhub2: 4 ports with 4 removable, self powered
> > Link state changed to up
> > igb0: link state changed to UP
> > Link state changed to up
> > igb1: link state changed to UP
> > igb1.100: link state changed to UP
> > igb1.2: link state changed to UP
> > igb1.66: link state changed to UP
> > igb1.111: link state changed to UP
> > igb1.10: link state changed to UP
> > tun0: link state changed to UP
> > link state changed to down
> > igb0: link state changed to DOWN
> > Bump sched buckets to 64 (was 0)
> > Link state changed to up
> >
> >
> > Fatal trap 12: page fault while in kernel mode
> > cpuid =3D 0; apic id =3D 00
> > fault virtual address   =3D 0xfffff80012231600
> > fault code              =3D supervisor read instruction, protection vio=
lation
> > instruction pointer     =3D 0x20:0xfffff80012231600
> > stack pointer           =3D 0x28:0xfffffe012cdc1f58
> > frame pointer           =3D 0x28:0xfffffe012cdc1fc0
> > code segment            =3D base 0x0, limit 0xfffff, type 0x1b
> >                         =3D DPL 0, pres 1, long 1, def32 0, gran 1
> > processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
> > current process         =3D 941 (syslogd)
> > trap number             =3D 12
> > panic: page fault
> > cpuid =3D 1
> > time =3D 1492182471
> > Uptime: 16s
> > PCEngines apu2
> > coreboot build 20160311 =20
>=20
> At a minimum, you need to include a backtrace with a bug report like this.
>=20
> -Alan

Just sent a PR:
Bug 218663

and added the backtrace as required:

[...]
Link state changed to up
Kernel page fault with the following non-sleepable locks held:
shared rw bpf interface lock (bpf interface lock) r =3D 0 (0xfffff80002ff40=
28) locked
@ /pool/sources/CURRENT/src/sys/net/bpf.c:2206 shared rw udpinp (udpinp) r =
=3D 0
(0xfffff800127f5c98) locked @ /pool/sources/CURRENT/src/sys/netinet/udp_usr=
req.c:1140
stack backtrace: #0 0xffffffff80641960 at witness_debugger+0x70
#1 0xffffffff80642d8e at witness_warn+0x45e
#2 0xffffffff8096f563 at trap_pfault+0x53
#3 0xffffffff8096ed5e at trap+0x24e
#4 0xffffffff80952ce3 at calltrap+0x8
#5 0xffffffff806fc253 at iflib_txq_drain+0x1383
#6 0xffffffff806feda0 at drain_ring_lockless+0xc0
#7 0xffffffff806feb6e at ifmp_ring_enqueue+0x32e
#8 0xffffffff806fda90 at iflib_if_transmit+0xb0
#9 0xffffffff806dfb00 at ether_output+0x730
#10 0xffffffff80761ae6 at arprequest+0x426
#11 0xffffffff80761f41 at arpresolve_full+0x3d1
#12 0xffffffff807621ac at arpresolve+0x10c
#13 0xffffffff806df8b1 at ether_output+0x4e1
#14 0xffffffff80785c36 at ip_output+0x14e6
#15 0xffffffff8080ddd1 at udp_send+0xab1
#16 0xffffffff80676c44 at sosend_dgram+0x3e4
#17 0xffffffff8067d3a9 at kern_sendit+0x229


Fatal trap 12: page fault while in kernel mode
cpuid =3D 2; apic id =3D 02
fault virtual address   =3D 0xfffff8001282fb00
fault code              =3D supervisor read instruction, protection violati=
on
instruction pointer     =3D 0x20:0xfffff8001282fb00
stack pointer           =3D 0x28:0xfffffe012d2aef48
frame pointer           =3D 0x28:0xfffffe012d2aefb0
code segment            =3D base rx0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 941 (syslogd)
[ thread pid 941 tid 100084 ]
Stopped at      0xfffff8001282fb00
db> bt
Tracing pid 941 tid 100084 td 0xfffff80004520000
??() at 0xfffff8001282fb00
bpf_mtap() at bpf_mtap+0x1ab/frame 0xfffffe012d2aefb0
iflib_txq_drain() at iflib_txq_drain+0x1383/frame 0xfffffe012d2af130
drain_ring_lockless() at drain_ring_lockless+0xc0/frame 0xfffffe012d2af190
ifmp_ring_enqueue() at ifmp_ring_enqueue+0x32e/frame 0xfffffe012d2af200
iflib_if_transmit() at iflib_if_transmit+0xb0/frame 0xfffffe012d2af240
ether_output() at ether_output+0x730/frame 0xfffffe012d2af2e0
arprequest() at arprequest+0x426/frame 0xfffffe012d2af3e0
arpresolve_full() at arpresolve_full+0x3d1/frame 0xfffffe012d2af460
arpresolve() at arpresolve+0x10c/frame 0xfffffe012d2af4d0
ether_output() at ether_output+0x4e1/frame 0xfffffe012d2af570
ip_output() at ip_output+0x14e6/frame 0xfffffe012d2af6b0
udp_send() at udp_send+0xab1/frame 0xfffffe012d2af780
sosend_dgram() at sosend_dgram+0x3e4/frame 0xfffffe012d2af7f0
kern_sendit() at kern_sendit+0x229/frame 0xfffffe012d2af890
sendit() at sendit+0x1a7/frame 0xfffffe012d2af8e0
sys_sendto() at sys_sendto+0x4d/frame 0xfffffe012d2af930
amd64_syscall() at amd64_syscall+0x4c2/frame 0xfffffe012d2afab0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe012d2afab0
syscall (133, FreeBSD ELF64, sys_sendto), rip =3D 0x800b8a5fa, rsp =3D 0x7f=
ffffffd6b8,
rbp =3D 0x7fffffffdcc0 ---

--=20
O. Hartmann

Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr
Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.=
 4 BDSG).

--Sig_/CXaekI.U9YSFnFWM1jqm6cC
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWPD/swAKCRDS528fyFhY
lBGUAf0bsNI9FE6wgFfSSVLuHG7hbwzy9SJ9ZHwwYE9yHBFNUDxXJN1UPjBJ9nD8
C6l9Jbb8wqJetJvwXLJFd/SrEvvkAf4rPuZc1sZ2mt2KgeJ8T0mPQtbj+FSCID3W
JNoi7ripcHm04AIyTQFVHAbWQxrcYD2hWrn/Hl4Pai3rLlwaPBn/
=KLgQ
-----END PGP SIGNATURE-----

--Sig_/CXaekI.U9YSFnFWM1jqm6cC--



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