syzbot


Fatal trap 12: page fault in in6_cksum_partial

Status: fixed on 2019/04/19 20:43
Reported-by: syzbot+6295fcc5a8aced81d599@syzkaller.appspotmail.com
Fix commit: 70a0f3dcdc1f When a checksum has to be computed for a received IPv6 packet because it is requested by the application using the IPPROTO_IPV6 level socket option IPV6_CHECKSUM on a raw socket, ensure that the packet contains enough bytes to contain the checksum at the specified offset.
First crash: 2106d, last: 2076d

Sample crash report:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x10
fault code		= supervisor read data  , page not present
instruction pointer	= 0x20:0xffffffff813e0389
stack pointer	        = 0x28:0xfffffe0016ad4710
frame pointer	        = 0x28:0xfffffe0016ad4770
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		= 12 (swi1: netisr 0)
trap number		= 12
panic: page fault
cpuid = 0
time = 1553117822
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe0016ad4370
vpanic() at vpanic+0x1e0/frame 0xfffffe0016ad43d0
panic() at panic+0x43/frame 0xfffffe0016ad4430
trap_fatal() at trap_fatal+0x4c6/frame 0xfffffe0016ad44b0
trap_pfault() at trap_pfault+0x9f/frame 0xfffffe0016ad4520
trap() at trap+0x44d/frame 0xfffffe0016ad4640
calltrap() at calltrap+0x8/frame 0xfffffe0016ad4640
--- trap 0xc, rip = 0xffffffff813e0389, rsp = 0xfffffe0016ad4710, rbp = 0xfffffe0016ad4770 ---
in6_cksum_partial() at in6_cksum_partial+0x179/frame 0xfffffe0016ad4770
rip6_input() at rip6_input+0x5ff/frame 0xfffffe0016ad4850
ip6_input() at ip6_input+0x1a9b/frame 0xfffffe0016ad4970
swi_net() at swi_net+0x23b/frame 0xfffffe0016ad49f0
ithread_loop() at ithread_loop+0x2f2/frame 0xfffffe0016ad4a60
fork_exit() at fork_exit+0xb0/frame 0xfffffe0016ad4ab0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0016ad4ab0
--- trap 0, rip = 0, rsp = 0, rbp = 0 ---
KDB: enter: panic
[ thread pid 12 tid 100017 ]
Stopped at      kdb_enter+0x6a: movq    $0,kdb_why

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/20 21:41 freebsd 3d80c6291b89 142c38ee console log report syz ci-freebsd-main
2019/04/19 18:37 freebsd 55a254f77345 b0e8efcb console log report ci-freebsd-main
2019/04/17 16:46 freebsd b6581130649a b0e8efcb console log report ci-freebsd-main
2019/04/16 13:31 freebsd 92c71535caf3 505ab413 console log report ci-freebsd-main
2019/04/12 00:57 freebsd bd383e74e5f4 13030ef8 console log report ci-freebsd-main
2019/03/20 21:20 freebsd 3d80c6291b89 142c38ee console log report ci-freebsd-main
* Struck through repros no longer work on HEAD.