ªË½uzdö„ÍaÝ©panic: malloc: allocation too large, type = 2, size = 1207959560 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *472483 14502 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:208 malloc(48000008,2,2) at malloc+0xa13 sys/kern/kern_malloc.c:339 wsmux_getmux(9000000) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(9000000,ffff800001943200) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd80361321a0,80085761,ffff800014a1e3e0,b,fffffd803f7c69c0,ffff8000ffff9070) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8038f7c2d0,80085761,ffff800014a1e3e0,ffff8000ffff9070) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff9070,ffff800014a1e528,ffff800014a1e510) at sys_ioctl+0x638 syscall(ffff800014a1e5c0) at syscall+0x541 Xsyscall(6,0,ffffffffffffff85,0,3,be3b338f010) at Xsyscall+0x128 end of kernel end trace frame: 0xbe6a9c40c00, 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 malloc: allocation too large, type = 2, size = 1207959560 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:208 malloc(48000008,2,2) at malloc+0xa13 sys/kern/kern_malloc.c:339 wsmux_getmux(9000000) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(9000000,ffff800001943200) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd80361321a0,80085761,ffff800014a1e3e0,b,fffffd803f7c69c0,ffff8000ffff9070) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd8038f7c2d0,80085761,ffff800014a1e3e0,ffff8000ffff9070) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff9070,ffff800014a1e528,ffff800014a1e510) at sys_ioctl+0x638 syscall(ffff800014a1e5c0) at syscall+0x541 Xsyscall(6,0,ffffffffffffff85,0,3,be3b338f010) at Xsyscall+0x128 end of kernel end trace frame: 0xbe6a9c40c00, count: -10 ddb> show registers rdi 0xffffffff81ac0e57 db_enter+0x17 rsi 0x1f56 __ALIGN_SIZE+0xf56 rbp 0xffff800014a1dfb0 rbx 0xffff800014a1e060 rdx 0x1f57 __ALIGN_SIZE+0xf57 rcx 0xffff800001b3d000 rax 0xffff800001b3d000 r8 0xffff800014a1df70 r9 0x1 r10 0xffff800001b3ce80 r11 0x9b86e6f3ad62e775 r12 0x3000000008 r13 0xffff800014a1dfc0 r14 0x100 r15 0x1 rip 0xffffffff81ac0e58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a1dfa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=472483 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8968,0xffffffff82262138 process=0xffff8000ffff73c0 user=0xffff800014a19000, vmspace=0xfffffd803f013630 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 14502 474789 45872 0 2 0 syz-executor.0 *14502 472483 45872 0 7 0x4000000 syz-executor.0 45872 308292 47480 0 3 0x82 nanosleep syz-executor.0 53838 486067 47480 0 3 0x2 biowait syz-executor.1 50866 464054 0 0 3 0x14200 bored sosplice 47480 248556 25766 0 3 0x82 thrsleep syz-fuzzer 47480 134208 25766 0 3 0x4000082 thrsleep syz-fuzzer 47480 18791 25766 0 3 0x4000082 thrsleep syz-fuzzer 47480 254900 25766 0 3 0x4000082 kqread syz-fuzzer 47480 25388 25766 0 3 0x4000082 thrsleep syz-fuzzer 47480 319203 25766 0 3 0x4000082 thrsleep syz-fuzzer 47480 38699 25766 0 3 0x4000082 thrsleep syz-fuzzer 47480 189431 25766 0 3 0x4000082 thrsleep syz-fuzzer 25766 287314 97486 0 3 0x10008a pause ksh 97486 523563 93298 0 3 0x92 select sshd 1456 413756 1 0 3 0x100083 ttyin getty 93298 271572 1 0 3 0x80 select sshd 10222 465003 85118 73 3 0x100090 kqread syslogd 85118 177992 1 0 3 0x100082 netio syslogd 75173 154072 1 77 3 0x100090 poll dhclient 2246 10560 1 0 3 0x80 poll dhclient 94910 501763 0 0 2 0x14200 zerothread 65662 106824 0 0 3 0x14200 aiodoned aiodoned 28471 33871 0 0 3 0x14200 syncer update 71800 173998 0 0 3 0x14200 cleaner cleaner 42014 448196 0 0 3 0x14200 reaper reaper 75981 434257 0 0 3 0x14200 pgdaemon pagedaemon 68568 136320 0 0 3 0x14200 bored crynlk 73570 99369 0 0 3 0x14200 bored crypto 65191 79494 0 0 3 0x40014200 acpi0 acpi0 68507 269263 0 0 3 0x14200 bored softnet 66947 277446 0 0 3 0x14200 bored systqmp 92685 260891 0 0 3 0x14200 bored systq 46868 478007 0 0 3 0x40014200 bored softclock 24835 5218 0 0 3 0x40014200 idle0 88571 176008 0 0 3 0x14200 bored smr 1 447842 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 9512 6750K 6793K 78643K 11071 0 0 pcb 23 9K 10K 78643K 375 0 0 rtable 100 3K 4K 78643K 400 0 0 ifaddr 59 13K 14K 78643K 136 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 27 0 0 iov 0 0K 24K 78643K 86 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1199 75K 76K 78643K 3119 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 12 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 78 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 2027 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 41 30K 46K 78643K 393 0 0 subproc 64 65538K 67586K 78643K 209 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 89 0 0 in_multi 33 2K 2K 78643K 115 0 0 ether_multi 1 0K 0K 78643K 7 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 3132 0 0 pfkey data 0 0K 0K 78643K 1 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 79 20K 29K 78643K 5816 0 0 UVM aobj 39 2K 3K 78643K 44 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 23 0 0 NDP 12 0K 0K 78643K 41 0 0 temp 170 2359K 2427K 78643K 7665 0 0 kqueue 0 0K 0K 78643K 11 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 8 0 4 1 0 1 1 0 8 0 inpcbpl 280 312 0 305 1 0 1 1 0 8 0 plimitpl 152 38 0 31 1 0 1 1 0 8 0 rtentry 112 79 0 39 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 136 0 132 1 0 1 1 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 ppxss 1128 12 0 12 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 359 0 171 12 0 12 12 0 8 0 art_table 32 360 0 171 2 0 2 2 0 8 0 art_node 16 76 0 42 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 6 1 0 1 1 0 8 0 semapl 112 76 0 66 1 0 1 1 0 8 0 shmpl 112 42 0 5 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6816 0 5403 46 0 46 46 0 8 0 ffsino 240 6816 0 5403 84 0 84 84 0 8 0 nchpl 144 11810 0 10189 61 0 61 61 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 28519 0 28518 2 1 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 27681 0 27680 15 14 1 6 0 8 0 sigapl 432 2185 0 2172 2 0 2 2 0 8 0 futexpl 56 50961 0 50961 2 1 1 1 0 8 1 knotepl 112 294 0 275 1 0 1 1 0 8 0 kqueuepl 104 678 0 676 1 0 1 1 0 8 0 pipepl 112 570 0 551 3 2 1 2 0 8 0 fdescpl 424 2186 0 2172 2 0 2 2 0 8 0 filepl 120 13401 0 13306 10 7 3 4 0 8 0 lockfpl 104 197 0 197 9 9 0 1 0 8 0 lockfspl 32 233 0 233 10 10 0 1 0 8 0 sessionpl 112 21 0 11 1 0 1 1 0 8 0 pgrppl 48 33 0 23 1 0 1 1 0 8 0 ucredpl 96 918 0 911 1 0 1 1 0 8 0 zombiepl 144 2172 0 2172 2 1 1 1 0 8 1 processpl 840 2201 0 2172 4 0 4 4 0 8 0 procpl 600 4931 0 4894 11 7 4 4 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 641 0 624 11 9 2 3 0 8 0 mcl64k 65536 19 0 19 6 6 0 1 0 8 0 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 1158 0 1158 2 1 1 1 0 8 1 mcl9k 9216 7 0 7 6 6 0 1 0 8 0 mcl8k 8192 16 0 16 6 6 0 1 0 8 0 mcl4k 4096 73 0 73 13 13 0 1 0 8 0 mcl2k2 2112 6 0 6 4 4 0 1 0 8 0 mcl2k 2048 55327 0 55294 14 9 5 9 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 109557 0 109475 15 8 7 8 0 8 0 bufpl 256 9668 0 4038 353 0 353 353 0 8 0 anonpl 16 310690 0 301782 81 42 39 55 0 62 0 amapchunkpl 152 17458 0 17369 26 22 4 15 0 158 0 amappl16 192 9420 0 8944 53 28 25 37 0 8 0 amappl15 184 50 0 45 1 0 1 1 0 8 0 amappl14 176 40 0 37 2 1 1 1 0 8 0 amappl13 168 34 0 31 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 1171 0 1160 1 0 1 1 0 8 0 amappl10 144 782 0 779 1 0 1 1 0 8 0 amappl9 136 654 0 650 1 0 1 1 0 8 0 amappl8 128 234 0 217 1 0 1 1 0 8 0 amappl7 120 35 0 29 1 0 1 1 0 8 0 amappl6 112 1196 0 1190 1 0 1 1 0 8 0 amappl5 104 153 0 141 1 0 1 1 0 8 0 amappl4 96 2372 0 2346 2 1 1 2 0 8 0 amappl3 88 1300 0 1295 1 0 1 1 0 8 0 amappl2 80 18502 0 18450 2 0 2 2 0 8 0 amappl1 72 51184 0 50765 26 17 9 19 0 8 0 amappl 72 5237 0 5203 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 43 0 5 1 0 1 1 0 8 0 uaddrrnd 24 2186 0 2172 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2186 0 2172 1 0 1 1 0 8 0 vmmpekpl 168 16931 0 16914 1 0 1 1 0 8 0 vmmpepl 168 230912 0 229499 126 59 67 83 0 357 2 vmsppl 264 2185 0 2172 3 2 1 2 0 8 0 pdppl 4096 4378 0 4344 5 0 5 5 0 8 0 pvpl 32 734856 0 722753 343 198 145 245 0 265 43 pmappl 192 2185 0 2172 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 519 0 47 14 0 14 14 0 8 0