panic: malloc: allocation too large, type = 2, size = 13612829496 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *271834 58677 0 0 0x4000000 0 syz-executor1 335457 11699 0 0x2 0x480 1 syz-executor0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 malloc(b85876054769eb5,656c6966,656c6967) at malloc+0xa20 sys/kern/kern_malloc.c:339 wsmux_getmux(e1def1b7735f82c5) at wsmux_getmux+0x6f sys/dev/wscons/wsmux.c:135 wsmux_do_ioctl(e32cba425e268300,80085761,fffffd8079109d38,86,fffffd807f7c7960) a t wsmux_do_ioctl+0x268 VOP_IOCTL(f227d83c2d29e893,80085761,fffffd806878e998,ffff800020b93080,fffffd8079109d38,ffff800020b93080) at VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290 vn_ioctl(adf982f019501123,fffffd806878e998,ffff800020b93080,8) at vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512 sys_ioctl(c07c6beddc1e4a9,0,ffff800020b93080) at sys_ioctl+0x652 syscall(d076ee1c4972385) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(d076ee1c4972385) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff89,0,3,3ad094ef010) at Xsyscall+0x128 end of kernel end trace frame: 0x3afec20dad0, 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}> show panic malloc: allocation too large, type = 2, size = 13612829496 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x16c sys/kern/subr_prf.c:208 malloc(b85876054769eb5,656c6966,656c6967) at malloc+0xa20 sys/kern/kern_malloc.c:339 wsmux_getmux(e1def1b7735f82c5) at wsmux_getmux+0x6f sys/dev/wscons/wsmux.c:135 wsmux_do_ioctl(e32cba425e268300,80085761,fffffd8079109d38,86,fffffd807f7c7960) at wsmux_do_ioctl+0x268 wsmux_add_mux sys/dev/wscons/wsmux.c:563 [inline] wsmux_do_ioctl(e32cba425e268300,80085761,fffffd8079109d38,86,fffffd807f7c7960) at wsmux_do_ioctl+0x268 sys/dev/wscons/wsmux.c:424 VOP_IOCTL(f227d83c2d29e893,80085761,fffffd806878e998,ffff800020b93080,fffffd8079109d38,ffff800020b93080) at VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290 vn_ioctl(adf982f019501123,fffffd806878e998,ffff800020b93080,8) at vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512sys_ioctl(c07c6beddc1e4a9,0,ffff800020b93080) at sys_ioctl+0x652 syscall(d076ee1c4972385) at syscall+0x5a0 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(d076ee1c4972385) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,ffffffffffffff89,0,3,3ad094ef010) at Xsyscall+0x128 end of kernel end trace frame: 0x3afec20dad0, count: -10 ddb{0}> show registers rdi 0xffffffff81724177 db_enter+0x17 rsi 0x1b72 __ALIGN_SIZE+0xb72 rbp 0xffff800020caebd0 rbx 0xffff800020caec70 rdx 0x1b73 __ALIGN_SIZE+0xb73 rcx 0xffff800002b48000 rax 0xffff800002b48000 r8 0xffffffff81d43064 kprintf+0x174 r9 0x1 r10 0xb858760542690ee r11 0x7af9a08103e5da97 r12 0x3000000008 r13 0xffff800020caebe0 r14 0x100 r15 0x1 rip 0xffffffff81724178 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020caebc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1) pid=271834 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b93530,0xffff800020b93798 process=0xffff800020b949e8 user=0xffff800020caa000, vmspace=0xfffffd807f00c168 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58677 92232 70014 0 2 0 syz-executor1 *58677 271834 70014 0 7 0x4000000 syz-executor1 58677 464430 70014 0 2 0x4000080 syz-executor1 58156 26998 11699 0 2 0 syz-executor0 58156 18552 11699 0 3 0x4000080 ttyin syz-executor0 58156 178153 11699 0 3 0x4000080 fsleep syz-executor0 26646 278329 1 0 3 0x100083 ttyin getty 58256 459447 0 0 3 0x14200 bored sosplice 70014 230707 7386 0 3 0x82 nanosleep syz-executor1 11699 335457 7386 0 7 0x482 syz-executor0 7386 342670 14158 0 3 0x82 kqread syz-fuzzer 7386 130893 14158 0 2 0x4000482 syz-fuzzer 7386 72733 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 322608 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 215195 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 414030 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 392330 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 215647 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 432896 14158 0 3 0x4000082 thrsleep syz-fuzzer 7386 220209 14158 0 3 0x4000082 thrsleep syz-fuzzer 14158 413223 12327 0 3 0x10008a pause ksh 12327 1771 85187 0 3 0x92 select sshd 85187 440234 1 0 3 0x80 select sshd 29054 336161 88083 73 3 0x100090 kqread syslogd 88083 287947 1 0 3 0x100082 netio syslogd 86015 258023 1 77 3 0x100090 poll dhclient 81568 505931 1 0 3 0x80 poll dhclient 12438 178940 0 0 2 0x14200 zerothread 28976 414255 0 0 3 0x14200 aiodoned aiodoned 42195 496297 0 0 3 0x14200 syncer update 14753 319534 0 0 3 0x14200 cleaner cleaner 93347 259937 0 0 3 0x14200 reaper reaper 59545 80400 0 0 3 0x14200 pgdaemon pagedaemon 56090 199660 0 0 3 0x14200 bored crynlk 65114 523507 0 0 3 0x14200 bored crypto 6000 518607 0 0 3 0x40014200 acpi0 acpi0 50513 112954 0 0 3 0x40014200 idle1 6555 278045 0 0 3 0x14200 bored softnet 73990 6474 0 0 3 0x14200 bored systqmp 88096 169997 0 0 3 0x14200 bored systq 12358 178972 0 0 3 0x40014200 bored softclock 26634 164440 0 0 3 0x40014200 idle0 1 36019 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 58677 (syz-executor1) thread 0xffff800020b93080 (271834) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff822d2378) locked @ /syzkaller/managers/multicore/kernel/sys/sys/syscall_mi.h:90 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9508 10452K 10452K 78643K 10915 0 0 pcb 23 9K 11K 78643K 991 0 0 rtable 100 3K 4K 78643K 292 0 0 ifaddr 49 12K 12K 78643K 118 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 38 0 0 iov 0 0K 32K 78643K 198 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 75K 78643K 3963 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 42 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1168 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1792 194K 288K 78643K 12592 0 0 file desc 6 17K 25K 78643K 4399 0 0 sigio 0 0K 0K 78643K 31 0 0 proc 42 38K 70K 78643K 494 0 0 subproc 64 65538K 67586K 78643K 70 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 190 0 0 in_multi 33 2K 2K 78643K 71 0 0 ether_multi 1 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 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 255 0 0 pfkey data 0 0K 0K 78643K 2 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 106 21K 30K 78643K 13558 0 0 UVM aobj 130 4K 4K 78643K 154 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 30 0 0 NDP 9 0K 0K 78643K 32 0 0 temp 148 2358K 2426K 78643K 13377 0 0 kqueue 0 0K 0K 78643K 22 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 4 0 0 1 0 1 1 0 8 0 inpcbpl 280 689 0 682 1 0 1 1 0 8 0 plimitpl 152 36 0 29 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 41 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 228 0 224 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 ppxss 1128 10 0 10 6 6 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 185 0 0 12 0 12 12 0 8 0 art_table 32 186 0 0 2 0 2 2 0 8 0 art_node 16 40 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1166 0 1156 1 0 1 1 0 8 0 shmpl 112 152 0 24 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9425 0 8018 47 1 46 46 0 8 0 ffsino 272 9425 0 8018 94 0 94 94 0 8 0 nchpl 144 15137 0 13547 60 0 60 60 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 42631 0 42631 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 38174 0 38174 9 8 1 6 0 8 1 sigapl 432 4567 0 4553 2 0 2 2 0 8 0 futexpl 56 38013 0 38012 1 0 1 1 0 8 0 knotepl 112 1374 0 1347 6 4 2 2 0 8 1 kqueuepl 104 1963 0 1961 1 0 1 1 0 8 0 pipepl 112 1796 0 1775 7 6 1 2 0 8 0 fdescpl 488 4568 0 4553 3 1 2 3 0 8 0 filepl 152 22012 0 21912 13 8 5 7 0 8 1 lockfpl 96 628 0 626 9 8 1 1 0 8 0 lockfspl 24 918 0 917 8 7 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 52 0 42 1 0 1 1 0 8 0 ucredpl 96 7423 0 7416 1 0 1 1 0 8 0 zombiepl 144 4553 0 4553 2 1 1 1 0 8 1 processpl 840 4583 0 4553 4 0 4 4 0 8 0 procpl 600 12926 0 12883 5 1 4 5 0 8 0 sosppl 128 27 0 27 11 10 1 1 0 8 1 sockpl 384 1607 0 1590 8 5 3 4 0 8 1 mcl64k 65536 519 0 0 64 19 45 64 0 8 2 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 16 0 0 2 0 2 2 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 127 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 635 0 0 37 1 36 36 0 8 0 bufpl 256 10262 0 3293 436 0 436 436 0 8 0 anonpl 16 359772 0 352864 101 65 36 44 0 125 5 amapchunkpl 152 23480 0 23387 34 25 9 11 0 158 5 amappl16 192 20329 0 19974 90 70 20 30 0 8 2 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2038 0 2033 2 1 1 1 0 8 0 amappl13 168 20 0 17 1 0 1 1 0 8 0 amappl12 160 2367 0 2364 1 0 1 1 0 8 0 amappl11 152 189 0 179 1 0 1 1 0 8 0 amappl10 144 64 0 61 2 1 1 1 0 8 0 amappl9 136 341 0 340 1 0 1 1 0 8 0 amappl8 128 2521 0 2484 2 0 2 2 0 8 0 amappl7 120 31 0 26 1 0 1 1 0 8 0 amappl6 112 51 0 42 1 0 1 1 0 8 0 amappl5 104 139 0 128 1 0 1 1 0 8 0 amappl4 96 300 0 277 2 1 1 2 0 8 0 amappl3 88 256 0 251 1 0 1 1 0 8 0 amappl2 80 44355 0 44295 2 0 2 2 0 8 0 amappl1 72 100768 0 100329 24 14 10 19 0 8 0 amappl 72 13137 0 13100 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 153 0 24 3 0 3 3 0 8 0 uaddrrnd 24 4568 0 4553 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4568 0 4553 1 0 1 1 0 8 0 vmmpekpl 168 34277 0 34256 2 0 2 2 0 8 0 vmmpepl 168 471381 0 469972 136 73 63 72 0 357 1 vmsppl 360 4567 0 4553 2 0 2 2 0 8 0 pdppl 4096 9143 0 9106 6 1 5 6 0 8 0 pvpl 32 1077661 0 1067590 242 138 104 117 0 265 22 pmappl 224 4567 0 4553 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 677 0 24 20 0 20 20 0 8 0