Hello,
syzbot found the following crash on:
HEAD commit: 4f5a6e71 If the requensted block size is too large, then u..
git tree: openbsd
console output:
https://syzkaller.appspot.com/x/log.txt?x=16fdaf15600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=d0fe83f82fe104d4
dashboard link:
https://syzkaller.appspot.com/bug?extid=5fc6da002fc4e8d994be
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+5fc6da...@syzkaller.appspotmail.com
panic: ifa_update_broadaddr does not support dynamic length
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*415378 49867 0 0 0x4000000 0 syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
ifa_update_broadaddr(ffff800000ab0000,ffff800000b28000,ffff800014914660) at
ifa_update_broadaddr+0x61 sys/net/if.c:2970
in_ioctl(80206913,ffff800014914650,ffff800000ab0000,1) at in_ioctl+0x463
sys/netinet/in.c:299
ifioctl(fffffd803d265c00,80206913,ffff800014914650,ffff8000149333d8) at
ifioctl+0xb34 sys/net/if.c:2202
sys_ioctl(ffff8000149333d8,ffff800014914768,ffff8000149147b0) at
sys_ioctl+0x5b9
syscall(ffff800014914830) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff36,0,3,ed3b1090010) at Xsyscall+0x128
end of kernel
end trace frame: 0xed6a4863570, count: 7
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
ifa_update_broadaddr does not support dynamic length
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
ifa_update_broadaddr(ffff800000ab0000,ffff800000b28000,ffff800014914660) at
ifa_update_broadaddr+0x61 sys/net/if.c:2970
in_ioctl(80206913,ffff800014914650,ffff800000ab0000,1) at in_ioctl+0x463
sys/netinet/in.c:299
ifioctl(fffffd803d265c00,80206913,ffff800014914650,ffff8000149333d8) at
ifioctl+0xb34 sys/net/if.c:2202
sys_ioctl(ffff8000149333d8,ffff800014914768,ffff8000149147b0) at
sys_ioctl+0x5b9
syscall(ffff800014914830) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall(6,0,ffffffffffffff36,0,3,ed3b1090010) at Xsyscall+0x128
end of kernel
end trace frame: 0xed6a4863570, count: -8
ddb> show registers
rdi 0xffffffff8118e297 db_enter+0x17
rsi 0x1d0c __ALIGN_SIZE+0xd0c
rbp 0xffff8000149143f0
rbx 0xffff8000149144a0
rdx 0x1d0d __ALIGN_SIZE+0xd0d
rcx 0xffff800015957000
rax 0xffff800015957000
r8 0xffff8000149143b0
r9 0x1
r10 0xffff800000a62400
r11 0x44b9c85f25534977
r12 0x3000000008
r13 0xffff800014914400
r14 0x100
r15 0x1
rip 0xffffffff8118e298 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000149143e0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.1) pid=415378 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=50, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff8000149329f8,0xffffffff825545b0
process=0xffff8000148a2a38 user=0xffff80001490f000,
vmspace=0xfffffd803f013440
estcpu=0, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
49867 522210 4787 0 2 0 syz-executor.1
*49867 415378 4787 0 7 0x4000000 syz-executor.1
4787 346044 44504 0 3 0x82 nanosleep syz-executor.1
4557 314178 44504 0 3 0x82 nanosleep syz-executor.0
78355 248864 1 0 3 0x100083 ttyin getty
25969 482285 0 0 3 0x14200 bored sosplice
44504 299460 64871 0 3 0x82 thrsleep syz-fuzzer
44504 282885 64871 0 3 0x4000082 nanosleep syz-fuzzer
44504 212469 64871 0 3 0x4000082 kqread syz-fuzzer
44504 69325 64871 0 3 0x4000082 thrsleep syz-fuzzer
44504 296639 64871 0 3 0x4000082 thrsleep syz-fuzzer
44504 5758 64871 0 3 0x4000082 thrsleep syz-fuzzer
44504 13751 64871 0 3 0x4000082 thrsleep syz-fuzzer
64871 483406 17817 0 3 0x10008a pause ksh
17817 513218 5531 0 3 0x92 select sshd
5531 47299 1 0 3 0x80 select sshd
12424 120061 99495 73 2 0x100010 syslogd
99495 465954 1 0 3 0x100082 netio syslogd
59783 142575 1 77 3 0x100090 poll dhclient
56084 474736 1 0 3 0x80 poll dhclient
36285 436747 0 0 2 0x14200 zerothread
70450 299700 0 0 3 0x14200 aiodoned aiodoned
69446 343851 0 0 3 0x14200 syncer update
27526 70558 0 0 3 0x14200 cleaner cleaner
35522 89829 0 0 3 0x14200 reaper reaper
4351 487068 0 0 3 0x14200 pgdaemon pagedaemon
46877 303784 0 0 3 0x14200 bored crynlk
3301 182887 0 0 3 0x14200 bored crypto
66136 260232 0 0 3 0x40014200 acpi0 acpi0
65323 24434 0 0 3 0x14200 bored softnet
48555 509991 0 0 3 0x14200 bored systqmp
5193 61690 0 0 3 0x14200 bored systq
35683 367499 0 0 3 0x40014200 bored softclock
26506 346583 0 0 3 0x40014200 idle0
98943 477500 0 0 3 0x14200 bored smr
1 345870 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 Kern Lim
devbuf 9549 6502K 6973K 78643K 13195 0 0
pcb 13 8K 8K 78643K 160 0 0
rtable 115 12K 12K 78643K 747 0 0
ifaddr 66 14K 14K 78643K 209 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 50 0 0
iov 0 0K 32K 78643K 126 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1214 76K 77K 78643K 2320 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 19 0 0
VM map 2 0K 0K 78643K 2 0 0
sem 12 1K 1K 78643K 14 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1793 195K 288K 78643K 12645 0 0
file desc 5 13K 25K 78643K 1264 0 0
sigio 0 0K 0K 78643K 8 0 0
proc 48 38K 63K 78643K 821 0 0
subproc 32 2K 2K 78643K 187 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 153 0 0
in_multi 33 2K 2K 78643K 171 0 0
ether_multi 1 0K 0K 78643K 5 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 174 768K 768K 78643K 174 0 0
exec 0 0K 1K 78643K 392 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 100 21K 30K 78643K 3903 0 0
UVM aobj 79 3K 3K 78643K 81 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 115 0 0
NDP 18 0K 0K 78643K 67 0 0
temp 184 3531K 3600K 78643K 21867 0 0
kqueue 0 0K 0K 78643K 6 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 24 0 18 1 0 1 1 0
8 0
rtpcb 80 127 0 125 1 0 1 1 0
8 0
rtentry 112 137 0 93 2 0 2 2 0
8 0
unpcb 120 579 0 571 2 1 1 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 5895 0 5895 1 1 0 1 0
8 0
tcpcb 544 258 0 254 1 0 1 1 0
8 0
ipq 40 1 0 1 1 1 0 1 0
8 0
ipqe 40 2 0 2 1 1 0 1 0
8 0
inpcb 280 816 0 808 4 3 1 2 0
8 0
nd6 48 22 0 18 1 0 1 1 0
8 0
pkpcb 40 4 0 4 2 2 0 1 0
8 0
swfcl 56 2 0 0 1 0 1 1 0
8 0
ppxss 1128 20 0 20 5 5 0 1 0
8 0
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 614 0 400 14 0 14 14 0
8 0
art_table 32 615 0 400 2 0 2 2 0
8 0
art_node 16 134 0 94 1 0 1 1 0
8 0
sysvmsgpl 40 20 0 12 2 1 1 1 0
8 0
semupl 112 4 0 4 1 1 0 1 0
8 0
semapl 112 10 0 0 1 0 1 1 0
8 0
shmpl 112 79 0 2 3 0 3 3 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 3168 0 1780 46 0 46 46 0
8 0
ffsino 240 3168 0 1780 83 0 83 83 0
8 0
nchpl 144 5748 0 4150 60 0 60 60 0
8 0
uvmvnodes 72 3988 0 0 73 0 73 73 0
8 0
vnodes 208 3988 0 0 210 0 210 210 0
8 0
namei 1024 18030 0 18030 6 5 1 1 0
8 1
scsiplug 64 4 0 4 3 3 0 1 0
8 0
scxspl 192 24104 0 24104 11 10 1 7 0
8 1
plimitpl 152 135 0 128 1 0 1 1 0
8 0
sigapl 432 1409 0 1396 2 0 2 2 0
8 0
futexpl 56 24543 0 24543 6 5 1 1 0
8 1
knotepl 112 474 0 455 4 3 1 2 0
8 0
kqueuepl 104 256 0 254 1 0 1 1 0
8 0
pipepl 112 892 0 873 7 6 1 2 0
8 0
fdescpl 424 1410 0 1396 2 0 2 2 0
8 0
filepl 120 10472 0 10376 9 6 3 7 0
8 0
lockfpl 104 336 0 335 1 0 1 1 0
8 0
lockfspl 48 112 0 111 1 0 1 1 0
8 0
sessionpl 112 27 0 17 1 0 1 1 0
8 0
pgrppl 48 57 0 47 1 0 1 1 0
8 0
ucredpl 96 1560 0 1553 1 0 1 1 0
8 0
zombiepl 144 1396 0 1395 3 2 1 1 0
8 0
processpl 864 1425 0 1395 4 0 4 4 0
8 0
procpl 632 2802 0 2765 4 0 4 4 0
8 0
sosppl 128 11 0 11 6 6 0 1 0
8 0
sockpl 384 1537 0 1519 11 8 3 7 0
8 1
mcl64k 65536 28 0 28 6 6 0 1 0
8 0
mcl16k 16384 7 0 7 7 7 0 1 0
8 0
mcl12k 12288 16 0 16 6 6 0 1 0
8 0
mcl9k 9216 10 0 10 5 5 0 1 0
8 0
mcl8k 8192 17 0 17 6 6 0 1 0
8 0
mcl4k 4096 92 0 92 4 4 0 1 0
8 0
mcl2k2 2112 12 0 12 5 5 0 1 0
8 0
mcl2k 2048 51795 0 51748 22 15 7 14 0
8 1
mtagpl 80 35 0 33 3 2 1 1 0
8 0
mbufpl 256 91351 0 91243 17 9 8 9 0
8 0
bufpl 256 10238 0 4135 383 1 382 382 0
8 0
anonpl 16 153335 0 142750 108 44 64 73 0
62 4
amapchunkpl 152 6865 0 6758 19 13 6 10 0
158 1
amappl16 192 6938 0 6135 86 36 50 53 0
8 8
amappl15 184 35 0 35 2 2 0 1 0
8 0
amappl14 176 481 0 478 2 1 1 1 0
8 0
amappl13 168 220 0 218 1 0 1 1 0
8 0
amappl12 160 164 0 161 1 0 1 1 0
8 0
amappl11 152 230 0 219 1 0 1 1 0
8 0
amappl10 144 19 0 19 2 2 0 1 0
8 0
amappl9 136 856 0 849 1 0 1 1 0
8 0
amappl8 128 357 0 330 1 0 1 1 0
8 0
amappl7 120 82 0 76 1 0 1 1 0
8 0
amappl6 112 248 0 237 1 0 1 1 0
8 0
amappl5 104 357 0 347 1 0 1 1 0
8 0
amappl4 96 1742 0 1713 1 0 1 1 0
8 0
amappl3 88 229 0 222 1 0 1 1 0
8 0
amappl2 80 9763 0 9694 4 2 2 3 0
8 0
amappl1 72 35399 0 35002 28 19 9 20 0
8 0
amappl 80 3174 0 3138 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 80 0 2 2 0 2 2 0
8 0
uaddrrnd 24 1410 0 1396 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 1410 0 1396 1 0 1 1 0
8 0
vmmpekpl 168 13080 0 13059 2 0 2 2 0
8 0
vmmpepl 168 172943 0 171110 215 103 112 112 0 357
29
vmsppl 272 1409 0 1396 3 1 2 2 0
8 1
pdppl 4096 2826 0 2792 6 1 5 6 0
8 0
pvpl 32 549982 0 536310 400 155 245 280 0 265
102
pmappl 200 1409 0 1396 1 0 1 1 0
8 0
extentpl 40 41 0 26 1 0 1 1 0
8 0
phpool 112 564 0 57 15 0 15 15 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.