Bug 271550

Summary: Fatal trap 12: page fault while in kernel mode // pf_route6
Product: Base System Reporter: Igor Valkov <viaprog>
Component: kernAssignee: freebsd-pf (Nobody) <pf>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: kp, markj, viaprog
Priority: --- Keywords: crash
Version: 13.2-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
/var/crash/core.txt none

Description Igor Valkov 2023-05-21 13:05:30 UTC
Fatal trap 12: page fault while in kernel mode
cpuid = 36; apic id = 28
fault virtual address   = 0x417
fault code      = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff807ebf0a
stack pointer           = 0x28:0xfffffe019b8e8e80
frame pointer           = 0x28:0xfffffe019b8e8eb0
code segment        = base rx0, limit 0xfffff, type 0x1b
            = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags    = interrupt enabled, resume, IOPL = 0
current process     = 0 (if_io_tqg_36)
trap number     = 12
panic: page fault
cpuid = 36
time = 1683889359
KDB: stack backtrace:
#0 0xffffffff8068d1c5 at kdb_backtrace+0x65
#1 0xffffffff8063fe51 at vpanic+0x151
#2 0xffffffff8063fcf3 at panic+0x43
#3 0xffffffff809a91d5 at trap_fatal+0x385
#4 0xffffffff809a922f at trap_pfault+0x4f
#5 0xffffffff80981d68 at calltrap+0x8
#6 0xffffffff807e2bec at icmp6_reflect+0x2ac
#7 0xffffffff807e2714 at icmp6_error+0x374
#8 0xffffffff8083a65e at pf_route6+0x6ae
#9 0xffffffff8083996d at pf_test6+0x95d
#10 0xffffffff8084b720 at pf_check6_out+0x40
#11 0xffffffff8077b2b7 at pfil_run_hooks+0x97
#12 0xffffffff807fbf39 at ip6_output+0x10d9
#13 0xffffffff807c645b at tcp_output+0x1eab
#14 0xffffffff807bce38 at tcp_do_segment+0x28f8
#15 0xffffffff807b9801 at tcp_input_with_port+0xb61
#16 0xffffffff807b8c39 at tcp6_input_with_port+0x69
#17 0xffffffff807b9ffb at tcp6_input+0xb
Uptime: 1m53s
Dumping 4988 out of 130941 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%
Comment 1 Igor Valkov 2023-05-21 13:09:39 UTC
Created attachment 242309 [details]
/var/crash/core.txt
Comment 2 Kristof Provost freebsd_committer freebsd_triage 2023-05-22 13:59:23 UTC
That looks like the IPv6 instance of the bug in 259645. 

I believe Mark already fixed that one, but I can't immediately find the bug or commit reference for it.
Comment 3 Mark Johnston freebsd_committer freebsd_triage 2023-05-24 15:03:10 UTC
(In reply to Kristof Provost from comment #2)
I had written a patch for it, but it's not committed yet.  I'll work on this for 14.0.

(In reply to Igor Valkov from comment #0)
This looks like a dup of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268400 .  It should be possible to work around it by applying the patch there.
Comment 4 Mark Johnston freebsd_committer freebsd_triage 2023-06-18 14:27:18 UTC

*** This bug has been marked as a duplicate of bug 268400 ***