panic: ifa_update_broadaddr does not support dynamic length (2)

已查看 0 次
跳至第一个未读帖子

syzbot

未读,
2020年3月3日 15:05:142020/3/3
收件人 syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: af3cc7ce previous commit accidentally aliased two unique t..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=101eb291e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=323549177062adb80f84

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+323549...@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
117742 81562 0 0 0 1 syz-executor.1
*239024 81562 0 0 0x4000000 0K syz-executor.1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff822733d0) at panic+0x15c sys/kern/subr_prf.c:207
ifa_update_broadaddr(ffff800000a24000,ffff800000a31700,ffff800021b8f710) at ifa_update_broadaddr+0x61 sys/net/if.c:3077
in_ioctl(80206913,ffff800021b8f700,ffff800000a24000,1) at in_ioctl+0x5eb sys/netinet/in.c:320
ifioctl(fffffd8071938c90,80206913,ffff800021b8f700,ffff800020ad7128) at ifioctl+0xe70 sys/net/if.c:2290
soo_ioctl(fffffd8066df0c90,80206913,ffff800021b8f700,ffff800020ad7128) at soo_ioctl+0x27c sys/kern/sys_socket.c:138
sys_ioctl(ffff800020ad7128,ffff800021b8f818,ffff800021b8f860) at sys_ioctl+0x4a5
syscall(ffff800021b8f8e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021b8f8e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xec99926abd0, count: 6
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{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
ifa_update_broadaddr does not support dynamic length
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff822733d0) at panic+0x15c sys/kern/subr_prf.c:207
ifa_update_broadaddr(ffff800000a24000,ffff800000a31700,ffff800021b8f710) at ifa_update_broadaddr+0x61 sys/net/if.c:3077
in_ioctl(80206913,ffff800021b8f700,ffff800000a24000,1) at in_ioctl+0x5eb sys/netinet/in.c:320
ifioctl(fffffd8071938c90,80206913,ffff800021b8f700,ffff800020ad7128) at ifioctl+0xe70 sys/net/if.c:2290
soo_ioctl(fffffd8066df0c90,80206913,ffff800021b8f700,ffff800020ad7128) at soo_ioctl+0x27c sys/kern/sys_socket.c:138
sys_ioctl(ffff800020ad7128,ffff800021b8f818,ffff800021b8f860) at sys_ioctl+0x4a5
syscall(ffff800021b8f8e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800021b8f8e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xec99926abd0, count: -9
ddb{0}> show registers
rdi 0xffffffff81722db7 db_enter+0x17
rsi 0x15ab __ALIGN_SIZE+0x5ab
rbp 0xffff800021b8f430
rbx 0xffff800021b8f4e0
rdx 0x15ac __ALIGN_SIZE+0x5ac
rcx 0xffff800022d90000
rax 0xffff800022d90000
r8 0xffffffff820becdf kprintf+0x16f
r9 0x1
r10 0x25
r11 0x29537dea8a6dbf27
r12 0x3000000008
r13 0xffff800021b8f440
r14 0x100
r15 0x1
rip 0xffffffff81722db8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800021b8f420
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.1) pid=239024 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=74, usrpri=74, nice=20
forw=0xffffffffffffffff, list=0xffff800020ad6c48,0xffffffff826395b0
process=0xffff800020a932e0 user=0xffff800021b8a000, vmspace=0xfffffd807f000b80
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
81562 117742 87569 0 7 0 syz-executor.1
*81562 239024 87569 0 7 0x4000000 syz-executor.1
20144 39709 17944 0 2 0 syz-executor.0
20144 455706 17944 0 3 0x4000080 fsleep syz-executor.0
11406 216281 0 0 3 0x14200 bored sosplice
87569 292058 39944 0 3 0x82 nanosleep syz-executor.1
17944 282530 39944 0 3 0x82 nanosleep syz-executor.0
39944 182999 65061 0 3 0x82 thrsleep syz-fuzzer
39944 504962 65061 0 3 0x4000082 nanosleep syz-fuzzer
39944 340420 65061 0 3 0x4000082 kqread syz-fuzzer
39944 310142 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 281698 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 203443 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 404861 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 182721 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 264024 65061 0 3 0x4000082 thrsleep syz-fuzzer
39944 354448 65061 0 3 0x4000082 thrsleep syz-fuzzer
65061 518328 23096 0 3 0x10008a pause ksh
23096 131348 11873 0 3 0x92 select sshd
78780 9404 1 0 3 0x100083 ttyin getty
11873 102450 1 0 3 0x80 select sshd
89225 384858 43800 74 3 0x100092 bpf pflogd
43800 349860 1 0 3 0x80 netio pflogd
99778 397218 64385 73 3 0x100090 kqread syslogd
64385 469462 1 0 3 0x100082 netio syslogd
73638 230206 1 77 3 0x100090 poll dhclient
71780 318713 1 0 3 0x80 poll dhclient
68803 93000 0 0 3 0x14200 bored smr
23745 481738 0 0 2 0x14200 zerothread
41731 444404 0 0 3 0x14200 aiodoned aiodoned
39389 252534 0 0 3 0x14200 syncer update
54367 364647 0 0 3 0x14200 cleaner cleaner
72456 192016 0 0 3 0x14200 reaper reaper
11282 72819 0 0 3 0x14200 pgdaemon pagedaemon
82995 220913 0 0 3 0x14200 bored crynlk
31248 367796 0 0 3 0x14200 bored crypto
21157 191439 0 0 3 0x40014200 acpi0 acpi0
38266 155509 0 0 3 0x40014200 idle1
43272 158953 0 0 3 0x14200 bored softnet
79478 493387 0 0 3 0x14200 bored systqmp
22839 220985 0 0 3 0x14200 bored systq
25341 62767 0 0 3 0x40014200 bored softclock
90467 2609 0 0 3 0x40014200 idle0
1 123561 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 81562 (syz-executor.1) thread 0xffff800020ad7128 (239024)
exclusive rwlock netlock r = 0 (0xffffffff824f01d8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 in_ioctl+0x1f5
#2 ifioctl+0xe70 sys/net/if.c:2290
#3 soo_ioctl+0x27c sys/kern/sys_socket.c:138
#4 sys_ioctl+0x4a5
#5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#6 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82662ab0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1164
#1 soo_ioctl+0x26a sys/kern/sys_socket.c:138
#2 sys_ioctl+0x4a5
#3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#4 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9521 6424K 7387K 78643K 11658 0
pcb 13 9K 10K 78643K 508 0
rtable 112 4K 4K 78643K 304 0
ifaddr 79 16K 16K 78643K 137 0
counters 43 33K 34K 78643K 63 0
ioctlops 0 0K 4K 78643K 1487 0
iov 0 0K 16K 78643K 65 0
mount 1 1K 1K 78643K 1 0
vnodes 1228 77K 78K 78643K 1531 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 4 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 71 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 6 17K 25K 78643K 349 0
sigio 0 0K 0K 78643K 6 0
proc 63 63K 95K 78643K 491 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 806 0
in_multi 65 3K 3K 78643K 168 0
ether_multi 1 0K 0K 78643K 14 0
mrt 0 0K 0K 78643K 6 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 55 254K 254K 78643K 55 0
exec 0 0K 1K 78643K 248 0
pagedep 1 8K 8K 78643K 1 0
inodedep 1 32K 32K 78643K 1 0
newblk 1 0K 0K 78643K 1 0
VM swap 7 26K 26K 78643K 7 0
UVM amap 123 55K 64K 78643K 2209 0
UVM aobj 27 2K 2K 78643K 28 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 67 0
NDP 12 0K 0K 78643K 26 0
temp 133 3026K 3094K 78643K 13382 0
kqueue 3 4K 20K 78643K 60 0
SYN cache 2 16K 16K 78643K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 7 0 1 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 53 0 51 1 0 1 1 0 8 0
rtentry 112 53 0 7 2 0 2 2 0 8 0
unpcb 120 353 0 343 1 0 1 1 0 8 0
syncache 264 7 0 7 2 2 0 1 0 8 0
tcpqe 32 802 0 802 1 1 0 1 0 8 0
tcpcb 544 614 0 608 4 1 3 3 0 8 2
inpcb 280 1419 0 1409 4 1 3 3 0 8 2
rttmr 72 2 0 2 1 1 0 1 0 8 0
ip6q 72 1 0 1 1 0 1 1 0 8 1
ip6af 40 3 0 3 1 0 1 1 0 8 1
nd6 48 7 0 1 1 0 1 1 0 8 0
pkpcb 40 1 0 1 1 1 0 1 0 8 0
ppxss 1128 4 0 4 1 1 0 1 0 8 0
pffrag 232 10 0 10 2 1 1 1 0 482 1
pffrnode 88 10 0 10 2 1 1 1 0 8 1
pffrent 40 408 0 408 2 1 1 1 0 8 1
pfosfp 40 846 0 423 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 54 0 8 1 0 1 1 0 8 0
pfstkey 112 54 0 8 2 0 2 2 0 8 0
pfstate 328 54 0 8 4 0 4 4 0 8 0
pfrule 1360 21 0 16 2 1 1 2 0 8 0
art_heap8 4096 2 0 0 2 0 2 2 0 8 0
art_heap4 256 219 0 17 14 0 14 14 0 8 0
art_table 32 221 0 17 2 0 2 2 0 8 0
art_node 16 52 0 10 1 0 1 1 0 8 0
sysvmsgpl 40 26 0 11 1 0 1 1 0 8 0
semupl 112 3 0 3 1 1 0 1 0 8 0
semapl 112 67 0 57 1 0 1 1 0 8 0
shmpl 112 26 0 1 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1941 0 535 46 0 46 46 0 8 0
ffsino 272 1941 0 535 95 0 95 95 0 8 0
nchpl 144 2751 0 1131 61 0 61 61 0 8 0
uvmvnodes 72 2223 0 0 41 0 41 41 0 8 0
vnodes 208 2223 0 0 117 0 117 117 0 8 0
namei 1024 7997 0 7997 1 0 1 1 0 8 1
percpumem 16 42 0 10 1 0 1 1 0 8 0
vcpupl 1984 4 0 0 1 0 1 1 0 8 0
vmpool 560 10 0 6 1 0 1 1 0 8 0
scxspl 192 8303 0 8303 5 4 1 4 0 8 1
plimitpl 152 39 0 31 1 0 1 1 0 8 0
sigapl 424 565 0 532 4 0 4 4 0 8 0
futexpl 56 9271 0 9270 1 0 1 1 0 8 0
knotepl 112 146 0 127 1 0 1 1 0 8 0
kqueuepl 144 187 0 185 1 0 1 1 0 8 0
pipelkpl 48 165 0 155 1 0 1 1 0 8 0
pipepl 120 330 0 311 2 0 2 2 0 8 1
fdescpl 496 549 0 532 3 0 3 3 0 8 0
filepl 152 5033 0 4932 6 0 6 6 0 8 2
lockfpl 104 102 0 101 1 0 1 1 0 8 0
lockfspl 48 39 0 38 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 454 0 444 1 0 1 1 0 8 0
zombiepl 144 532 0 532 1 0 1 1 0 8 1
processpl 960 565 0 532 5 0 5 5 0 8 0
procpl 624 1430 0 1386 4 0 4 4 0 8 0
sosppl 128 17 0 17 1 1 0 1 0 8 0
sockpl 400 1880 0 1858 8 3 5 6 0 8 2
mcl64k 65536 14 0 0 2 0 2 2 0 8 0
mcl16k 16384 4 0 0 1 0 1 1 0 8 0
mcl12k 12288 5 0 0 1 0 1 1 0 8 0
mcl9k 9216 2 0 0 1 0 1 1 0 8 0
mcl8k 8192 9 0 0 2 0 2 2 0 8 0
mcl4k 4096 10 0 0 2 0 2 2 0 8 0
mcl2k2 2112 4 0 0 1 0 1 1 0 8 0
mcl2k 2048 216 0 0 26 0 26 26 0 8 0
mtagpl 80 94 0 0 2 0 2 2 0 8 0
mbufpl 256 477 0 0 28 0 28 28 0 8 0
bufpl 280 4847 0 185 333 0 333 333 0 8 0
anonpl 16 67939 0 50704 85 7 78 78 0 124 8
amapchunkpl 152 3344 0 3204 16 5 11 11 0 158 5
amappl16 192 2500 0 1550 51 3 48 51 0 8 0
amappl15 184 167 0 164 1 0 1 1 0 8 0
amappl14 176 4 0 3 2 1 1 1 0 8 0
amappl13 168 176 0 173 1 0 1 1 0 8 0
amappl12 160 11 0 9 1 0 1 1 0 8 0
amappl11 152 67 0 49 1 0 1 1 0 8 0
amappl10 144 15 0 12 1 0 1 1 0 8 0
amappl9 136 389 0 386 1 0 1 1 0 8 0
amappl8 128 342 0 312 2 0 2 2 0 8 0
amappl7 120 121 0 108 1 0 1 1 0 8 0
amappl6 112 27 0 22 2 1 1 1 0 8 0
amappl5 104 303 0 287 1 0 1 1 0 8 0
amappl4 96 660 0 629 1 0 1 1 0 8 0
amappl3 88 279 0 269 1 0 1 1 0 8 0
amappl2 80 3621 0 3542 3 1 2 3 0 8 0
amappl1 72 22110 0 21660 25 15 10 20 0 8 0
amappl 80 1680 0 1633 2 0 2 2 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
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 64 27 0 1 1 0 1 1 0 8 0
uaddrrnd 24 559 0 538 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 559 0 538 1 0 1 1 0 8 0
vmmpekpl 168 7898 0 7859 2 0 2 2 0 8 0
vmmpepl 168 74674 0 72460 124 26 98 117 0 357 1
vmsppl 368 558 0 538 2 0 2 2 0 8 0
pdppl 4096 1126 0 1080 6 0 6 6 0 8 0
pvpl 32 215684 0 195236 195 9 186 186 0 265 19
pmappl 232 558 0 538 2 0 2 2 0 8 0
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 204 0 7 6 0 6 6 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.
回复全部
回复作者
转发
0 个新帖子