""‰~¼t§êÏ€ñúHôD^Õ""‰~¼t§êÏ€ñúHôD^Õpanic: malloc: allocation too large, type = 2, size = 18446744073709548736 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *155976 87133 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:207 malloc(fffffffffffff4c0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001757ed70) at vm_get_info+0x9a VOP_IOCTL(fffffd803620c8f0,c0185603,ffff80001757ed70,1,fffffd803f7c6a20,ffff8000ffff3160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802b77f970,c0185603,ffff80001757ed70,ffff8000ffff3160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3160,ffff80001757ee88,ffff80001757eed0) at sys_ioctl+0x5b9 syscall(ffff80001757ef50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e7586286010) at Xsyscall+0x128 end of kernel end trace frame: 0xe77c4f073b0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic malloc: allocation too large, type = 2, size = 18446744073709548736 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:207 malloc(fffffffffffff4c0,2,a) at malloc+0x9c9 sys/kern/kern_malloc.c:344 vm_get_info(ffff80001757ed70) at vm_get_info+0x9a VOP_IOCTL(fffffd803620c8f0,c0185603,ffff80001757ed70,1,fffffd803f7c6a20,ffff8000ffff3160) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:291 vn_ioctl(fffffd802b77f970,c0185603,ffff80001757ed70,ffff8000ffff3160) at vn_ioctl+0xb7 sys/kern/vfs_vnops.c:524 sys_ioctl(ffff8000ffff3160,ffff80001757ee88,ffff80001757eed0) at sys_ioctl+0x5b9 syscall(ffff80001757ef50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff53,0,3,e7586286010) at Xsyscall+0x128 end of kernel end trace frame: 0xe77c4f073b0, count: -9 ddb> show registers rdi 0xffffffff8118e297 db_enter+0x17 rsi 0x2588 __ALIGN_SIZE+0x1588 rbp 0xffff80001757e9b0 rbx 0xffff80001757ea60 rdx 0x2589 __ALIGN_SIZE+0x1589 rcx 0xffff800017790000 rax 0xffff800017790000 r8 0xffff80001757e970 r9 0x1 r10 0xffff800000a6be00 r11 0x33248b28eabfbea4 r12 0x3000000008 r13 0xffff80001757e9c0 r14 0x100 r15 0x1 rip 0xffffffff8118e298 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001757e9a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=155976 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffffffff825545b0 process=0xffff8000ffff77b0 user=0xffff80001757a000, vmspace=0xfffffd803f013550 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87133 333562 60103 0 2 0 syz-executor.0 *87133 155976 60103 0 7 0x4000000 syz-executor.0 96991 416160 57992 0 2 0 syz-executor.1 96991 127592 57992 0 3 0x4000080 ttyout syz-executor.1 96991 363305 57992 0 3 0x4000000 fdlock syz-executor.1 57992 520640 70826 0 3 0x82 nanosleep syz-executor.1 60103 322695 70826 0 3 0x82 nanosleep syz-executor.0 33718 515229 1 0 3 0x100083 ttyin getty 61642 404814 0 0 3 0x14200 bored sosplice 70826 456328 58254 0 3 0x82 thrsleep syz-fuzzer 70826 85261 58254 0 3 0x4000082 nanosleep syz-fuzzer 70826 433990 58254 0 3 0x4000082 kqread syz-fuzzer 70826 91965 58254 0 3 0x4000082 thrsleep syz-fuzzer 70826 322772 58254 0 3 0x4000082 thrsleep syz-fuzzer 70826 323155 58254 0 3 0x4000082 thrsleep syz-fuzzer 70826 294446 58254 0 3 0x4000082 thrsleep syz-fuzzer 58254 348982 99644 0 3 0x10008a pause ksh 99644 370188 81543 0 3 0x92 select sshd 81543 432413 1 0 3 0x80 select sshd 57486 485931 90310 73 3 0x100090 kqread syslogd 90310 515678 1 0 3 0x100082 netio syslogd 38967 190056 1 77 3 0x100090 poll dhclient 56174 30896 1 0 3 0x80 poll dhclient 37566 142103 0 0 2 0x14200 zerothread 85156 171320 0 0 3 0x14200 aiodoned aiodoned 63654 231875 0 0 3 0x14200 syncer update 64663 87291 0 0 3 0x14200 cleaner cleaner 68221 6782 0 0 3 0x14200 reaper reaper 98996 510817 0 0 3 0x14200 pgdaemon pagedaemon 73863 10907 0 0 3 0x14200 bored crynlk 54843 379879 0 0 3 0x14200 bored crypto 96059 92979 0 0 3 0x40014200 acpi0 acpi0 75560 489901 0 0 3 0x14200 bored softnet 1367 424598 0 0 3 0x14200 bored systqmp 86571 389276 0 0 3 0x14200 bored systq 41520 437052 0 0 3 0x40014200 bored softclock 8663 99297 0 0 3 0x40014200 idle0 31158 103046 0 0 3 0x14200 bored smr 1 203325 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 9560 6499K 8801K 78643K 37293 0 0 pcb 13 8K 8K 78643K 811 0 0 rtable 110 12K 12K 78643K 1483 0 0 ifaddr 71 16K 16K 78643K 508 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 246 0 0 iov 0 0K 24K 78643K 410 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 8428 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 72 0 0 VM map 2 0K 0K 78643K 20 0 0 sem 12 0K 0K 78643K 569 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4269 0 0 sigio 0 0K 0K 78643K 107 0 0 proc 49 38K 63K 78643K 1351 0 0 subproc 32 2K 2K 78643K 308 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 435 0 0 in_multi 31 2K 2K 78643K 332 0 0 ether_multi 1 0K 0K 78643K 25 0 0 mrt 0 0K 0K 78643K 23 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 753 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 107 22K 30K 78643K 11021 0 0 UVM aobj 130 7K 7K 78643K 143 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 585 0 0 NDP 16 0K 0K 78643K 155 0 0 temp 198 3536K 3647K 78643K 89225 0 0 kqueue 0 0K 0K 78643K 21 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 34 0 28 1 0 1 1 0 8 0 rtpcb 80 245 0 243 1 0 1 1 0 8 0 rtentry 112 202 0 162 2 0 2 2 0 8 0 unpcb 120 1549 0 1537 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5237 0 5237 1 1 0 1 0 8 0 tcpcb 544 1009 0 1005 2 1 1 2 0 8 0 ipq 40 8 0 8 4 4 0 1 0 8 0 ipqe 40 18 0 18 4 4 0 1 0 8 0 inpcb 280 3386 0 3379 12 10 2 2 0 8 1 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 34 0 31 1 0 1 1 0 8 0 pkpcb 40 16 0 16 7 7 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 71 0 71 15 14 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 949 0 748 16 3 13 15 0 8 0 art_table 32 950 0 748 2 0 2 2 0 8 0 art_node 16 197 0 160 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semapl 112 563 0 553 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7749 0 6355 46 0 46 46 0 8 0 ffsino 240 7749 0 6355 83 0 83 83 0 8 0 nchpl 144 14256 0 12645 60 0 60 60 0 8 0 uvmvnodes 72 7720 0 0 141 0 141 141 0 8 0 vnodes 208 7720 0 0 407 0 407 407 0 8 0 namei 1024 49994 0 49994 4 3 1 1 0 8 1 vmpool 520 18 0 18 6 6 0 1 0 8 0 scsiplug 64 8 0 8 5 4 1 1 0 8 1 scxspl 192 42556 0 42556 13 12 1 7 0 8 1 plimitpl 152 384 0 377 1 0 1 1 0 8 0 sigapl 432 4397 0 4383 2 0 2 2 0 8 0 futexpl 56 93637 0 93637 3 2 1 1 0 8 1 knotepl 112 1098 0 1079 4 3 1 3 0 8 0 kqueuepl 104 978 0 976 1 0 1 1 0 8 0 pipepl 112 9142 0 9121 16 14 2 2 0 8 1 fdescpl 424 4398 0 4383 2 0 2 2 0 8 0 filepl 120 38326 0 38222 11 7 4 5 0 8 0 lockfpl 104 1410 0 1409 1 0 1 1 0 8 0 lockfspl 48 487 0 486 1 0 1 1 0 8 0 sessionpl 112 38 0 28 1 0 1 1 0 8 0 pgrppl 48 66 0 56 1 0 1 1 0 8 0 ucredpl 96 5178 0 5170 1 0 1 1 0 8 0 zombiepl 144 4386 0 4386 3 2 1 1 0 8 1 processpl 864 4416 0 4386 4 0 4 4 0 8 0 procpl 632 9516 0 9477 4 0 4 4 0 8 0 sosppl 128 69 0 69 14 14 0 1 0 8 0 sockpl 384 5270 0 5249 5 1 4 5 0 8 0 mcl64k 65536 325 0 325 39 38 1 29 0 8 1 mcl16k 16384 31 0 31 15 15 0 1 0 8 0 mcl12k 12288 80 0 80 13 12 1 1 0 8 1 mcl9k 9216 51 0 51 15 14 1 1 0 8 1 mcl8k 8192 74 0 74 12 11 1 1 0 8 1 mcl4k 4096 326 0 326 4 3 1 1 0 8 1 mcl2k2 2112 49 0 49 12 11 1 1 0 8 1 mcl2k 2048 64097 0 64058 31 25 6 20 0 8 0 mtagpl 80 138 0 124 2 1 1 1 0 8 0 mbufpl 256 127081 0 126979 37 29 8 20 0 8 0 bufpl 256 17540 0 9788 485 0 485 485 0 8 0 anonpl 16 455537 0 441356 195 131 64 90 0 62 4 amapchunkpl 152 20159 0 20048 47 41 6 15 0 158 0 amappl16 192 23708 0 22907 183 141 42 64 0 8 1 amappl15 184 999 0 997 1 0 1 1 0 8 0 amappl14 176 754 0 750 2 1 1 1 0 8 0 amappl13 168 810 0 810 4 4 0 1 0 8 0 amappl12 160 220 0 217 1 0 1 1 0 8 0 amappl11 152 823 0 812 1 0 1 1 0 8 0 amappl10 144 600 0 595 1 0 1 1 0 8 0 amappl9 136 1075 0 1069 1 0 1 1 0 8 0 amappl8 128 641 0 610 4 2 2 2 0 8 0 amappl7 120 697 0 688 1 0 1 1 0 8 0 amappl6 112 812 0 802 1 0 1 1 0 8 0 amappl5 104 488 0 477 1 0 1 1 0 8 0 amappl4 96 4843 0 4811 1 0 1 1 0 8 0 amappl3 88 576 0 571 1 0 1 1 0 8 0 amappl2 80 34293 0 34219 4 2 2 3 0 8 0 amappl1 72 89038 0 88609 26 16 10 20 0 8 0 amappl 80 10023 0 9984 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 142 0 13 3 0 3 3 0 8 0 uaddrrnd 24 4416 0 4383 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4416 0 4383 1 0 1 1 0 8 0 vmmpekpl 168 42760 0 42731 2 0 2 2 0 8 0 vmmpepl 168 521054 0 519084 293 206 87 110 0 357 1 vmsppl 272 4397 0 4383 3 2 1 2 0 8 0 pdppl 4096 8838 0 8802 6 1 5 6 0 8 0 pvpl 32 1382249 0 1364870 456 286 170 284 0 265 25 pmappl 200 4415 0 4401 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 743 0 133 18 0 18 18 0 8 0