oLE餢! ']FL4<ìBUf(EcG8 qjcޖ80KY~޶'<8G&YrvdMmF'@H2]mc%HĹ8<1wq ~}[``{ cHϽn૝Z%w-hOT8lJ NzK_7p, :o6_oO%XFd驪&\sӐ3Ȟqk5 ׆b^4:c+oLE餢! ']FL4<ìBUf(EcG8 qjcޖ80KY~޶'<8G&YrvdMmF'@H2]mc%HĹ8<1wq ~}[``{ cHϽn૝Z%w-hOT8lJ NzK_7p, :o6_oO%XFd驪&\sӐ3Ȟqk5 ׆b^4:c+panic: mallocarray: overflow 18446744071562067968 * 8 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 300794 33804 0 0 0 1 syz-executor.0 *448868 33804 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 intel_set_memory_cxsr(ffffffff80000000,8) at intel_set_memory_cxsr wsmux_getmux(7fffffff) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(7fffffff,ffff800000026d00) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd806448ede0,80085761,ffff800020c49350,c3,fffffd807f7c6ba0,ffff800020b8b9e0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd806669bc90,80085761,ffff800020c49350,ffff800020b8b9e0) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b8b9e0,ffff800020c49498,ffff800020c49480) at sys_ioctl+0x651 syscall(ffff800020c49530) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c49530) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff86,0,3,8ac1ad45010) at Xsyscall+0x128 end of kernel end trace frame: 0x8af08d92710, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic mallocarray: overflow 18446744071562067968 * 8 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x174 sys/kern/subr_prf.c:208 intel_set_memory_cxsr(ffffffff80000000,8) at intel_set_memory_cxsr wsmux_getmux(7fffffff) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(7fffffff,ffff800000026d00) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd806448ede0,80085761,ffff800020c49350,c3,fffffd807f7c6ba0,ffff800020b8b9e0) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd806669bc90,80085761,ffff800020c49350,ffff800020b8b9e0) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff800020b8b9e0,ffff800020c49498,ffff800020c49480) at sys_ioctl+0x651 syscall(ffff800020c49530) at syscall+0x5b8 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c49530) at syscall+0x5b8 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffff86,0,3,8ac1ad45010) at Xsyscall+0x128 end of kernel end trace frame: 0x8af08d92710, count: -10 ddb{0}> show registers rdi 0xffffffff817432d7 db_enter+0x17 rsi 0x144b __ALIGN_SIZE+0x44b rbp 0xffff800020c48f90 rbx 0xffff800020c49040 rdx 0x144c __ALIGN_SIZE+0x44c rcx 0xffff800000966000 rax 0xffff800000966000 r8 0xffffffff81b5c743 kprintf+0x183 r9 0x1 r10 0x25 r11 0xa4e1ab26f079b4e4 r12 0x3000000008 r13 0xffff800020c48fa0 r14 0x100 r15 0x1 rip 0xffffffff817432d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c48f80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=448868 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020b8a978,0xffff800020b8bc48 process=0xffff800020b7c018 user=0xffff800020c44000, vmspace=0xfffffd807f00b708 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86077 397282 66067 0 2 0 syz-executor.1 33804 300794 74457 0 7 0 syz-executor.0 *33804 448868 74457 0 7 0x4000000 syz-executor.0 66067 503343 33558 0 2 0x2 syz-executor.1 18043 328131 0 0 3 0x14200 bored sosplice 163 312819 1 0 3 0x100083 ttyin getty 74457 138637 33558 0 3 0x82 nanosleep syz-executor.0 33558 298123 75644 0 3 0x82 thrsleep syz-fuzzer 33558 62898 75644 0 3 0x4000082 nanosleep syz-fuzzer 33558 271033 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 192521 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 364689 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 466773 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 470232 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 132755 75644 0 3 0x4000082 thrsleep syz-fuzzer 33558 390623 75644 0 3 0x4000082 kqread syz-fuzzer 33558 17062 75644 0 3 0x4000082 thrsleep syz-fuzzer 75644 176815 54126 0 3 0x10008a pause ksh 54126 234562 65332 0 3 0x92 select sshd 65332 409109 1 0 3 0x80 select sshd 68586 492605 18613 74 3 0x100092 bpf pflogd 18613 450807 1 0 3 0x80 netio pflogd 18314 325093 66249 73 3 0x100090 kqread syslogd 66249 334577 1 0 3 0x100082 netio syslogd 35230 249246 1 77 3 0x100090 poll dhclient 44519 310729 1 0 3 0x80 poll dhclient 14616 223132 0 0 2 0x14200 zerothread 5717 23289 0 0 3 0x14200 aiodoned aiodoned 20311 385206 0 0 3 0x14200 syncer update 9789 238882 0 0 3 0x14200 cleaner cleaner 27569 449137 0 0 3 0x14200 reaper reaper 95461 341241 0 0 3 0x14200 pgdaemon pagedaemon 88190 339104 0 0 3 0x14200 bored crynlk 99460 11390 0 0 3 0x14200 bored crypto 4665 283943 0 0 3 0x40014200 acpi0 acpi0 15046 162065 0 0 3 0x40014200 idle1 27699 352060 0 0 3 0x14200 bored softnet 75536 108792 0 0 3 0x14200 bored systqmp 46333 61369 0 0 3 0x14200 bored systq 85891 64339 0 0 3 0x40014200 bored softclock 3108 354868 0 0 3 0x40014200 idle0 99969 222790 0 0 3 0x14200 bored smr 1 398035 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33804 (syz-executor.0) thread 0xffff800020b8b9e0 (448868) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82346f00) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 #0 witness_lock+0x594 sys/kern/subr_witness.c:1201 #1 syscall+0x48b mi_syscall sys/sys/syscall_mi.h:91 [inline] #1 syscall+0x48b sys/arch/amd64/amd64/trap.c:574 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9529 6424K 6424K 78643K 10750 0 0 pcb 25 9K 11K 78643K 320 0 0 rtable 100 3K 4K 78643K 320 0 0 ifaddr 62 13K 13K 78643K 112 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1478 0 0 iov 0 0K 32K 78643K 53 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 76K 78643K 1407 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 64 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 21K 78643K 367 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 53 50K 83K 78643K 449 0 0 subproc 64 65538K 67586K 78643K 136 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 35 0 0 in_multi 33 2K 2K 78643K 73 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 248 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 85 20K 29K 78643K 2024 0 0 UVM aobj 6 2K 2K 78643K 12 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 16 0 0 NDP 13 0K 0K 78643K 32 0 0 temp 161 2371K 2439K 78643K 4302 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 6 0 2 1 0 1 1 0 8 0 inpcbpl 280 227 0 220 2 0 2 2 0 8 1 plimitpl 152 30 0 22 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 60 0 20 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 76 0 72 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 4 1 0 1 1 0 8 0 ppxss 1128 8 0 8 1 0 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 21 0 7 1 0 1 1 0 8 0 pfstkey 112 21 0 7 1 0 1 1 0 8 0 pfstate 328 21 0 7 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 271 0 82 12 0 12 12 0 8 0 art_table 32 272 0 82 2 0 2 2 0 8 0 art_node 16 59 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 62 0 52 1 0 1 1 0 8 0 shmpl 112 10 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2070 0 636 47 0 47 47 0 8 0 ffsino 272 2070 0 636 97 0 97 97 0 8 0 nchpl 144 2835 0 1196 61 0 61 61 0 8 0 uvmvnodes 72 2186 0 0 40 0 40 40 0 8 0 vnodes 200 2186 0 0 116 0 116 116 0 8 0 namei 1024 8132 0 8132 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 7800 0 7800 7 6 1 6 0 8 1 sigapl 432 561 0 545 2 0 2 2 0 8 0 futexpl 56 4297 0 4297 1 0 1 1 0 8 1 knotepl 112 136 0 117 1 0 1 1 0 8 0 kqueuepl 104 102 0 100 1 0 1 1 0 8 0 pipepl 112 432 0 413 4 3 1 2 0 8 0 fdescpl 488 562 0 545 3 0 3 3 0 8 0 filepl 152 3367 0 3267 7 2 5 6 0 8 1 lockfpl 104 154 0 154 2 1 1 1 0 8 1 lockfspl 32 135 0 135 2 1 1 1 0 8 1 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 570 0 561 1 0 1 1 0 8 0 zombiepl 144 545 0 545 2 1 1 1 0 8 1 processpl 840 578 0 545 4 0 4 4 0 8 0 procpl 600 1311 0 1268 4 0 4 4 0 8 0 srpgc 64 13 0 13 1 1 0 1 0 8 0 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 384 482 0 463 4 1 3 4 0 8 1 mcl64k 65536 229 0 0 29 0 29 29 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 305 0 0 19 0 19 19 0 8 0 bufpl 256 6585 0 1147 340 0 340 340 0 8 0 anonpl 16 64151 0 55523 50 11 39 45 0 125 4 amapchunkpl 152 2926 0 2836 9 1 8 9 0 158 3 amappl16 192 2372 0 1920 35 11 24 33 0 8 1 amappl15 184 64 0 60 1 0 1 1 0 8 0 amappl14 176 26 0 24 2 1 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 16 0 15 1 0 1 1 0 8 0 amappl11 152 169 0 151 1 0 1 1 0 8 0 amappl10 144 267 0 261 1 0 1 1 0 8 0 amappl9 136 589 0 586 1 0 1 1 0 8 0 amappl8 128 144 0 128 1 0 1 1 0 8 0 amappl7 120 142 0 137 1 0 1 1 0 8 0 amappl6 112 199 0 190 1 0 1 1 0 8 0 amappl5 104 122 0 107 1 0 1 1 0 8 0 amappl4 96 793 0 763 2 1 1 2 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 3751 0 3697 2 0 2 2 0 8 0 amappl1 72 21853 0 21410 25 15 10 20 0 8 0 amappl 72 1572 0 1535 1 0 1 1 0 75 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 11 0 6 1 0 1 1 0 8 0 uaddrrnd 24 562 0 545 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 562 0 545 1 0 1 1 0 8 0 vmmpekpl 168 8658 0 8630 2 0 2 2 0 8 0 vmmpepl 168 67043 0 65536 91 21 70 77 0 357 1 vmsppl 360 561 0 545 2 0 2 2 0 8 0 pdppl 4096 1132 0 1090 6 0 6 6 0 8 0 pvpl 32 209860 0 197979 126 16 110 120 0 265 13 pmappl 224 561 0 545 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 531 0 3 16 0 16 16 0 8 0