panic: malloc: allocation too large, type = 31, size = 4294965990 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *418197 9916 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83359bd5) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(fffffae6,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80003c977750,ffff8000319115f0,ffff800031911540) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff8000319115f0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000319115f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x291468556e0, count: 9 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 *cpu0: malloc: allocation too large, type = 31, size = 4294965990 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83359bd5) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(fffffae6,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80003c977750,ffff8000319115f0,ffff800031911540) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff8000319115f0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000319115f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x291468556e0, count: -6 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800031911270 rbx 0 rdx 0xffff800001469300 rcx 0 rax 0xffff80003c977750 r8 0x101010101010101 r9 0x8080808080808080 r10 0x93666866497bbe9d r11 0x46807d62bca2bea0 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff825e3485 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800031911260 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=418197 pid=9916 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=81, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c976560,0xffff80003c976050 process=0xffff8000ffff2fe8 user=0xffff80003190c000, vmspace=0xfffffd806bfcdcc0 estcpu=31, cpticks=1, pctcpu=0.1, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71031 426552 18201 0 2 0 syz-executor 95496 100484 79371 0 2 0 syz-executor 95496 64942 79371 0 3 0x4000080 fsleep syz-executor 95496 214966 79371 0 3 0x4000080 fsleep syz-executor 17326 77768 77217 0 2 0x10 syz-executor 17326 371397 77217 0 2 0x4000011 syz-executor 49315 377648 59014 0 2 0 syz-executor 49315 146855 59014 0 2 0x4000000 syz-executor 49315 341455 59014 0 3 0x4000080 fsleep syz-executor 49315 377325 59014 0 3 0x4000080 fsleep syz-executor 9916 246878 5449 0 2 0 syz-executor * 9916 418197 5449 0 7 0x4000000 syz-executor 9916 351946 5449 0 3 0x4000080 fsleep syz-executor 91691 224779 17583 0 3 0x82 nanoslp syz-executor 41196 214770 0 0 3 0x14280 nfsidl nfsio 65023 285176 0 0 3 0x14280 nfsidl nfsio 10166 181471 0 0 3 0x14280 nfsidl nfsio 6734 406107 0 0 3 0x14280 nfsidl nfsio 15377 426724 0 0 3 0x14280 nfsidl nfsio 99491 502421 0 0 3 0x14280 nfsidl nfsio 84259 9832 0 0 3 0x14280 nfsidl nfsio 19208 419491 0 0 3 0x14280 nfsidl nfsio 85383 222774 0 0 3 0x14280 nfsidl nfsio 82804 342123 0 0 3 0x14280 nfsidl nfsio 44054 365521 0 0 3 0x14280 nfsidl nfsio 27397 89070 0 0 3 0x14280 nfsidl nfsio 70838 16600 0 0 3 0x14280 nfsidl nfsio 55814 431122 0 0 3 0x14280 nfsidl nfsio 33971 37734 0 0 3 0x14280 nfsidl nfsio 53526 129829 0 0 3 0x14280 nfsidl nfsio 66456 299049 0 0 3 0x14280 nfsidl nfsio 87213 139011 0 0 3 0x14280 nfsidl nfsio 51029 387107 0 0 3 0x14280 nfsidl nfsio 78968 320179 0 0 3 0x14280 nfsidl nfsio 72306 460451 0 0 3 0x14200 acct acct 3536 36027 0 0 3 0x14200 bored sosplice 12856 515132 17583 0 3 0x82 wait syz-executor 77217 256933 17583 0 3 0x82 nanoslp syz-executor 18201 57457 17583 0 2 0x3 syz-executor 79371 101550 17583 0 3 0x82 nanoslp syz-executor 5449 205117 17583 0 3 0x82 nanoslp syz-executor 59014 128662 17583 0 3 0x82 nanoslp syz-executor 47443 136507 17583 0 2 0x3 syz-executor 17583 495233 7402 0 3 0x82 kqread syz-executor 7402 359087 50571 0 3 0x10008a sigsusp ksh 50571 295204 70467 0 3 0x98 kqread sshd-session 70467 157307 33632 0 3 0x92 kqread sshd-session 69253 257854 1 0 3 0x100083 ttyin getty 33632 309438 1 0 3 0x88 kqread sshd 56657 253312 33594 73 3 0x1100090 kqread syslogd 33594 156842 1 0 3 0x100082 sbwait syslogd 8636 303052 1 0 3 0x100080 kqread resolvd 65345 195349 80595 77 3 0x100092 kqread dhcpleased 34307 478884 80595 77 3 0x100092 kqread dhcpleased 80595 31684 1 0 3 0x80 kqread dhcpleased 49046 507069 0 0 3 0x14200 bored smr 2872 477962 0 0 2 0x14200 zerothread 54029 69776 0 0 3 0x14200 aiodoned aiodoned 33313 267253 0 0 3 0x14200 syncer update 1522 496185 0 0 3 0x14200 cleaner cleaner 24240 286906 0 0 3 0x14200 reaper reaper 50635 233502 0 0 3 0x14200 pgdaemon pagedaemon 22274 488470 0 0 3 0x14200 bored viomb 16614 35338 0 0 3 0x40014200 acpi0 acpi0 4596 238284 0 0 3 0x14200 bored softnet3 46233 28794 0 0 3 0x14200 bored softnet2 32442 3427 0 0 3 0x14200 bored softnet1 53210 327768 0 0 3 0x14200 bored softnet0 82427 266739 0 0 3 0x14200 bored systqmp 96822 39297 0 0 3 0x14200 bored systq 9055 297587 0 0 3 0x40014200 tmoslp softclock 84957 314059 0 0 3 0x40014200 idle0 1 405761 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 10212 11205K 11350K 166960K 12444 0 pcb 18 14K 16K 166960K 251 0 rtable 207 7K 8K 166960K 589 0 pf 32 13K 15K 166960K 87 0 ifaddr 35 6K 7K 166960K 76 0 ifgroup 46 2K 2K 166960K 122 0 sysctl 3 1K 1K 166960K 3 0 counters 29 17K 17K 166960K 60 0 ioctlops 0 0K 4K 166960K 129 0 iov 0 0K 16K 166960K 40 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1407 89K 89K 166960K 2053 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 88 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 816 0 sigio 0 0K 0K 166960K 74 0 proc 60 59K 75K 166960K 566 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 97 0 in_multi 79 5K 7K 166960K 153 0 ether_multi 1 0K 0K 166960K 11 0 mrt 0 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 532 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 215 156K 174K 166960K 8665 0 UVM aobj 29 3K 3K 166960K 32 0 pinsyscall 38 76K 96K 166960K 1871 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 46 0 NDP 10 0K 1K 166960K 51 0 temp 67 8681K 8759K 166960K 34896 0 kqueue 13 20K 38K 166960K 151 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 128 0 125 2 0 2 2 0 8 1 rtentry 136 208 0 116 4 0 4 4 0 8 0 unpcb 144 1031 0 1016 9 8 1 6 0 8 0 syncache 336 7 0 7 2 2 0 1 0 8 0 tcpqe 32 5 0 5 2 2 0 1 0 8 0 tcpcb 808 315 0 306 12 10 2 8 0 8 1 arp 88 21 0 7 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 344 1120 0 1106 13 10 3 8 0 8 1 nd6 104 35 0 16 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 20 0 20 3 2 1 1 0 8 1 pppxif 1384 3 0 3 2 2 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 320 3 0 2 2 1 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 4 2 1 1 1 0 8 0 pfstate 344 4 0 2 2 1 1 1 0 8 0 pfrule 1344 4 0 3 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 603 0 218 30 2 28 30 0 8 2 art_table 32 606 0 218 4 0 4 4 0 8 0 art_node 16 141 0 57 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 37 1 0 1 1 0 8 0 semapl 112 86 0 76 1 0 1 1 0 8 0 shmpl 112 29 0 3 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2805 0 1305 95 0 95 95 0 8 0 ffsino 248 2805 0 1305 95 0 95 95 0 8 0 nchpl 144 3936 0 2257 63 0 63 63 0 8 0 rtmask 32 3 0 3 3 2 1 1 0 8 1 uvmvnodes 80 3360 0 0 69 0 69 69 0 8 0 vnodes 216 3360 0 0 187 0 187 187 0 8 0 namei 1024 13762 0 13762 3 2 1 2 0 8 1 kstatmem 264 64 0 44 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 12293 0 12293 10 8 2 8 1 8 2 plimitpl 152 380 0 364 1 0 1 1 0 8 0 sigapl 424 1105 0 1038 9 1 8 8 0 8 0 futexpl 64 10779 0 10774 1 0 1 1 0 8 0 knotepl 120 26725 0 26678 25 15 10 17 0 8 8 kqueuepl 184 423 0 414 7 4 3 4 0 8 2 pipepl 296 213 0 186 8 5 3 8 0 8 0 fdescpl 440 1067 0 1038 5 1 4 5 0 8 0 filepl 120 7699 0 7485 16 7 9 15 0 8 1 lockfpl 104 330 0 328 1 0 1 1 0 8 0 lockfspl 48 95 0 93 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 44 0 28 1 0 1 1 0 8 0 ucredpl 104 911 0 896 1 0 1 1 0 8 0 zombiepl 144 1139 0 1137 1 0 1 1 0 8 0 processpl 1112 1105 0 1038 5 0 5 5 0 8 0 procpl 656 2158 0 2083 9 1 8 8 0 8 0 sosppl 168 3 0 3 2 2 0 1 0 8 0 sockpl 528 2368 0 2336 17 12 5 12 0 8 2 mcl64k 65536 53 0 53 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 10 0 10 3 2 1 1 0 8 1 mcl4k 4096 3331 0 3280 16 8 8 14 0 8 1 mcl2k 2048 906 0 905 3 1 2 2 0 8 1 mtagpl 96 34 0 12 1 0 1 1 0 8 0 mbufpl 256 11342 0 11149 14 0 14 14 0 8 0 bufpl 280 3673 0 120 254 0 254 254 0 8 0 anonpl 24 153226 0 150003 82 37 45 52 0 187 12 amapchunkpl 152 28605 0 28171 39 13 26 32 0 158 7 amappl16 200 2367 0 2326 37 22 15 15 0 8 11 amappl15 192 70 0 70 1 1 0 1 0 8 0 amappl14 184 111 0 101 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1691 0 1663 2 0 2 2 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 12 0 12 2 2 0 1 0 8 0 amappl9 144 280 0 280 1 1 0 1 0 8 0 amappl8 136 33 0 32 1 0 1 1 0 8 0 amappl7 128 98 0 88 1 0 1 1 0 8 0 amappl6 120 186 0 182 1 0 1 1 0 8 0 amappl5 112 126 0 119 1 0 1 1 0 8 0 amappl4 104 292 0 276 1 0 1 1 0 8 0 amappl3 96 5596 0 5498 4 0 4 4 0 8 0 amappl2 88 657 0 600 2 0 2 2 0 8 0 amappl1 80 11178 0 10628 15 2 13 14 0 8 0 amappl 88 7829 0 7679 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 2 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 72 31 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1067 0 1038 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1067 0 1038 1 0 1 1 0 8 0 vmmpekpl 168 9791 0 9744 3 0 3 3 0 8 0 vmmpepl 168 71619 0 69762 111 15 96 98 0 357 8 vmsppl 360 1066 0 1038 4 1 3 4 0 8 0 rwobjpl 32 23041 0 18806 37 0 37 37 0 8 1 pdppl 4096 2141 0 2076 109 42 67 83 0 8 2 pvpl 32 446709 0 438113 197 76 121 133 0 265 31 pmappl 216 1066 0 1038 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 298 0 71 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83359bd5) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(fffffae6,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80003c977750,ffff8000319115f0,ffff800031911540) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff8000319115f0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000319115f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x291468556e0, count: -6 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83359bd5) at panic+0x1cf sys/kern/subr_prf.c:198 malloc(fffffae6,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80003c977750,ffff8000319115f0,ffff800031911540) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff8000319115f0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff8000319115f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x291468556e0, count: -6