Hello,
syzbot found the following issue on:
HEAD commit: a782303f51d4 white space fixes. no functional change
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=12ab7bba180000
kernel config:
https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link:
https://syzkaller.appspot.com/bug?extid=b1ba3a2a8ef13e5b4698
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/7a46ba34f10f/disk-a782303f.raw.xz
bsd.gdb:
https://storage.googleapis.com/syzbot-assets/fa4416e4719b/bsd-a782303f.gdb.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/f05bcb3f6b77/kernel-a782303f.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+b1ba3a...@syzkaller.appspotmail.com
panic: malformed IPv4 option passed to ip_optcopy
Stopped at db_enter+0x1c: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*442013 73039 0 0 0x4000000 0 syz-executor.4
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198
ip_fragment(fffffd8064434500,ffff8000377baf18,ffff80000019e2a8,5dc) at ip_fragment+0x7b1
ip_output(fffffd8064434500,0,fffffd8074752bc0,22,0,0,2f8fd826e927424b) at ip_output+0xe10 sys/netinet/ip_output.c:478
divert_output(fffffd8074752b48,fffffd8064434500,fffffd8064434300,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174
sosend(fffffd8068614030,fffffd8064434300,ffff8000377bb190,0,0,0) at sosend+0x66d
sendit(ffff80002a61c808,6,ffff8000377bb328,0,ffff8000377bb318) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendmmsg(ffff80002a61c808,ffff8000377bb4d0,ffff8000377bb420) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677
syscall(ffff8000377bb4d0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5aa1fc51830, count: 5
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: malformed IPv4 option passed to ip_optcopy
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198
ip_fragment(fffffd8064434500,ffff8000377baf18,ffff80000019e2a8,5dc) at ip_fragment+0x7b1
ip_output(fffffd8064434500,0,fffffd8074752bc0,22,0,0,2f8fd826e927424b) at ip_output+0xe10 sys/netinet/ip_output.c:478
divert_output(fffffd8074752b48,fffffd8064434500,fffffd8064434300,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174
sosend(fffffd8068614030,fffffd8064434300,ffff8000377bb190,0,0,0) at sosend+0x66d
sendit(ffff80002a61c808,6,ffff8000377bb328,0,ffff8000377bb318) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendmmsg(ffff80002a61c808,ffff8000377bb4d0,ffff8000377bb420) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677
syscall(ffff8000377bb4d0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5aa1fc51830, count: -10
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff8000377bad60
rbx 0x24
rdx 0xffff800000dc2380
rcx 0
rax 0xffff80002a61c808
r8 0
r9 0x8080808080808080
r10 0x70d179625182b98
r11 0xfe31ea711ca74288
r12 0
r13 0x82
r14 0
r15 0x1
rip 0xffffffff818496ac db_enter+0x1c
cs 0x8
rflags 0x246
rsp 0xffff8000377bad50
ss 0x10
db_enter+0x1c: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.4) tid=442013 pid=73039 tcnt=2 stat=onproc
flags process=0 proc=4000000<THREAD>
runpri=32, usrpri=84, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0
forw=0xffffffffffffffff, list=0xffff80002a61c560,0xffff80002a6a2010
process=0xffff8000ffff5500 user=0xffff8000377b6000, vmspace=0xfffffd80698d79b0
estcpu=34, cpticks=0, pctcpu=0.19, user=0, sys=19, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
42477 69500 50424 0 2 0 syz-executor.0
42477 229896 50424 0 2 0x4000000 syz-executor.0
20949 404781 26013 0 2 0 syz-executor.1
20949 278404 26013 0 3 0x4000080 fsleep syz-executor.1
55847 201716 17079 0 2 0 syz-executor.2
55847 312325 17079 0 3 0x4000080 fsleep syz-executor.2
20401 220306 27658 0 2 0 syz-executor.6
20401 74773 27658 0 3 0x4000080 netcon2 syz-executor.6
20401 184047 27658 0 3 0x4000080 fsleep syz-executor.6
73039 386403 71907 0 2 0 syz-executor.4
*73039 442013 71907 0 7 0x4000000 syz-executor.4
27658 502679 54391 0 2 0x482 syz-executor.6
95680 199969 54391 0 2 0x482 syz-executor.5
17079 125140 54391 0 2 0x482 syz-executor.2
71907 333918 54391 0 2 0x482 syz-executor.4
26013 71878 54391 0 2 0x482 syz-executor.1
50424 344362 54391 0 2 0x482 syz-executor.0
31337 95790 54391 0 2 0x2 syz-executor.3
82936 182770 0 0 3 0x14200 acct acct
96582 179307 1 0 3 0x100083 ttyin getty
45000 148766 0 0 3 0x14200 bored sosplice
54391 223126 64376 0 2 0x2000002 syz-fuzzer
54391 429750 64376 0 2 0x6000482 syz-fuzzer
54391 313821 64376 0 3 0x6000082 wait syz-fuzzer
54391 231198 64376 0 3 0x6000082 thrsleep syz-fuzzer
54391 116117 64376 0 3 0x6000082 thrsleep syz-fuzzer
54391 433083 64376 0 3 0x6000082 wait syz-fuzzer
54391 136421 64376 0 3 0x6000082 thrsleep syz-fuzzer
54391 374762 64376 0 3 0x6000082 thrsleep syz-fuzzer
54391 64140 64376 0 3 0x6000082 wait syz-fuzzer
54391 200721 64376 0 3 0x6000082 wait syz-fuzzer
54391 162013 64376 0 3 0x6000082 thrsleep syz-fuzzer
54391 2063 64376 0 3 0x6000082 wait syz-fuzzer
54391 107499 64376 0 3 0x6000082 wait syz-fuzzer
54391 301541 64376 0 3 0x6000082 wait syz-fuzzer
64376 152494 27851 0 3 0x10008a sigsusp ksh
27851 316624 54549 0 3 0x9a kqread sshd
54549 3484 1 0 3 0x88 kqread sshd
65689 261508 10537 73 2 0x1100090 syslogd
10537 226083 1 0 3 0x100082 netio syslogd
71366 131729 1 0 3 0x100080 kqread resolvd
79385 430735 89284 77 3 0x100092 kqread dhcpleased
94941 111631 89284 77 3 0x100092 kqread dhcpleased
89284 54514 1 0 3 0x80 kqread dhcpleased
68057 516704 0 0 2 0x14200 smr
88377 86719 0 0 2 0x14200 zerothread
60779 46474 0 0 3 0x14200 aiodoned aiodoned
69431 63014 0 0 3 0x14200 syncer update
11930 49880 0 0 3 0x14200 cleaner cleaner
18009 158041 0 0 3 0x14200 reaper reaper
25070 509494 0 0 3 0x14200 pgdaemon pagedaemon
85490 82402 0 0 3 0x14200 bored viomb
7554 181355 0 0 3 0x40014200 acpi0 acpi0
60681 164064 0 0 3 0x14200 bored softnet3
46973 340431 0 0 3 0x14200 bored softnet2
31425 280366 0 0 3 0x14200 bored softnet1
92908 26516 0 0 2 0x14200 softnet0
87668 463099 0 0 3 0x14200 bored systqmp
7033 342687 0 0 3 0x14200 bored systq
13247 88159 0 0 2 0x40014200 softclock
78987 93939 0 0 3 0x40014200 idle0
1 109254 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10204 6482K 7085K 166960K 16354 0
pcb 15 20K 23K 166960K 470 0
rtable 221 15K 15K 166960K 1146 0
pf 31 9K 9K 166960K 148 0
ifaddr 45 12K 14K 166960K 169 0
ifgroup 54 2K 2K 166960K 243 0
sysctl 2 0K 0K 166960K 2 0
counters 31 17K 17K 166960K 85 0
ioctlops 0 0K 2K 166960K 366 0
iov 0 0K 18K 166960K 273 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1387 87K 87K 166960K 3747 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 9K 166960K 55 0
VM map 2 1K 1K 166960K 2 0
sem 12 0K 0K 166960K 365 0
dirhash 12 2K 2K 166960K 21 0
ACPI 1697 195K 286K 166960K 12548 0
file desc 15 53K 77K 166960K 3631 0
sigio 0 0K 0K 166960K 98 0
proc 57 59K 83K 166960K 1090 0
subproc 91 5K 6K 166960K 351 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 401 0
in_multi 88 6K 7K 166960K 346 0
ether_multi 1 0K 0K 166960K 3 0
mrt 1 0K 0K 166960K 1 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 217 970K 970K 166960K 217 0
exec 0 0K 1K 166960K 834 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 346 225K 235K 166960K 34616 0
UVM aobj 95 5K 5K 166960K 101 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 94 0
NDP 12 0K 2K 166960K 120 0
temp 70 6763K 6844K 166960K 19462 0
kqueue 12 18K 28K 166960K 249 0
SYN cache 2 16K 16K 166960K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 256 0 253 3 2 1 2 0 8 0
rtentry 112 344 0 245 4 0 4 4 0 8 0
unpcb 144 2688 0 2671 18 12 6 8 0 8 5
syncache 336 40 0 40 2 2 0 1 0 8 0
tcpqe 32 149 0 149 3 2 1 1 0 8 1
tcpcb 808 1039 0 1032 18 9 9 11 0 8 8
arp 88 60 0 44 1 0 1 1 0 8 0
ipq 40 1 0 1 1 1 0 1 0 8 0
ipqe 40 4 0 4 1 1 0 1 0 8 0
inpcb 360 4167 0 4153 28 19 9 16 0 8 7
nd6 104 82 0 61 1 0 1 1 0 8 0
pkpcb 40 12 0 12 3 2 1 1 0 8 1
kcovpl 48 27 0 20 1 0 1 1 0 8 0
ppxss 1072 18 0 18 3 2 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1353 0 941 39 10 29 29 0 8 2
art_table 32 1354 0 941 4 0 4 4 0 8 0
art_node 16 336 0 246 1 0 1 1 0 8 0
sysvmsgpl 40 49 0 9 1 0 1 1 0 8 0
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 112 361 0 351 1 0 1 1 0 8 0
shmpl 112 98 0 6 3 0 3 3 0 8 0
dirhash 1024 23 0 6 3 0 3 3 0 8 0
dino2pl 256 6267 0 4823 91 0 91 91 0 8 0
ffsino 240 6267 0 4823 86 0 86 86 0 8 0
nchpl 144 10986 0 9357 63 0 63 63 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 216 5926 0 0 330 0 330 330 0 8 0
namei 1024 37378 0 37377 3 2 1 3 0 8 0
vcpupl 2048 80 0 0 10 0 10 10 0 8 0
vmpool 664 87 0 7 7 0 7 7 0 8 0
kstatmem 264 132 0 108 2 0 2 2 0 8 0
scxspl 216 36829 0 36829 11 9 2 8 1 8 2
plimitpl 152 318 0 304 1 0 1 1 0 8 0
sigapl 424 3892 0 3848 6 0 6 6 0 8 0
futexpl 64 31866 0 31863 1 0 1 1 0 8 0
knotepl 120 34055 0 33979 17 13 4 11 0 8 1
kqueuepl 184 659 0 651 8 6 2 4 0 8 1
pipepl 288 498 0 473 5 2 3 5 0 8 0
fdescpl 432 3872 0 3846 4 0 4 4 0 8 0
filepl 120 23723 0 23493 25 12 13 16 0 8 5
lockfpl 104 1214 0 1212 3 1 2 2 0 8 1
lockfspl 48 461 0 459 1 0 1 1 0 8 0
sessionpl 144 44 0 29 1 0 1 1 0 8 0
pgrppl 48 100 0 85 1 0 1 1 0 8 0
ucredpl 104 4313 0 4303 1 0 1 1 0 8 0
zombiepl 144 3849 0 3848 1 0 1 1 0 8 0
processpl 1072 3892 0 3848 4 0 4 4 0 8 0
procpl 680 8815 0 8752 9 2 7 7 0 8 1
sosppl 168 29 0 29 1 0 1 1 0 8 1
sockpl 488 7126 0 7092 106 95 11 30 0 8 6
mcl64k 65536 128 0 128 3 2 1 1 0 8 1
mcl16k 16384 77 0 77 3 2 1 1 0 8 1
mcl12k 12288 157 0 157 3 2 1 1 0 8 1
mcl9k 9216 56 0 56 3 2 1 1 0 8 1
mcl8k 8192 863 0 862 3 1 2 2 0 8 1
mcl4k 4096 387 0 387 3 2 1 1 0 8 1
mcl2k2 2112 24 0 24 3 2 1 1 0 8 1
mcl2k 2048 76864 0 76820 33 25 8 30 0 8 2
mtagpl 96 696 0 618 10 2 8 9 0 8 6
mbufpl 256 157607 0 157346 179 153 26 78 0 8 8
bufpl 280 10723 0 4333 457 0 457 457 0 8 0
anonpl 24 590413 0 578654 167 53 114 130 0 188 17
amapchunkpl 152 111113 0 110284 55 10 45 45 0 158 11
amappl16 200 14831 0 14362 81 47 34 46 0 8 7
amappl15 192 12 0 12 1 1 0 1 0 8 0
amappl14 184 213 0 201 2 1 1 2 0 8 0
amappl13 176 22 0 22 3 2 1 1 0 8 1
amappl12 168 4791 0 4762 2 0 2 2 0 8 0
amappl11 160 53 0 43 1 0 1 1 0 8 0
amappl10 152 44 0 34 1 0 1 1 0 8 0
amappl9 144 253 0 251 1 0 1 1 0 8 0
amappl8 136 288 0 227 3 0 3 3 0 8 0
amappl7 128 245 0 221 2 0 2 2 0 8 0
amappl6 120 568 0 559 1 0 1 1 0 8 0
amappl5 112 181 0 173 1 0 1 1 0 8 0
amappl4 104 566 0 543 2 1 1 2 0 8 0
amappl3 96 21871 0 21780 3 0 3 3 0 8 0
amappl2 88 4504 0 4434 3 1 2 3 0 8 0
amappl1 80 23427 0 22929 22 10 12 22 0 8 0
amappl 88 33895 0 33663 6 0 6 6 0 92 0
dma4096 4096 1 0 1 1 1 0 1 0 8 0
dma1024 1024 1 0 0 1 0 1 1 0 8 0
dma256 256 6 0 6 1 1 0 1 0 8 0
dma128 128 253 0 253 1 1 0 1 0 8 0
dma64 64 6 0 6 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 18 0 17 1 0 1 1 0 8 0
aobjpl 72 100 0 6 2 0 2 2 0 8 0
uaddrrnd 24 3959 0 3853 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 3959 0 3853 1 0 1 1 0 8 0
vmmpekpl 168 30618 0 30565 4 0 4 4 0 8 0
vmmpepl 168 257330 0 255040 188 54 134 134 0 357 21
vmsppl 352 3958 0 3853 10 0 10 10 0 8 0
rwobjpl 24 73255 0 65761 47 0 47 47 0 8 0
pdppl 4096 7924 0 7786 344 204 140 148 0 8 2
pvpl 32 1388485 0 1370911 419 191 228 335 0 265 51
pmappl 216 3958 0 3853 7 0 7 7 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 838 0 418 14 0 14 14 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198
ip_fragment(fffffd8064434500,ffff8000377baf18,ffff80000019e2a8,5dc) at ip_fragment+0x7b1
ip_output(fffffd8064434500,0,fffffd8074752bc0,22,0,0,2f8fd826e927424b) at ip_output+0xe10 sys/netinet/ip_output.c:478
divert_output(fffffd8074752b48,fffffd8064434500,fffffd8064434300,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174
sosend(fffffd8068614030,fffffd8064434300,ffff8000377bb190,0,0,0) at sosend+0x66d
sendit(ffff80002a61c808,6,ffff8000377bb328,0,ffff8000377bb318) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendmmsg(ffff80002a61c808,ffff8000377bb4d0,ffff8000377bb420) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677
syscall(ffff8000377bb4d0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5aa1fc51830, count: -10
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198
ip_fragment(fffffd8064434500,ffff8000377baf18,ffff80000019e2a8,5dc) at ip_fragment+0x7b1
ip_output(fffffd8064434500,0,fffffd8074752bc0,22,0,0,2f8fd826e927424b) at ip_output+0xe10 sys/netinet/ip_output.c:478
divert_output(fffffd8074752b48,fffffd8064434500,fffffd8064434300,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174
sosend(fffffd8068614030,fffffd8064434300,ffff8000377bb190,0,0,0) at sosend+0x66d
sendit(ffff80002a61c808,6,ffff8000377bb328,0,ffff8000377bb318) at sendit+0x65d sys/kern/uipc_syscalls.c:786
sys_sendmmsg(ffff80002a61c808,ffff8000377bb4d0,ffff8000377bb420) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677
syscall(ffff8000377bb4d0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x5aa1fc51830, count: -10
---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup