panic: malloc: allocation too large, type = 2, size = 17119699408 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *400324 51294 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:208 malloc(3fc69e1d0,2,2) at malloc+0xa13 sys/kern/kern_malloc.c:339 wsmux_getmux(7f8d3c39) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(7f8d3c39,ffff800000669100) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd803d7be750,80085761,ffff800014a31650,42,fffffd803f7c6780,ffff8000ffff3788) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80377fd4b0,80085761,ffff800014a31650,ffff8000ffff3788) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff3788,ffff800014a31798,ffff800014a31780) at sys_ioctl+0x638 syscall(ffff800014a31830) at syscall+0x541 Xsyscall(6,0,ffffffffffffff85,0,3,1e43144d010) at Xsyscall+0x128 end of kernel end trace frame: 0x1e6760f39c0, 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 = 17119699408 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(3fc69e1d0,2,2) at malloc+0xa13 sys/kern/kern_malloc.c:339 wsmux_getmux(7f8d3c39) at wsmux_getmux+0x71 sys/dev/wscons/wsmux.c:152 wsmux_add_mux(7f8d3c39,ffff800000669100) at wsmux_add_mux+0x2f sys/dev/wscons/wsmux.c:594 VOP_IOCTL(fffffd803d7be750,80085761,ffff800014a31650,42,fffffd803f7c6780,ffff8000ffff3788) at VOP_IOCTL+0x9a sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80377fd4b0,80085761,ffff800014a31650,ffff8000ffff3788) at vn_ioctl+0xc9 sys/kern/vfs_vnops.c:512 sys_ioctl(ffff8000ffff3788,ffff800014a31798,ffff800014a31780) at sys_ioctl+0x638 syscall(ffff800014a31830) at syscall+0x541 Xsyscall(6,0,ffffffffffffff85,0,3,1e43144d010) at Xsyscall+0x128 end of kernel end trace frame: 0x1e6760f39c0, count: -10 ddb> show registers rdi 0xffffffff812c72d7 db_enter+0x17 rsi 0x1d12 __ALIGN_SIZE+0xd12 rbp 0xffff800014a31220 rbx 0xffff800014a312d0 rdx 0x1d13 __ALIGN_SIZE+0xd13 rcx 0xffff800003787000 rax 0xffff800003787000 r8 0xffff800014a311e0 r9 0x1 r10 0xffff800000936cc0 r11 0x6444a97288f23a6e r12 0x3000000008 r13 0xffff800014a31230 r14 0x100 r15 0x1 rip 0xffffffff812c72d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a31210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=400324 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff8224cb48 process=0xffff8000ffff7a50 user=0xffff800014a2c000, vmspace=0xfffffd803f014948 estcpu=7, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51294 397791 39997 0 2 0 syz-executor.1 *51294 400324 39997 0 7 0x4000000 syz-executor.1 39997 430987 12494 0 2 0x482 syz-executor.1 99013 351771 12494 0 2 0x2 syz-executor.0 72560 419834 1 0 3 0x100083 ttyin getty 27788 522124 0 0 3 0x14200 bored sosplice 12494 455450 79990 0 3 0x82 thrsleep syz-fuzzer 12494 494783 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 23456 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 341958 79990 0 3 0x4000082 kqread syz-fuzzer 12494 398051 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 156574 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 238995 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 373144 79990 0 3 0x4000082 thrsleep syz-fuzzer 12494 491963 79990 0 3 0x4000082 thrsleep syz-fuzzer 79990 380674 28158 0 3 0x10008a pause ksh 28158 375857 45103 0 3 0x92 select sshd 45103 177773 1 0 3 0x80 select sshd 55524 420867 45063 73 3 0x100090 kqread syslogd 45063 76950 1 0 3 0x100082 netio syslogd 62957 373278 1 77 3 0x100090 poll dhclient 15938 521748 1 0 3 0x80 poll dhclient 24787 103785 0 0 3 0x14200 pgzero zerothread 60567 278884 0 0 3 0x14200 aiodoned aiodoned 19111 426908 0 0 3 0x14200 syncer update 76092 309623 0 0 3 0x14200 cleaner cleaner 39306 268742 0 0 3 0x14200 reaper reaper 15029 247966 0 0 3 0x14200 pgdaemon pagedaemon 15453 255729 0 0 3 0x14200 bored crynlk 22740 259885 0 0 3 0x14200 bored crypto 24933 43917 0 0 3 0x40014200 acpi0 acpi0 94395 186632 0 0 3 0x14200 bored softnet 10000 373007 0 0 3 0x14200 bored systqmp 20284 11604 0 0 3 0x14200 bored systq 25738 4438 0 0 3 0x40014200 bored softclock 7589 19459 0 0 3 0x40014200 idle0 85595 126555 0 0 3 0x14200 bored smr 1 277971 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 9489 6343K 6359K 78643K 11271 0 0 pcb 23 9K 10K 78643K 785 0 0 rtable 103 3K 4K 78643K 856 0 0 ifaddr 52 13K 15K 78643K 282 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 40 0 0 iov 0 0K 32K 78643K 267 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 75K 78643K 2206 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 29 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 204 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 21K 78643K 1831 0 0 sigio 0 0K 0K 78643K 30 0 0 proc 42 30K 46K 78643K 661 0 0 subproc 64 65538K 67586K 78643K 446 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 183 0 0 in_multi 33 2K 2K 78643K 217 0 0 ether_multi 1 0K 0K 78643K 10 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 378 0 0 pfkey data 0 0K 0K 78643K 6 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 87 21K 29K 78643K 5425 0 0 UVM aobj 77 5K 5K 78643K 82 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 114 0 0 NDP 12 0K 0K 78643K 90 0 0 temp 156 2359K 2476K 78643K 8372 0 0 kqueue 0 0K 0K 78643K 4 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 15 0 11 1 0 1 1 0 8 0 inpcbpl 280 870 0 863 1 0 1 1 0 8 0 plimitpl 152 74 0 67 1 0 1 1 0 8 0 rtentry 112 142 0 102 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 328 0 324 1 0 1 1 0 8 0 nd6 48 26 0 22 1 0 1 1 0 8 0 ppxss 1128 37 0 37 9 8 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 651 0 463 12 0 12 12 0 8 0 art_table 32 652 0 463 2 0 2 2 0 8 0 art_node 16 139 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 0 1 0 1 1 0 8 0 semapl 112 202 0 192 1 0 1 1 0 8 0 shmpl 112 80 0 5 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4782 0 3321 48 0 48 48 0 8 0 ffsino 240 4782 0 3321 87 0 87 87 0 8 1 nchpl 144 7770 0 6099 62 0 62 62 0 8 0 uvmvnodes 72 5203 0 0 95 0 95 95 0 8 0 vnodes 200 5203 0 0 274 0 274 274 0 8 0 namei 1024 22945 0 22945 2 1 1 1 0 8 1 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 26202 0 26202 20 18 2 6 0 8 2 sigapl 432 1970 0 1957 2 0 2 2 0 8 0 futexpl 56 29509 0 29509 1 0 1 1 0 8 1 knotepl 112 622 0 603 1 0 1 1 0 8 0 kqueuepl 104 431 0 429 1 0 1 1 0 8 0 pipepl 112 1174 0 1155 4 3 1 2 0 8 0 fdescpl 424 1971 0 1957 2 0 2 2 0 8 0 filepl 120 11818 0 11723 4 0 4 4 0 8 1 lockfpl 104 688 0 687 3 2 1 1 0 8 0 lockfspl 32 848 0 847 3 2 1 1 0 8 0 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 52 0 42 1 0 1 1 0 8 0 ucredpl 96 2290 0 2283 1 0 1 1 0 8 0 zombiepl 144 1957 0 1957 2 1 1 1 0 8 1 processpl 840 1986 0 1957 4 0 4 4 0 8 0 procpl 600 4461 0 4423 4 0 4 4 0 8 0 sosppl 128 22 0 22 7 7 0 1 0 8 0 sockpl 384 1533 0 1516 5 2 3 3 0 8 1 mcl64k 65536 1019 0 1019 128 127 1 33 0 8 1 mcl16k 16384 7 0 7 7 7 0 1 0 8 0 mcl12k 12288 29 0 29 13 12 1 1 0 8 1 mcl9k 9216 34 0 34 10 9 1 1 0 8 1 mcl8k 8192 27 0 27 11 11 0 1 0 8 0 mcl4k 4096 106 0 106 7 6 1 1 0 8 1 mcl2k2 2112 6 0 6 4 4 0 1 0 8 0 mcl2k 2048 51269 0 51233 19 13 6 13 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 94170 0 94094 70 61 9 23 0 8 0 bufpl 256 12256 0 6607 354 0 354 354 0 8 0 anonpl 16 236637 0 229334 115 64 51 53 0 62 13 amapchunkpl 152 9077 0 8997 27 18 9 13 0 158 5 amappl16 192 12130 0 11638 115 83 32 38 0 8 7 amappl15 184 687 0 683 1 0 1 1 0 8 0 amappl14 176 459 0 454 2 1 1 1 0 8 0 amappl13 168 342 0 339 1 0 1 1 0 8 0 amappl12 160 302 0 297 1 0 1 1 0 8 0 amappl11 152 17 0 6 1 0 1 1 0 8 0 amappl10 144 172 0 171 4 3 1 1 0 8 0 amappl9 136 657 0 654 1 0 1 1 0 8 0 amappl8 128 243 0 219 1 0 1 1 0 8 0 amappl7 120 59 0 53 1 0 1 1 0 8 0 amappl6 112 62 0 52 1 0 1 1 0 8 0 amappl5 104 453 0 441 1 0 1 1 0 8 0 amappl4 96 2198 0 2174 2 1 1 2 0 8 0 amappl3 88 597 0 586 1 0 1 1 0 8 0 amappl2 80 17089 0 17039 2 0 2 2 0 8 0 amappl1 72 44742 0 44324 24 15 9 19 0 8 0 amappl 72 4785 0 4753 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 81 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1971 0 1957 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1971 0 1957 1 0 1 1 0 8 0 vmmpekpl 168 17032 0 17012 2 0 2 2 0 8 0 vmmpepl 168 213102 0 211669 184 103 81 85 0 357 11 vmsppl 264 1970 0 1957 5 4 1 2 0 8 0 pdppl 4096 3948 0 3914 5 0 5 5 0 8 0 pvpl 32 666984 0 656523 298 165 133 228 0 265 31 pmappl 192 1970 0 1957 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 709 0 228 16 1 15 16 0 8 0