panic: malloc: allocation too large, type = 2, sipzaen i= c1:84 4k6er74n4e0l7 3di70ag9n55os1t296ic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 690 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *314997 10047 0 0 0x4000000 1 syz-executor.0 283774 45263 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821ff1b8,ffffffff821ebffe,2b2,ffffffff821d067d) at __assert+0x2b sys/kern/subr_prf.c:154 proc_trampoline_mp() at proc_trampoline_mp+0x123 end trace frame: 0x0, count: 11 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 = 18446744073709551296 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 __assert(ffffffff821ff1b8,ffffffff821ebffe,2b2,ffffffff821d067d) at __assert+0x2b sys/kern/subr_prf.c:154 proc_trampoline_mp() at proc_trampoline_mp+0x123 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000219635f0 rbx 0xffff8000219636a0 rdx 0xffff800020acfb50 rcx 0 rax 0 r8 0xffffffff81e023df kprintf+0x16f r9 0x1 r10 0x25 r11 0xf1abba7f451445f8 r12 0x3000000008 r13 0xffff800021963600 r14 0x104 r15 0x1 rip 0xffffffff818a6868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000219635e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=314997 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800020acea08,0xffffffff8263bd20 process=0xffff800020adc380 user=0xffff80002195e000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 10047 325996 74726 0 2 0 syz-executor.0 *10047 314997 74726 0 7 0x4000000 syz-executor.0 45263 52823 57292 0 2 0 syz-executor.1 45263 283774 57292 0 7 0x4000000 syz-executor.1 45263 353509 57292 0 2 0x4000000 syz-executor.1 57292 356561 93900 0 3 0x82 nanosleep syz-executor.1 74726 178180 93900 0 3 0x82 nanosleep syz-executor.0 28538 495096 0 0 3 0x14200 acct acct 99823 381999 1 0 3 0x100083 ttyin getty 46553 378865 0 0 3 0x14200 bored sosplice 93900 157853 33828 0 3 0x82 thrsleep syz-fuzzer 93900 201340 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 63922 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 229225 33828 0 3 0x4000082 kqread syz-fuzzer 93900 492294 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 137308 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 210093 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 36782 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 350513 33828 0 3 0x4000082 thrsleep syz-fuzzer 93900 519574 33828 0 3 0x4000082 thrsleep syz-fuzzer 33828 108793 66953 0 3 0x10008a pause ksh 66953 324959 21123 0 3 0x92 select sshd 21123 327583 1 0 3 0x80 select sshd 39535 269029 10495 74 3 0x100092 bpf pflogd 10495 135404 1 0 3 0x80 netio pflogd 58238 27302 12640 73 3 0x100090 kqread syslogd 12640 201840 1 0 3 0x100082 netio syslogd 41175 417576 1 77 3 0x100090 poll dhclient 78361 446838 1 0 3 0x80 poll dhclient 97196 454655 0 0 2 0x14200 zerothread 48275 399155 0 0 3 0x14200 aiodoned aiodoned 21145 332933 0 0 3 0x14200 syncer update 46415 81495 0 0 3 0x14200 cleaner cleaner 37262 450684 0 0 3 0x14200 reaper reaper 29413 500136 0 0 3 0x14200 pgdaemon pagedaemon 26599 234413 0 0 3 0x14200 bored crynlk 24007 140216 0 0 3 0x14200 bored crypto 94173 14517 0 0 3 0x40014200 acpi0 acpi0 12022 395778 0 0 3 0x40014200 idle1 91743 21052 0 0 3 0x14200 bored softnet 72556 431120 0 0 3 0x14200 bored systqmp 352 97554 0 0 3 0x14200 bored systq 55611 371648 0 0 3 0x40014200 bored softclock 30592 456609 0 0 3 0x40014200 idle0 31432 143094 0 0 3 0x14200 bored smr 1 294556 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 45263 (syz-executor.1) thread 0xffff800020aceef8 (283774) 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 (0xffffffff826394e0) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9525 7074K 7588K 78643K 12906 0 0 pcb 13 8K 8K 78643K 165 0 0 rtable 108 4K 4K 78643K 564 0 0 ifaddr 59 13K 14K 78643K 189 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1639 0 0 iov 0 0K 24K 78643K 1466 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 2074 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 30 0 0 VM map 2 1K 1K 78643K 4 0 0 sem 12 0K 1K 78643K 2294 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2263 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 61 63K 83K 78643K 996 0 0 subproc 32 2K 2K 78643K 102 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 71 0 0 in_multi 33 2K 2K 78643K 113 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 337 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 101 21K 30K 78643K 7617 0 0 UVM aobj 130 6K 6K 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 141 0 0 NDP 12 0K 0K 78643K 57 0 0 temp 172 3555K 4194K 78643K 22883 0 0 kqueue 0 0K 0K 78643K 6 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 15 0 9 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 85 0 83 1 0 1 1 0 8 0 rtentry 112 86 0 42 2 0 2 2 0 8 0 unpcb 120 1846 0 1836 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5053 0 5053 1 1 0 1 0 8 0 tcpcb 544 196 0 192 1 0 1 1 0 8 0 inpcb 280 637 0 630 2 1 1 2 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 17 0 17 4 4 0 1 0 8 0 pffrag 232 3 0 3 2 2 0 1 0 482 0 pffrnode 88 3 0 3 2 2 0 1 0 8 0 pffrent 40 8 0 8 3 3 0 1 0 8 0 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 51 0 47 1 0 1 1 0 8 0 pfstkey 112 51 0 47 1 0 1 1 0 8 0 pfstate 328 51 0 47 3 2 1 3 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 391 0 173 14 0 14 14 0 8 0 art_table 32 392 0 173 2 0 2 2 0 8 0 art_node 16 85 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 8 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 2292 0 2282 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 4715 0 3277 47 0 47 47 0 8 0 ffsino 272 4715 0 3277 97 0 97 97 0 8 0 nchpl 144 9097 0 7486 61 0 61 61 0 8 0 uvmvnodes 72 5382 0 0 98 0 98 98 0 8 0 vnodes 208 5382 0 0 284 0 284 284 0 8 0 namei 1024 32062 0 32062 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 2 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 29813 0 29813 20 19 1 7 0 8 1 plimitpl 152 97 0 89 1 0 1 1 0 8 0 sigapl 432 2452 0 2436 3 1 2 3 0 8 0 futexpl 56 48832 0 48832 1 0 1 1 0 8 1 knotepl 112 443 0 424 6 4 2 3 0 8 1 kqueuepl 104 349 0 346 1 0 1 1 0 8 0 pipepl 112 1010 0 987 5 4 1 2 0 8 0 fdescpl 488 2453 0 2436 3 0 3 3 0 8 0 filepl 152 19045 0 18931 10 5 5 6 0 8 0 lockfpl 104 2734 0 2728 1 0 1 1 0 8 0 lockfspl 48 567 0 564 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 41 0 30 1 0 1 1 0 8 0 ucredpl 96 4987 0 4977 1 0 1 1 0 8 0 zombiepl 144 2436 0 2436 2 1 1 1 0 8 1 processpl 896 2470 0 2436 4 0 4 4 0 8 0 procpl 632 6514 0 6468 6 1 5 5 0 8 0 srpgc 64 8 0 8 4 4 0 1 0 8 0 sosppl 128 14 0 14 5 5 0 1 0 8 0 sockpl 384 2582 0 2563 11 8 3 4 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 144 0 0 16 0 16 16 0 8 0 mtagpl 80 19 0 0 1 0 1 1 0 8 0 mbufpl 256 261 0 0 9 0 9 9 0 8 0 bufpl 256 11386 0 4338 441 0 441 441 0 8 0 anonpl 16 504392 0 488206 125 59 66 89 0 124 0 amapchunkpl 152 13206 0 13082 15 9 6 10 0 158 0 amappl16 192 28664 0 27652 113 62 51 63 0 8 0 amappl15 184 3 0 2 1 0 1 1 0 8 0 amappl14 176 1174 0 1170 1 0 1 1 0 8 0 amappl13 168 508 0 507 1 0 1 1 0 8 0 amappl12 160 174 0 174 2 2 0 1 0 8 0 amappl11 152 66 0 51 1 0 1 1 0 8 0 amappl10 144 22 0 18 1 0 1 1 0 8 0 amappl9 136 1046 0 1038 1 0 1 1 0 8 0 amappl8 128 576 0 552 1 0 1 1 0 8 0 amappl7 120 57 0 51 1 0 1 1 0 8 0 amappl6 112 82 0 70 1 0 1 1 0 8 0 amappl5 104 341 0 327 1 0 1 1 0 8 0 amappl4 96 1602 0 1569 1 0 1 1 0 8 0 amappl3 88 2414 0 2405 1 0 1 1 0 8 0 amappl2 80 18942 0 18862 3 1 2 3 0 8 0 amappl1 72 61259 0 60808 25 15 10 20 0 8 0 amappl 80 6898 0 6859 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 2455 0 2436 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2455 0 2436 1 0 1 1 0 8 0 vmmpekpl 168 18771 0 18734 2 0 2 2 0 8 0 vmmpepl 168 317167 0 314926 210 112 98 110 0 357 0 vmsppl 368 2452 0 2436 2 0 2 2 0 8 0 pdppl 4096 4917 0 4876 7 1 6 6 0 8 0 pvpl 32 1198782 0 1178727 276 114 162 213 0 265 0 pmappl 232 2454 0 2438 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 603 0 5 18 0 18 18 0 8 0