Hello,
syzbot found the following crash on:
HEAD commit: 0bb0865d Initialize the local variable "lastln" in mparse_..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=1543f3a2a00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=7f659e47e42d9641
dashboard link:
https://syzkaller.appspot.com/bug?extid=156405fdea9f2ab15d40
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+156405...@syzkaller.appspotmail.com
uvm_fault(0xfffffd807effe730, 0x110, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at mrt_ioctl+0x35: movl 0x110(%r13),%eax
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd807effe730, 0x110, 0, 1) -> e
mrt_ioctl(fffffd806ea82d88,c0287533,ffff800024e492b0) at mrt_ioctl+0x35
sys/netinet/ip_mroute.c:262
end trace frame: 0xffff800024e493b0, count: 0
ddb{0}> trace
mrt_ioctl(fffffd806ea82d88,c0287533,ffff800024e492b0) at mrt_ioctl+0x35
sys/netinet/ip_mroute.c:262
sys_ioctl(ffff800020b39128,ffff800024e493c8,ffff800024e49430) at
sys_ioctl+0x5b8
syscall(ffff800024e494a0) at syscall+0x552 mi_syscall
sys/sys/syscall_mi.h:90 [inline]
syscall(ffff800024e494a0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:554
Xsyscall(6,0,ffffffffffffff38,0,3,db8ebeac010) at Xsyscall+0x128
end of kernel
end trace frame: 0xdbb3cd02390, count: -4
ddb{0}> show registers
rdi 0xffffffff819bd9f0 mrt_ioctl+0x30
rsi 0x762
rbp 0xffff800024e492a0
rbx 0xffff800024e492b0
rdx 0x763
rcx 0xffff800020bde000
rax 0xffff800020bde000
r8 0xffffffff816a9630 in_control+0x30
r9 0x7
r10 0xc0287533
r11 0xefc5a94fb3cd5986
r12 0xfffffd806ea82d88
r13 0
r14 0xffff800020b39128
r15 0xc0287533
rip 0xffffffff819bd9f5 mrt_ioctl+0x35
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800024e49240
ss 0x10
mrt_ioctl+0x35: movl 0x110(%r13),%eax
ddb{0}> show proc
PROC (syz-executor.1) pid=220114 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=77, usrpri=77, nice=20
forw=0xffffffffffffffff, list=0xffff800020b39d58,0xffffffff8239ddd0
process=0xffff800020b3a9e8 user=0xffff800024e44000,
vmspace=0xfffffd807effe730
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=1, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
42734 377733 27912 32767 2 0x10 syz-executor.1
*42734 220114 27912 32767 7 0x4000010 syz-executor.1
27912 243818 94742 32767 2 0x490 syz-executor.1
94742 255927 73790 0 3 0x82 wait syz-executor.1
52429 271455 68507 32767 2 0x10 syz-executor.0
68507 23699 73790 0 3 0x82 wait syz-executor.0
24588 515966 0 0 3 0x14200 bored sosplice
73790 503577 29397 0 3 0x82 thrsleep syz-fuzzer
73790 136863 29397 0 2 0x4000482 syz-fuzzer
73790 6338 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 81913 29397 0 3 0x4000082 kqread syz-fuzzer
73790 358789 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 411240 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 196577 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 202297 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 144399 29397 0 3 0x4000082 thrsleep syz-fuzzer
73790 337904 29397 0 3 0x4000082 thrsleep syz-fuzzer
29397 439786 78323 0 3 0x10008a pause ksh
78323 11373 74063 0 3 0x92 select sshd
41284 130437 1 0 3 0x100083 ttyin getty
74063 443690 1 0 3 0x80 select sshd
47600 241257 21276 73 7 0x100090 syslogd
21276 408856 1 0 3 0x100082 netio syslogd
11971 62230 1 77 3 0x100090 poll dhclient
66078 227328 1 0 3 0x80 poll dhclient
87575 282357 0 0 3 0x14200 pgzero zerothread
94913 351028 0 0 3 0x14200 aiodoned aiodoned
2187 39162 0 0 3 0x14200 syncer update
78799 27257 0 0 3 0x14200 cleaner cleaner
12796 94378 0 0 3 0x14200 reaper reaper
77789 358928 0 0 3 0x14200 pgdaemon pagedaemon
23168 71474 0 0 3 0x14200 bored crynlk
13266 81161 0 0 3 0x14200 bored crypto
45692 475772 0 0 3 0x40014200 acpi0 acpi0
8753 357253 0 0 3 0x40014200 idle1
48837 304487 0 0 3 0x14200 bored softnet
73094 232949 0 0 3 0x14200 bored systqmp
84689 120109 0 0 3 0x14200 bored systq
91206 67585 0 0 2 0x40014200 softclock
50247 158876 0 0 3 0x40014200 idle0
66734 360723 0 0 3 0x14200 bored smr
1 250162 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 42734 (syz-executor.1) thread 0xffff800020b39128 (220114)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82388510)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1161
#1 syscall+0x412 mi_syscall sys/sys/syscall_mi.h:81 [inline]
#1 syscall+0x412 sys/arch/amd64/amd64/trap.c:554
#2 Xsyscall+0x128
Process 52429 (syz-executor.0) thread 0xffff800020b39ae8 (271455)
exclusive rrwlock inode r = 0 (0xfffffd8065a513c8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1161
#1 rw_enter+0x46d sys/kern/kern_rwlock.c:306
#2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435
#3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140
#4 ffs_vget+0x133 sys/ufs/ffs/ffs_vfsops.c:1352
#5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
#6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164
#7 VOP_MKDIR+0x6a sys/kern/vfs_vops.c:449
#8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974
#9 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline]
#9 syscall+0x552 sys/arch/amd64/amd64/trap.c:554
#10 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8065a51d58)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1161
#1 rw_enter+0x46d sys/kern/kern_rwlock.c:306
#2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435
#3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602
#4 vn_lock+0x6e sys/kern/vfs_vnops.c:549
#5 vfs_lookup+0xe9 sys/kern/vfs_lookup.c:422
#6 namei+0x61c sys/kern/vfs_lookup.c:252
#7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2959
#8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:90 [inline]
#8 syscall+0x552 sys/arch/amd64/amd64/trap.c:554
#9 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9459 6321K 6321K 78643K 10766 0 0
pcb 23 9K 11K 78643K 981 0 0
rtable 105 3K 3K 78643K 2188 0 0
ifaddr 36 11K 11K 78643K 306 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 2K 78643K 69 0 0
iov 0 0K 28K 78643K 173 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1209 76K 76K 78643K 2349 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 22 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 1K 1K 78643K 46 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1808 196K 290K 78643K 12628 0 0
file desc 7 21K 33K 78643K 3629 0 0
sigio 0 0K 0K 78643K 27 0 0
proc 41 38K 70K 78643K 2276 0 0
subproc 34 2K 2K 78643K 782 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 273 0 0
in_multi 33 2K 2K 78643K 611 0 0
ether_multi 1 0K 0K 78643K 25 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 54 238K 238K 78643K 54 0 0
exec 0 0K 1K 78643K 821 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 94 21K 30K 78643K 10670 0 0
UVM aobj 47 2K 2K 78643K 58 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 154 0 0
NDP 5 0K 0K 78643K 141 0 0
temp 121 2734K 2805K 78643K 15550 0 0
kqueue 0 0K 0K 78643K 23 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 94 0 88 1 0 1 1 0
8 0
inpcbpl 280 2327 0 2320 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtentry 112 529 0 485 2 0 2 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 26 0 26 1 1 0 1 0
8 0
tcpcb 544 1265 0 1260 1 0 1 1 0
8 0
ipq 40 4 0 4 1 1 0 1 0
8 0
ipqe 40 8 0 8 1 1 0 1 0
8 0
nd6 48 138 0 132 1 0 1 1 0
8 0
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 2154 0 1960 14 1 13 13 0
8 0
art_table 32 2155 0 1960 2 0 2 2 0
8 0
art_node 16 528 0 488 1 0 1 1 0
8 0
sysvmsgpl 40 23 0 16 1 0 1 1 0
8 0
semapl 112 36 0 26 1 0 1 1 0
8 0
shmpl 112 56 0 11 2 0 2 2 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 5140 0 3699 48 1 47 47 0
8 0
ffsino 272 5140 0 3699 97 0 97 97 0
8 0
nchpl 144 9007 0 7387 61 0 61 61 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 200 5926 0 0 312 0 312 312 0
8 0
namei 1024 29181 0 29180 2 1 1 1 0
8 0
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 26707 0 26707 14 13 1 6 0
8 1
plimitpl 152 245 0 236 1 0 1 1 0
8 0
sigapl 432 3668 0 3653 4 2 2 3 0
8 0
futexpl 56 17490 0 17490 1 0 1 1 0
8 1
knotepl 112 1474 0 1455 1 0 1 1 0
8 0
kqueuepl 104 494 0 492 1 0 1 1 0
8 0
pipepl 112 986 0 967 5 4 1 2 0
8 0
fdescpl 488 3669 0 3653 3 0 3 3 0
8 0
filepl 152 14880 0 14783 12 7 5 7 0
8 1
lockfpl 104 603 0 603 7 6 1 1 0
8 1
lockfspl 48 163 0 163 7 6 1 1 0
8 1
sessionpl 112 61 0 51 1 0 1 1 0
8 0
pgrppl 48 74 0 64 1 0 1 1 0
8 0
ucredpl 96 4273 0 4264 1 0 1 1 0
8 0
zombiepl 144 3653 0 3653 2 1 1 1 0
8 1
processpl 840 3685 0 3653 4 0 4 4 0
8 0
procpl 624 8129 0 8087 4 0 4 4 0
8 0
srpgc 64 264 0 264 7 6 1 1 0
8 1
sosppl 128 75 0 75 9 9 0 1 0
8 0
sockpl 384 3313 0 3295 8 5 3 4 0
8 1
mcl64k 65536 1 0 0 1 0 1 1 0
8 0
mcl16k 16384 1 0 0 1 0 1 1 0
8 0
mcl12k 12288 4 0 0 1 0 1 1 0
8 0
mcl9k 9216 7 0 0 1 0 1 1 0
8 0
mcl8k 8192 5 0 0 1 0 1 1 0
8 0
mcl4k 4096 12 0 0 2 0 2 2 0
8 0
mcl2k2 2112 7 0 0 1 0 1 1 0
8 0
mcl2k 2048 165 0 0 16 1 15 16 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 244 0 0 12 0 12 12 0
8 0
bufpl 256 10807 0 3802 439 1 438 439 0
8 0
anonpl 16 287876 0 283706 53 32 21 32 0
125 0
amapchunkpl 152 23912 0 23826 35 30 5 18 0
158 0
amappl16 192 13148 0 12967 44 34 10 21 0
8 0
amappl15 184 1419 0 1418 3 2 1 1 0
8 0
amappl14 176 908 0 904 2 1 1 1 0
8 0
amappl13 168 365 0 363 6 5 1 1 0
8 0
amappl12 160 228 0 225 1 0 1 1 0
8 0
amappl11 152 269 0 254 1 0 1 1 0
8 0
amappl10 144 348 0 347 2 1 1 1 0
8 0
amappl9 136 1661 0 1658 1 0 1 1 0
8 0
amappl8 128 1081 0 1058 1 0 1 1 0
8 0
amappl7 120 325 0 314 1 0 1 1 0
8 0
amappl6 112 164 0 155 1 0 1 1 0
8 0
amappl5 104 535 0 525 1 0 1 1 0
8 0
amappl4 96 3803 0 3778 1 0 1 1 0
8 0
amappl3 88 404 0 393 1 0 1 1 0
8 0
amappl2 80 26499 0 26427 4 2 2 3 0
8 0
amappl1 72 94309 0 93874 23 13 10 19 0
8 0
amappl 80 9068 0 9033 1 0 1 1 0
84 0
dma4096 4096 1 0 1 1 1 0 1 0
8 0
dma256 256 6 0 6 1 1 0 1 0
8 0
dma64 64 259 0 259 1 1 0 1 0
8 0
dma32 32 7 0 7 1 1 0 1 0
8 0
dma16 16 17 0 17 1 1 0 1 0
8 0
aobjpl 64 57 0 11 1 0 1 1 0
8 0
uaddrrnd 24 3669 0 3653 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 3669 0 3653 1 0 1 1 0
8 0
vmmpekpl 168 26081 0 26055 2 0 2 2 0
8 0
vmmpepl 168 387999 0 386735 117 56 61 74 0
357 5
vmsppl 368 3668 0 3653 2 0 2 2 0
8 0
pdppl 4096 7346 0 7306 6 0 6 6 0
8 0
pvpl 32 921677 0 914296 166 91 75 102 0
265 8
pmappl 232 3668 0 3653 8 7 1 2 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 604 0 6 18 0 18 18 0
8 0
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.