panic: malloc: allocation too large, type = 98, size = 760898376 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 69240 42177 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82398933) at panic+0x15e sys/kern/subr_prf.c:218 malloc(2d5a6348,62,1) at malloc+0x9bd sys/kern/kern_malloc.c:344 amap_alloc1(5ab4c68c,1,0) at amap_alloc1+0x207 sys/uvm/uvm_amap.c:338 amap_alloc(5ab4c68c000,1,0) at amap_alloc+0x80 sys/uvm/uvm_amap.c:393 uvm_mapanon(fffffd806bc0a330,ffff80001fb93538,5ab4c68c000,0,1030700) at uvm_mapanon+0x8b9 sys/uvm/uvm_map.c:1109 sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c uvm_mmapanon sys/uvm/uvm_mmap.c:949 [inline] sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c sys/uvm/uvm_mmap.c:423 syscall(ffff80001fb936b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:567 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ad5debe0f0, 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 = 98, size = 760898376 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82398933) at panic+0x15e sys/kern/subr_prf.c:218 malloc(2d5a6348,62,1) at malloc+0x9bd sys/kern/kern_malloc.c:344 amap_alloc1(5ab4c68c,1,0) at amap_alloc1+0x207 sys/uvm/uvm_amap.c:338 amap_alloc(5ab4c68c000,1,0) at amap_alloc+0x80 sys/uvm/uvm_amap.c:393 uvm_mapanon(fffffd806bc0a330,ffff80001fb93538,5ab4c68c000,0,1030700) at uvm_mapanon+0x8b9 sys/uvm/uvm_map.c:1109 sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c uvm_mmapanon sys/uvm/uvm_mmap.c:949 [inline] sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c sys/uvm/uvm_mmap.c:423 syscall(ffff80001fb936b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:567 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ad5debe0f0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001fb93150 rbx 0xffff80001fb93160 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff811f91f0 kprintf+0x140 r9 0x1 r10 0xad2952514b720be8 r11 0xaffeaf2aaa2ed4cb r12 0x3000000008 r13 0xffff80001fb93200 r14 0x100 r15 0x1 rip 0xffffffff81506bd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001fb93140 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=69240 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff80001d8be028,0xffffffff827db0d8 process=0xffff80001d8c03c0 user=0xffff80001fb8e000, vmspace=0xfffffd806bc0a330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42177 58762 67174 0 2 0 syz-executor.0 *42177 69240 67174 0 7 0x4000000 syz-executor.0 45839 390768 7757 0 2 0x2 syz-executor.1 67174 294760 7757 0 3 0x82 nanosleep syz-executor.0 7757 406252 89794 0 3 0x82 thrsleep syz-fuzzer 7757 236331 89794 0 3 0x4000082 thrsleep syz-fuzzer 7757 36800 89794 0 3 0x4000082 thrsleep syz-fuzzer 7757 487392 89794 0 3 0x4000082 kqread syz-fuzzer 7757 445303 89794 0 3 0x4000082 thrsleep syz-fuzzer 7757 430477 89794 0 3 0x4000082 thrsleep syz-fuzzer 7757 308078 89794 0 3 0x4000082 thrsleep syz-fuzzer 89794 356081 30606 0 3 0x10008a pause ksh 30606 67766 54963 0 3 0x92 select sshd 87118 366037 1 0 3 0x100083 ttyin getty 54963 117753 1 0 3 0x80 select sshd 47435 403941 33523 73 3 0x100090 kqread syslogd 33523 205438 1 0 3 0x100082 netio syslogd 49505 339097 1 77 3 0x100090 poll dhclient 81731 374861 1 0 3 0x80 poll dhclient 17101 213966 0 0 3 0x14200 bored smr 98208 279324 0 0 3 0x14200 pgzero zerothread 82282 300034 0 0 3 0x14200 aiodoned aiodoned 87548 425494 0 0 3 0x14200 syncer update 97215 8690 0 0 3 0x14200 cleaner cleaner 82138 216873 0 0 3 0x14200 reaper reaper 18326 251162 0 0 3 0x14200 pgdaemon pagedaemon 88666 146737 0 0 3 0x14200 bored crynlk 28499 274187 0 0 3 0x14200 bored crypto 53348 105511 0 0 3 0x40014200 acpi0 acpi0 5939 299541 0 0 3 0x14200 bored softnet 9793 172563 0 0 3 0x14200 bored systqmp 88794 137161 0 0 3 0x14200 bored systq 83294 197183 0 0 3 0x40014200 bored softclock 45871 69483 0 0 3 0x40014200 idle0 1 242834 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 devbuf 9451 6347K 6533K 78643K 24699 0 pcb 13 8K 8K 78643K 1411 0 rtable 105 3K 3K 78643K 229 0 ifaddr 39 10K 10K 78643K 46 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 2K 78643K 1264 0 iov 0 0K 16K 78643K 433 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 8190 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 609 0 VM map 2 0K 0K 78643K 2 0 sem 10 0K 1K 78643K 730 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 45214 0 proc 48 38K 63K 78643K 405 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 44 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 2K 78643K 341 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 142 24K 8216K 78643K 92381 0 UVM aobj 131 4K 4K 78643K 133 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 5 0K 0K 78643K 12 0 temp 100 3957K 4021K 78643K 99475 0 kqueue 3 4K 4K 78643K 3 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 rtpcb 96 46 0 44 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 11162 0 11154 1 0 1 1 0 8 0 syncache 272 4 0 4 1 1 0 1 0 8 0 tcpcb 592 335 0 331 10 9 1 3 0 8 0 inpcb 296 7003 0 6996 2 1 1 2 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 kcovpl 48 3 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 233 0 44 12 0 12 12 0 8 0 art_table 32 234 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 semapl 112 728 0 720 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 47560 0 46158 88 0 88 88 0 8 0 ffsino 240 47560 0 46158 83 0 83 83 0 8 0 nchpl 144 97951 0 96368 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 243725 0 243725 4 3 1 1 0 8 1 scxspl 192 279757 0 279757 2 1 1 1 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 45397 0 45369 4 0 4 4 0 8 0 futexpl 56 247343 0 247343 4 3 1 1 0 8 1 knotepl 112 74 0 54 1 0 1 1 0 8 0 kqueuepl 152 2 0 0 1 0 1 1 0 8 0 pipepl 272 2647 0 2636 29 28 1 2 0 8 0 fdescpl 432 45383 0 45369 2 0 2 2 0 8 0 filepl 120 119904 0 119807 4 0 4 4 0 8 0 lockfpl 104 3053 0 3052 1 0 1 1 0 8 0 lockfspl 48 1329 0 1328 1 0 1 1 0 8 0 sessionpl 120 18 0 8 1 0 1 1 0 8 0 pgrppl 48 265 0 255 1 0 1 1 0 8 0 ucredpl 96 6981 0 6974 1 0 1 1 0 8 0 zombiepl 144 45369 0 45369 1 0 1 1 0 8 1 processpl 944 45397 0 45369 4 0 4 4 0 8 0 procpl 632 91384 0 91349 6 2 4 4 0 8 0 sockpl 400 18226 0 18209 54 52 2 3 0 8 0 mcl64k 65536 36 0 36 20 20 0 1 0 8 0 mcl16k 16384 42 0 42 9 9 0 1 0 8 0 mcl12k 12288 301 0 301 44 43 1 1 0 8 1 mcl9k 9216 485 0 485 44 43 1 1 0 8 1 mcl8k 8192 2311 0 2311 26 26 0 1 0 8 0 mcl4k 4096 1090 0 1090 54 53 1 1 0 8 1 mcl2k2 2112 83 0 83 22 21 1 1 0 8 1 mcl2k 2048 64854 0 64813 14 8 6 10 0 8 0 mtagpl 96 2 0 2 1 1 0 1 0 8 0 mbufpl 256 319266 0 319157 43 34 9 14 0 8 1 bufpl 280 49086 0 43696 386 0 386 386 0 8 0 anonpl 16 2701133 0 2697186 30 10 20 20 0 107 0 amapchunkpl 152 1388719 0 1388595 40344 9 40335 40335 0 158 40328 amappl16 192 141425 0 141260 21 12 9 9 0 8 0 amappl15 184 5 0 3 1 0 1 1 0 8 0 amappl14 176 5 0 4 1 0 1 1 0 8 0 amappl13 168 37925 0 37922 1 0 1 1 0 8 0 amappl12 160 18 0 14 1 0 1 1 0 8 0 amappl11 152 59 0 49 1 0 1 1 0 8 0 amappl10 144 4 0 2 1 0 1 1 0 8 0 amappl9 136 360 0 359 1 0 1 1 0 8 0 amappl8 128 575 0 473 5 1 4 4 0 8 0 amappl7 120 249 0 242 1 0 1 1 0 8 0 amappl6 112 114 0 101 1 0 1 1 0 8 0 amappl5 104 45497 0 45488 1 0 1 1 0 8 0 amappl4 96 804 0 773 1 0 1 1 0 8 0 amappl3 88 38896 0 38890 1 0 1 1 0 8 0 amappl2 80 320049 0 319986 2 0 2 2 0 8 0 amappl1 72 1132697 0 1132260 24 14 10 18 0 8 0 amappl 80 91644 0 91600 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 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 132 0 2 3 0 3 3 0 8 0 uaddrrnd 24 45383 0 45369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 45383 0 45369 1 0 1 1 0 8 0 vmmpekpl 168 212661 0 212639 2 0 2 2 0 8 0 vmmpepl 168 5340852 0 5339521 141 77 64 71 0 357 6 vmsppl 272 45382 0 45369 2 1 1 2 0 8 0 pdppl 4096 90772 0 90738 6 1 5 6 0 8 0 pvpl 32 7758373 0 7751518 276 214 62 112 0 265 0 pmappl 200 45382 0 45369 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 451 0 238 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82398933) at panic+0x15e sys/kern/subr_prf.c:218 malloc(2d5a6348,62,1) at malloc+0x9bd sys/kern/kern_malloc.c:344 amap_alloc1(5ab4c68c,1,0) at amap_alloc1+0x207 sys/uvm/uvm_amap.c:338 amap_alloc(5ab4c68c000,1,0) at amap_alloc+0x80 sys/uvm/uvm_amap.c:393 uvm_mapanon(fffffd806bc0a330,ffff80001fb93538,5ab4c68c000,0,1030700) at uvm_mapanon+0x8b9 sys/uvm/uvm_map.c:1109 sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c uvm_mmapanon sys/uvm/uvm_mmap.c:949 [inline] sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c sys/uvm/uvm_mmap.c:423 syscall(ffff80001fb936b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:567 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ad5debe0f0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82398933) at panic+0x15e sys/kern/subr_prf.c:218 malloc(2d5a6348,62,1) at malloc+0x9bd sys/kern/kern_malloc.c:344 amap_alloc1(5ab4c68c,1,0) at amap_alloc1+0x207 sys/uvm/uvm_amap.c:338 amap_alloc(5ab4c68c000,1,0) at amap_alloc+0x80 sys/uvm/uvm_amap.c:393 uvm_mapanon(fffffd806bc0a330,ffff80001fb93538,5ab4c68c000,0,1030700) at uvm_mapanon+0x8b9 sys/uvm/uvm_map.c:1109 sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c uvm_mmapanon sys/uvm/uvm_mmap.c:949 [inline] sys_mmap(ffff80001d8be2a0,ffff80001fb935e8,ffff80001fb93630) at sys_mmap+0x98c sys/uvm/uvm_mmap.c:423 syscall(ffff80001fb936b0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:567 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ad5debe0f0, count: -9