panic: malloc: allocation too large, type = 2, size = 18446744073709548576 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *328274 41477 0 0 0x4000000 1K syz-executor.1 290732 61855 0 0x2 0 0 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 malloc(fffffffffffff420,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b49530) at vm_get_info+0x9d VOP_IOCTL(fffffd806e694c30,c0185603,ffff800020b49530,1,fffffd807f7c6900,ffff800020abfb40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807db84308,c0185603,ffff800020b49530,ffff800020abfb40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abfb40,ffff800020b49648,ffff800020b49690) at sys_ioctl+0x5b9 syscall(ffff800020b49710) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b49710) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fe1b677e010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe3fb676920, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic malloc: allocation too large, type = 2, size = 18446744073709548576 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 malloc(fffffffffffff420,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff800020b49530) at vm_get_info+0x9d VOP_IOCTL(fffffd806e694c30,c0185603,ffff800020b49530,1,fffffd807f7c6900,ffff800020abfb40) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd807db84308,c0185603,ffff800020b49530,ffff800020abfb40) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff800020abfb40,ffff800020b49648,ffff800020b49690) at sys_ioctl+0x5b9 syscall(ffff800020b49710) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b49710) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,fe1b677e010) at Xsyscall+0x128 end of kernel end trace frame: 0xfe3fb676920, count: -9 ddb{1}> show registers rdi 0xffffffff81e59457 db_enter+0x17 rsi 0x24ac __ALIGN_SIZE+0x14ac rbp 0xffff800020b49170 rbx 0xffff800020b49220 rdx 0x24ad __ALIGN_SIZE+0x14ad rcx 0xffff800023fac000 rax 0xffff800023fac000 r8 0xffffffff81dbebdf kprintf+0x16f r9 0x1 r10 0x25 r11 0x83eee5841713fad1 r12 0x3000000008 r13 0xffff800020b49180 r14 0x100 r15 0x1 rip 0xffffffff81e59458 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b49160 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=328274 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffffffff8262fc50 process=0xffff800020adc380 user=0xffff800020b44000, vmspace=0xfffffd807f00ccf0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41477 508160 55263 0 2 0 syz-executor.1 *41477 328274 55263 0 7 0x4000000 syz-executor.1 55263 163110 61855 0 3 0x82 nanosleep syz-executor.1 14307 289107 61855 0 3 0x2 biowait syz-executor.0 10869 14470 0 0 3 0x14200 bored sosplice 61855 290732 4780 0 7 0x2 syz-fuzzer 61855 398762 4780 0 3 0x4000082 nanosleep syz-fuzzer 61855 168397 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 453026 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 517539 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 398427 4780 0 3 0x4000082 nanosleep syz-fuzzer 61855 223257 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 507315 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 387982 4780 0 3 0x4000082 thrsleep syz-fuzzer 61855 129245 4780 0 3 0x4000082 thrsleep syz-fuzzer 4780 232175 81620 0 3 0x10008a pause ksh 81620 68394 70396 0 3 0x92 select sshd 48931 309406 1 0 3 0x100083 ttyin getty 70396 495459 1 0 3 0x80 select sshd 73072 348824 99226 74 3 0x100092 bpf pflogd 99226 280503 1 0 3 0x80 netio pflogd 55378 254174 16400 73 3 0x100090 kqread syslogd 16400 101010 1 0 3 0x100082 netio syslogd 70994 144283 1 77 3 0x100090 poll dhclient 46094 348070 1 0 3 0x80 poll dhclient 97344 164657 0 0 3 0x14200 pgzero zerothread 32805 291013 0 0 3 0x14200 aiodoned aiodoned 76247 2109 0 0 3 0x14200 syncer update 5155 248785 0 0 3 0x14200 cleaner cleaner 26951 37592 0 0 3 0x14200 reaper reaper 58694 217427 0 0 3 0x14200 pgdaemon pagedaemon 98958 302029 0 0 3 0x14200 bored crynlk 57043 348123 0 0 3 0x14200 bored crypto 4943 35861 0 0 3 0x40014200 acpi0 acpi0 46602 25486 0 0 3 0x40014200 idle1 40553 174791 0 0 3 0x14200 bored softnet 2080 98360 0 0 3 0x14200 bored systqmp 75169 135443 0 0 3 0x14200 bored systq 31736 68168 0 0 3 0x40014200 bored softclock 54636 84446 0 0 3 0x40014200 idle0 93355 441000 0 0 3 0x14200 bored smr 1 185169 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 41477 (syz-executor.1) thread 0xffff800020abfb40 (328274) shared rwlock vmlistlock r = 0 (0xffff80000066e478) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 vm_get_info+0x39 sys/arch/amd64/amd64/vmm.c:3712 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 #3 vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82663928) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 Process 14307 (syz-executor.0) thread 0xffff800020a5f150 (289107) exclusive rrwlock inode r = 0 (0xfffffd806e2055e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:567 #11 namei+0x62c sys/kern/vfs_lookup.c:248 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e7882b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:562 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 cache_lookup+0x2bb sys/kern/vfs_cache.c:224 #7 ufs_lookup+0x1bc sys/ufs/ufs/ufs_lookup.c:162 #8 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #9 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:567 #10 namei+0x62c sys/kern/vfs_lookup.c:248 #11 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9611 6591K 14912K 78643K 24562 0 0 pcb 13 8K 8K 78643K 697 0 0 rtable 116 12K 13K 78643K 2239 0 0 ifaddr 84 19K 20K 78643K 836 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1694 0 0 iov 0 0K 32K 78643K 498 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 6508 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 110 0 0 VM map 2 1K 1K 78643K 21 0 0 sem 12 0K 1K 78643K 728 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 5773 0 0 sigio 0 0K 0K 78643K 108 0 0 proc 62 63K 83K 78643K 1703 0 0 subproc 32 2K 2K 78643K 401 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 10613 0 0 in_multi 33 2K 2K 78643K 396 0 0 ether_multi 1 0K 0K 78643K 26 0 0 mrt 1 0K 0K 78643K 29 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1009 0 0 pfkey data 0 0K 4K 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 110 22K 31K 78643K 20118 0 0 UVM aobj 130 5K 5K 78643K 140 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 691 0 0 NDP 20 0K 1K 78643K 251 0 0 temp 229 3557K 4196K 78643K 81392 0 0 kqueue 0 0K 0K 78643K 43 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 53 0 47 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 339 0 337 1 0 1 1 0 8 0 rtentry 112 266 0 222 2 0 2 2 0 8 0 unpcb 120 1894 0 1878 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6813 0 6813 1 1 0 1 0 8 0 tcpcb 544 1297 0 1293 3 2 1 3 0 8 0 inpcb 280 10082 0 10075 22 19 3 4 0 8 2 rttmr 72 6 0 6 6 6 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 44 0 40 1 0 1 1 0 8 0 pkpcb 40 23 0 23 8 8 0 1 0 8 0 ppxss 1128 135 0 135 15 14 1 1 0 8 1 pffrag 232 7 0 7 4 3 1 1 0 482 1 pffrnode 88 7 0 7 4 3 1 1 0 8 1 pffrent 40 18 0 18 4 3 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 163 0 138 1 0 1 1 0 8 0 pfstkey 112 163 0 138 2 0 2 2 0 8 0 pfstate 328 163 0 137 4 0 4 4 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 1160 0 942 21 7 14 15 0 8 0 art_table 32 1161 0 942 2 0 2 2 0 8 0 art_node 16 259 0 219 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 32 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 724 0 714 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10080 0 8675 46 0 46 46 0 8 0 ffsino 272 10080 0 8675 95 0 95 95 0 8 0 nchpl 144 20496 0 18878 61 0 61 61 0 8 0 uvmvnodes 72 6485 0 0 118 0 118 118 0 8 0 vnodes 208 6485 0 0 342 0 342 342 0 8 0 namei 1024 64956 0 64956 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 19 0 19 7 6 1 1 0 8 1 scsiplug 64 15 0 15 8 8 0 1 0 8 0 scxspl 192 52664 0 52663 31 28 3 7 0 8 2 plimitpl 152 578 0 570 1 0 1 1 0 8 0 sigapl 432 5910 0 5895 4 2 2 3 0 8 0 futexpl 56 96841 0 96841 1 0 1 1 0 8 1 knotepl 112 1364 0 1345 5 4 1 3 0 8 0 kqueuepl 104 1282 0 1280 1 0 1 1 0 8 0 pipepl 112 2892 0 2873 8 7 1 2 0 8 0 fdescpl 488 5911 0 5895 3 0 3 3 0 8 0 filepl 152 46785 0 46682 23 17 6 7 0 8 1 lockfpl 104 1805 0 1804 1 0 1 1 0 8 0 lockfspl 48 606 0 605 1 0 1 1 0 8 0 sessionpl 112 39 0 28 1 0 1 1 0 8 0 pgrppl 48 105 0 94 1 0 1 1 0 8 0 ucredpl 96 6993 0 6984 1 0 1 1 0 8 0 zombiepl 144 5897 0 5897 3 2 1 1 0 8 1 processpl 896 5929 0 5897 4 0 4 4 0 8 0 procpl 632 18349 0 18307 14 9 5 5 0 8 1 srpgc 64 42 0 42 17 17 0 1 0 8 0 sosppl 128 57 0 57 17 16 1 1 0 8 1 sockpl 384 12416 0 12391 42 35 7 7 0 8 3 mcl64k 65536 260 0 0 33 10 23 33 0 8 1 mcl16k 16384 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 30 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 24 0 0 3 1 2 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 19 2 17 19 0 8 1 mtagpl 80 52 0 0 1 0 1 1 0 8 0 mbufpl 256 578 0 0 22 0 22 22 0 8 0 bufpl 256 18750 0 11702 441 0 441 441 0 8 0 anonpl 16 544657 0 530543 160 97 63 75 0 124 0 amapchunkpl 152 36507 0 36401 41 35 6 12 0 158 0 amappl16 192 26289 0 25482 164 122 42 53 0 8 1 amappl15 184 3403 0 3397 2 1 1 1 0 8 0 amappl14 176 1057 0 1055 2 1 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 1268 0 1268 4 4 0 1 0 8 0 amappl11 152 694 0 678 1 0 1 1 0 8 0 amappl10 144 473 0 469 1 0 1 1 0 8 0 amappl9 136 1471 0 1465 1 0 1 1 0 8 0 amappl8 128 1051 0 1013 2 0 2 2 0 8 0 amappl7 120 570 0 562 1 0 1 1 0 8 0 amappl6 112 642 0 628 1 0 1 1 0 8 0 amappl5 104 1584 0 1570 1 0 1 1 0 8 0 amappl4 96 4933 0 4897 1 0 1 1 0 8 0 amappl3 88 2290 0 2284 1 0 1 1 0 8 0 amappl2 80 46683 0 46607 3 1 2 3 0 8 0 amappl1 72 138179 0 137745 26 16 10 20 0 8 0 amappl 80 18942 0 18906 1 0 1 1 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 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 5930 0 5895 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5930 0 5895 1 0 1 1 0 8 0 vmmpekpl 168 44317 0 44284 2 0 2 2 0 8 0 vmmpepl 168 725822 0 723873 372 277 95 120 0 357 0 vmsppl 368 5910 0 5895 2 0 2 2 0 8 0 pdppl 4096 11867 0 11828 7 1 6 6 0 8 1 pvpl 32 1496836 0 1479510 394 234 160 181 0 265 14 pmappl 232 5929 0 5914 7 6 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 663 0 29 19 0 19 19 0 8 0