login: panic: malloc: allocation too large, type = 31, size = 1292580204 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 333026 50658 0 0 0 0 syz-executor * 90306 50658 0 0 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833925f0) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(4d0b356c,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80002a27b010,ffff80003c464430,ffff80003c464380) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff80003c464430) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c464430) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x87521662e0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: malloc: allocation too large, type = 31, size = 1292580204 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833925f0) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(4d0b356c,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80002a27b010,ffff80003c464430,ffff80003c464380) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff80003c464430) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c464430) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x87521662e0, count: -6 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80003c4640a0 rbx 0xffff8000299dedcf rdx 0xffff80000145d7c0 rcx 0xffff80002a27b010 rax 0xffff8000299ddff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe67d2fdcee7eaf92 r11 0xe7991a19cbb51a5c r12 0xffff8000299debd0 r13 0 r14 0 r15 0x1 rip 0xffffffff81e89185 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80003c464090 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=90306 pid=50658 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a2c1ac0,0xffff80002a27cab0 process=0xffff8000ffff2160 user=0xffff80003c45f000, vmspace=0xfffffd806e070010 estcpu=27, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81814 425891 13395 0 2 0 syz-executor 59812 164080 19480 0 2 0 syz-executor 59812 523454 19480 0 2 0x4000000 syz-executor 23297 416200 33848 0 2 0 syz-executor 23297 347178 33848 0 3 0x4000080 kqread syz-executor 30256 327654 8849 0 2 0 syz-executor 30256 159025 8849 0 3 0x4000080 msgwait syz-executor 30256 371958 8849 0 3 0x4000080 msgwait syz-executor 30256 167998 8849 0 3 0x4000080 fsleep syz-executor 53903 284463 94073 0 2 0 syz-executor 53903 69941 94073 0 3 0x4000080 fsleep syz-executor 70033 230958 32064 0 3 0x80 nanoslp syz-executor 70033 264993 32064 0 3 0x4000080 fsleep syz-executor 70033 224444 32064 0 2 0x4000000 syz-executor 50658 333026 85146 0 7 0 syz-executor 50658 507696 85146 0 3 0x4000080 kqsel syz-executor *50658 90306 85146 0 7 0x4000000 syz-executor 18521 416727 29885 0 2 0 syz-executor 18521 435136 29885 0 3 0x4000080 sbwait syz-executor 18521 381571 29885 0 3 0x4000080 fsleep syz-executor 12783 441428 1 0 3 0x100083 ttyin getty 27712 350745 0 0 3 0x14200 bored sosplice 94073 41323 32287 0 3 0x82 nanoslp syz-executor 33848 371704 32287 0 2 0x2 syz-executor 29885 327942 32287 0 3 0x82 nanoslp syz-executor 13395 505275 32287 0 3 0x82 nanoslp syz-executor 8849 29716 32287 0 3 0x82 nanoslp syz-executor 19480 386909 32287 0 3 0x82 nanoslp syz-executor 32064 177695 32287 0 3 0x82 nanoslp syz-executor 85146 485288 32287 0 3 0x82 nanoslp syz-executor 32287 203925 92528 0 3 0x82 kqread syz-executor 92528 28173 83806 0 3 0x10008a sigsusp ksh 83806 427223 13275 0 3 0x98 kqread sshd-session 13275 383431 53020 0 3 0x92 kqread sshd-session 53020 188803 1 0 3 0x88 kqread sshd 37261 474639 89068 74 3 0x1100092 bpf pflogd 89068 201690 1 0 3 0x80 sbwait pflogd 69993 314606 35680 73 3 0x1100010 ffs_fsync syslogd 35680 371822 1 0 3 0x100082 sbwait syslogd 56421 36872 1 0 3 0x100080 kqread resolvd 75859 314072 30693 77 3 0x100092 kqread dhcpleased 94275 198246 30693 77 3 0x100092 kqread dhcpleased 30693 207122 1 0 3 0x80 kqread dhcpleased 18732 385938 0 0 3 0x14200 bored smr 8541 328778 0 0 2 0x14200 zerothread 92251 439413 0 0 3 0x14200 aiodoned aiodoned 1411 502295 0 0 3 0x14200 syncer update 4443 315492 0 0 3 0x14200 cleaner cleaner 20292 189355 0 0 3 0x14200 reaper reaper 46783 6729 0 0 3 0x14200 pgdaemon pagedaemon 78369 217847 0 0 3 0x14200 bored viomb 57349 348701 0 0 3 0x40014200 acpi0 acpi0 2513 324652 0 0 3 0x40014200 idle1 97383 433515 0 0 3 0x14200 bored softnet3 98655 103592 0 0 3 0x14200 bored softnet2 54288 385727 0 0 3 0x14200 bored softnet1 77533 506103 0 0 3 0x14200 bored softnet0 29238 419447 0 0 3 0x14200 bored systqmp 6359 455828 0 0 3 0x14200 bored systq 59083 383863 0 0 3 0x14200 tmoslp softclockmp 46344 305026 0 0 3 0x40014200 tmoslp softclock 72887 171841 0 0 3 0x40014200 idle0 1 490690 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 50658 (syz-executor) thread 0xffff80002a27b010 (90306) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838dc0c8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #1 syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 Process 69993 (syslogd) thread 0xffff80002a27cd48 (314606) exclusive rrwlock inode r = 0 (0xfffffd806e261770) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 rrw_enter+0xc6 sys/kern/kern_rwlock.c:616 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:527 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:570 #5 sys_fsync+0x152 sys/kern/vfs_syscalls.c:2936 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 11086K 11411K 166960K 11570 0 pcb 19 12K 12K 166960K 64 0 rtable 187 5K 6K 166960K 385 0 pf 37 18K 22K 166960K 56 0 ifaddr 38 6K 7K 166960K 50 0 ifgroup 59 2K 2K 166960K 63 0 sysctl 1 1K 1K 166960K 2 0 counters 66 36K 36K 166960K 70 0 ioctlops 0 0K 4K 166960K 1506 0 iov 0 0K 12K 166960K 12 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1345 85K 85K 166960K 1540 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 352 0 sigio 0 0K 0K 166960K 4 0 proc 72 91K 164K 166960K 577 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 29 0 in_multi 77 5K 7K 166960K 111 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 445 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 242 171K 177K 166960K 4898 0 UVM aobj 14 4K 4K 166960K 15 0 pinsyscall 43 86K 104K 166960K 1478 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 13 0 NDP 13 0K 2K 166960K 32 0 temp 40 8679K 8745K 166960K 16508 0 kqueue 16 26K 28K 166960K 56 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 56 0 52 1 0 1 1 0 8 0 rtentry 176 118 0 33 6 0 6 6 0 8 0 unpcb 144 153 0 134 2 0 2 2 0 8 1 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 808 88 0 83 4 0 4 4 0 8 3 arp 128 20 0 5 1 0 1 1 0 8 0 inpcb 384 308 0 297 6 0 6 6 0 8 3 nd6 144 25 0 9 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 2 0 2 1 0 1 1 0 8 1 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 40 0 0 1 0 1 1 0 8 0 pfstkey 128 40 0 0 2 0 2 2 0 8 0 pfstate 384 39 0 0 4 0 4 4 0 8 0 pfrule 1344 23 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 479 0 130 29 0 29 29 0 8 5 art_table 32 480 0 130 4 0 4 4 0 8 0 art_node 16 117 0 40 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 10 0 2 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 1968 0 461 95 0 95 95 0 8 0 ffsino 288 1968 0 461 109 0 109 109 0 8 0 nchpl 144 2474 0 786 63 0 63 63 0 8 0 uvmvnodes 80 2152 0 0 44 0 44 44 0 8 0 vnodes 216 2152 0 0 120 0 120 120 0 8 0 namei 1024 8154 0 8154 2 1 1 2 0 8 1 percpumem 16 50 0 2 1 0 1 1 0 8 0 kstatmem 264 30 0 4 2 0 2 2 0 8 0 scxspl 216 7685 0 7684 3 2 1 2 1 8 0 plimitpl 152 50 0 33 1 0 1 1 0 8 0 sigapl 424 664 0 613 7 1 6 7 0 8 0 futexpl 64 3506 0 3502 1 0 1 1 0 8 0 knotepl 120 521 0 0 16 0 16 16 0 8 0 kqueuepl 224 90 0 76 1 0 1 1 0 8 0 pipepl 336 121 0 93 3 0 3 3 0 8 0 fdescpl 520 645 0 613 3 0 3 3 0 8 0 filepl 160 3013 0 2786 12 0 12 12 0 8 2 lockfpl 104 70 0 68 1 0 1 1 0 8 0 lockfspl 48 29 0 27 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 39 0 22 1 0 1 1 0 8 0 ucredpl 104 266 0 253 1 0 1 1 0 8 0 zombiepl 144 613 0 613 1 0 1 1 0 8 1 processpl 1216 664 0 613 5 0 5 5 0 8 0 procpl 680 1060 0 997 6 0 6 6 0 8 0 srpgc 96 4 0 4 1 0 1 1 0 8 1 sosppl 168 6 0 6 1 0 1 1 0 8 1 sockpl 728 526 0 492 7 0 7 7 0 8 3 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 14 0 0 1 0 1 1 0 8 0 mbufpl 256 179 0 0 11 0 11 11 0 8 0 bufpl 280 2754 0 127 188 0 188 188 0 8 0 anonpl 32 5541 0 0 45 0 45 45 0 246 0 amapchunkpl 152 14752 0 14248 27 2 25 27 0 158 5 amappl16 200 1996 0 1968 5 3 2 5 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 121 0 109 1 0 1 1 0 8 0 amappl13 176 6 0 5 1 0 1 1 0 8 0 amappl12 168 1302 0 1271 4 2 2 3 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 17 0 17 1 1 0 1 0 8 0 amappl9 144 253 0 253 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 114 0 100 1 0 1 1 0 8 0 amappl6 120 181 0 178 1 0 1 1 0 8 0 amappl5 112 123 0 114 1 0 1 1 0 8 0 amappl4 104 329 0 310 1 0 1 1 0 8 0 amappl3 96 2783 0 2667 4 0 4 4 0 8 1 amappl2 88 664 0 602 2 0 2 2 0 8 0 amappl1 80 9691 0 9088 15 0 15 15 0 8 0 amappl 88 4143 0 3975 5 0 5 5 0 92 0 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 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 72 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 645 0 613 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 645 0 613 1 0 1 1 0 8 0 vmmpekpl 168 7181 0 7146 2 0 2 2 0 8 0 vmmpepl 168 47342 0 45331 93 0 93 93 0 357 4 vmsppl 480 644 0 613 5 0 5 5 0 8 1 rwobjpl 72 17504 0 14401 57 0 57 57 0 8 0 pdppl 4096 1298 0 1226 108 36 72 88 0 8 0 pvpl 32 13433 0 0 109 0 109 109 0 265 0 pmappl 256 644 0 613 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 399 0 40 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff838b1ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff838dbec0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff838dbec0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002a2d6670,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7f5ffd0dc5e0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff838b1ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff838dbec0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff838dbec0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff80002a2d6670,ffff800000079f00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:559 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x7f5ffd0dc5e0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833925f0) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(4d0b356c,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80002a27b010,ffff80003c464430,ffff80003c464380) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff80003c464430) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c464430) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x87521662e0, count: 9 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff833925f0) at panic+0x1e5 sys/kern/subr_prf.c:198 malloc(4d0b356c,1f,1) at malloc+0xcf4 sys/kern/kern_malloc.c:334 sys_semop(ffff80002a27b010,ffff80003c464430,ffff80003c464380) at sys_semop+0x234 sys/kern/sysv_sem.c:564 syscall(ffff80003c464430) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c464430) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x87521662e0, count: -6