Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 May 2016 17:57:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 208140] panic: page fault in pf
Message-ID:  <bug-208140-6-mzb9GObkji@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208140-6@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208140-6@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208140

--- Comment #12 from Roman <rkondakov@ya.ru> ---
new crash:

panic: page fault

---
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
panic: page fault
cpuid =3D 0
KDB: stack backtrace:
#0 0xffffffff80444e10 at kdb_backtrace+0x60
#1 0xffffffff8040b306 at vpanic+0x126
#2 0xffffffff8040b1d3 at panic+0x43
#3 0xffffffff8066ddab at trap_fatal+0x36b
#4 0xffffffff8066e0ad at trap_pfault+0x2ed
#5 0xffffffff8066d72a at trap+0x47a
#6 0xffffffff80653892 at calltrap+0x8
#7 0xffffffff805b5fc6 at pf_test+0xd66
#8 0xffffffff805c5ced at pf_check_in+0x1d
#9 0xffffffff804d94d4 at pfil_run_hooks+0x84
#10 0xffffffff804f543d at ip_input+0x31d
#11 0xffffffff804d8672 at netisr_dispatch_src+0x62
#12 0xffffffff804d13a6 at ether_demux+0x126
#13 0xffffffff804d204e at ether_nh_input+0x35e
#14 0xffffffff804d8672 at netisr_dispatch_src+0x62
#15 0xffffffff804d1311 at ether_demux+0x91
#16 0xffffffff804d204e at ether_nh_input+0x35e
#17 0xffffffff804d8672 at netisr_dispatch_src+0x62

---

bt:

#0  doadump (textdump=3D<value optimized out>) at pcpu.h:219
#1  0xffffffff8040af62 in kern_reboot (howto=3D260)
    at /usr/src/sys/kern/kern_shutdown.c:486
#2  0xffffffff8040b345 in vpanic (fmt=3D<value optimized out>,
    ap=3D<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:889
#3  0xffffffff8040b1d3 in panic (fmt=3D0x0)
    at /usr/src/sys/kern/kern_shutdown.c:818
#4  0xffffffff8066ddab in trap_fatal (frame=3D<value optimized out>,
    eva=3D<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:858
#5  0xffffffff8066e0ad in trap_pfault (frame=3D0xfffffe00003cf480,
    usermode=3D<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:681
#6  0xffffffff8066d72a in trap (frame=3D0xfffffe00003cf480)
    at /usr/src/sys/amd64/amd64/trap.c:447
#7  0xffffffff80653892 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:236
#8  0xffffffff805dbd06 in pfr_update_stats (kt=3D<value optimized out>, a=
=3D0x10,
    af=3D<value optimized out>, len=3D74, dir_out=3D0, op_pass=3D1, notrule=
=3D0)
    at /usr/src/sys/netpfil/pf/pf_table.c:1962
#9  0xffffffff805b5fc6 in pf_test (dir=3D1, ifp=3D<value optimized out>,
    m0=3D0xfffffe00003cf798, inp=3D<value optimized out>)
    at /usr/src/sys/netpfil/pf/pf.c:6105
#10 0xffffffff805c5ced in pf_check_in (arg=3D<value optimized out>,
    m=3D0xfffffe00003cf798, ifp=3D0x10, dir=3D<value optimized out>, inp=3D=
0x0)
    at /usr/src/sys/netpfil/pf/pf_ioctl.c:3551
#11 0xffffffff804d94d4 in pfil_run_hooks (ph=3D0xffffffff80b1e158,
    mp=3D0xfffffe00003cf820, ifp=3D0xfffff80006c16000, dir=3D1, inp=3D0x0)
    at /usr/src/sys/net/pfil.c:82

---
#8  0xffffffff805dbd06 in pfr_update_stats (kt=3D<value optimized out>, a=
=3D0x10,
    af=3D<value optimized out>, len=3D74, dir_out=3D0, op_pass=3D1, notrule=
=3D0)
    at /usr/src/sys/netpfil/pf/pf_table.c:1962
1962                    sin.sin_family =3D AF_INET;
(kgdb) p sin
$1 =3D {sin_len =3D 16 '\020', sin_family =3D 2 '\002', sin_port =3D 0, sin=
_addr =3D {
    s_addr =3D 0}, sin_zero =3D "\000\000\000\000\000\000\000"}

#9  0xffffffff805b5fc6 in pf_test (dir=3D1, ifp=3D<value optimized out>,
    m0=3D0xfffffe00003cf798, inp=3D<value optimized out>)
    at /usr/src/sys/netpfil/pf/pf.c:6105
(kgdb) l
6100                                &s->key[(s->direction =3D=3D PF_IN)]->
6101                                    addr[(s->direction =3D=3D PF_OUT)],
6102                                pd.af, pd.tot_len, dir =3D=3D PF_OUT,
6103                                r->action =3D=3D PF_PASS, tr->src.neg);
6104                    if (tr->dst.addr.type =3D=3D PF_ADDR_TABLE)
6105                            pfr_update_stats(tr->dst.addr.p.tbl,
6106                                (s =3D=3D NULL) ? pd.dst :
6107                                &s->key[(s->direction =3D=3D PF_IN)]->
6108                                    addr[(s->direction =3D=3D PF_IN)],
6109                                pd.af, pd.tot_len, dir =3D=3D PF_OUT,
p tr->dst.addr.p.tbl
Cannot access memory at address 0x68
(kgdb) p tr
$4 =3D <value optimized out>
(kgdb) p tr->dst
Cannot access memory at address 0x39
(kgdb) p tr->dst.addr
Cannot access memory at address 0x39
(kgdb) p tr->dst.addr.p
Cannot access memory at address 0x59
(kgdb) p tr->dst.addr.p.tbl
Cannot access memory at address 0x59

...=20

p *tr - worked
p tr->dst.addr.p.tbl - worked after p *tr

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208140-6-mzb9GObkji>