p53/dev/ttyCcfg./bus./buspanic: malloc: allocation too large, type = 2, sizpanic: kernel diagnostic 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 *190948 4736 60929 0x10 0x4000000 1 syz-executor.1 503426 46597 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 __assert(ffffffff821ffdb8,ffffffff821eefcb,2b2,ffffffff821cfeeb) 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 = 18446744073709550176 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(ffffffff821ffdb8,ffffffff821eefcb,2b2,ffffffff821cfeeb) 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 0xffff800022d87630 rbx 0xffff800022d876e0 rdx 0xffff800020ab0780 rcx 0 rax 0 r8 0xffffffff81c94dcf kprintf+0x16f r9 0x1 r10 0x25 r11 0xa2cf83619803e261 r12 0x3000000008 r13 0xffff800022d87640 r14 0x104 r15 0x1 rip 0xffffffff820367f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d87620 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=190948 stat=onproc flags process=10 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffffffff826568e0 process=0xffff800020a8aa90 user=0xffff800022d82000, 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 4736 178601 91678 60929 2 0x10 syz-executor.1 4736 239957 91678 60929 3 0x4000090 kqread syz-executor.1 4736 65036 91678 60929 2 0x4000010 syz-executor.1 * 4736 190948 91678 60929 7 0x4000010 syz-executor.1 46597 467498 90466 0 2 0 syz-executor.0 46597 503426 90466 0 7 0x4000000 syz-executor.0 46597 189896 90466 0 3 0x4000080 kqread syz-executor.0 46597 495470 90466 0 3 0x4000080 fsleep syz-executor.0 91678 82089 65047 0 3 0x82 nanosleep syz-executor.1 92379 307881 1 0 3 0x100083 ttyin getty 90466 133917 65047 0 3 0x82 nanosleep syz-executor.0 88776 194886 0 0 3 0x14200 bored sosplice 65047 182815 82848 0 3 0x82 thrsleep syz-fuzzer 65047 348042 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 333846 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 1699 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 365153 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 304490 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 138396 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 261797 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 319554 82848 0 3 0x4000082 thrsleep syz-fuzzer 65047 479315 82848 0 3 0x4000082 kqread syz-fuzzer 82848 207477 5860 0 3 0x10008a pause ksh 5860 301110 62381 0 3 0x92 select sshd 62381 89371 1 0 3 0x80 select sshd 99053 502374 54682 74 3 0x100092 bpf pflogd 54682 154176 1 0 3 0x80 netio pflogd 75208 95629 30103 73 3 0x100090 kqread syslogd 30103 200367 1 0 3 0x100082 netio syslogd 2968 114992 0 0 2 0x14200 zerothread 6193 517491 0 0 3 0x14200 aiodoned aiodoned 79672 479781 0 0 3 0x14200 syncer update 54047 95258 0 0 3 0x14200 cleaner cleaner 50781 212570 0 0 3 0x14200 reaper reaper 57326 91749 0 0 3 0x14200 pgdaemon pagedaemon 37327 430842 0 0 3 0x14200 bored crynlk 49025 342473 0 0 3 0x14200 bored crypto 54898 280682 0 0 3 0x40014200 acpi0 acpi0 24004 496514 0 0 3 0x40014200 idle1 68306 517523 0 0 3 0x14200 bored softnet 21501 223836 0 0 3 0x14200 bored systqmp 35753 263981 0 0 3 0x14200 bored systq 22201 494790 0 0 3 0x40014200 bored softclock 23854 509415 0 0 3 0x40014200 idle0 3719 356754 0 0 3 0x14200 bored smr 1 386186 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 46597 (syz-executor.0) thread 0xffff800020ab0018 (503426) shared rwlock vmlistlock r = 0 (0xffff80000066f478) #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 (0xffffffff8266fb00) #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 9607 6646K 14632K 78643K 27395 0 0 pcb 13 8K 8K 78643K 970 0 0 rtable 111 12K 13K 78643K 2251 0 0 ifaddr 80 19K 20K 78643K 862 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1825 0 0 iov 0 0K 32K 78643K 694 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 77K 78643K 7690 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 116 0 0 VM map 2 1K 1K 78643K 11 0 0 sem 12 1K 1K 78643K 1434 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12843 0 0 file desc 6 17K 25K 78643K 7611 0 0 sigio 0 0K 0K 78643K 57 0 0 proc 57 51K 83K 78643K 2154 0 0 subproc 32 2K 2K 78643K 444 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 556 0 0 in_multi 29 1K 2K 78643K 458 0 0 ether_multi 1 0K 0K 78643K 45 0 0 mrt 0 0K 0K 78643K 34 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 1102 0 0 pfkey data 0 0K 4K 78643K 3 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 123 22K 33K 78643K 27546 0 0 UVM aobj 130 4K 4K 78643K 145 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 883 0 0 NDP 19 0K 0K 78643K 266 0 0 temp 226 3570K 4207K 78643K 178895 0 0 kqueue 0 0K 0K 78643K 92 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 58 0 50 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 334 0 334 2 1 1 1 0 8 1 rtentry 112 288 0 246 2 0 2 2 0 8 0 unpcb 120 2765 0 2755 1 0 1 1 0 8 0 syncache 264 4 0 4 2 2 0 1 0 8 0 tcpqe 32 4955 0 4955 1 1 0 1 0 8 0 tcpcb 544 1542 0 1538 1 0 1 1 0 8 0 inpcb 280 5213 0 5205 13 11 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 51 0 48 1 0 1 1 0 8 0 pkpcb 40 43 0 43 15 15 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 130 0 130 28 27 1 1 0 8 1 pffrag 232 16 0 16 8 8 0 1 0 482 0 pffrnode 88 16 0 16 8 8 0 1 0 8 0 pffrent 40 39 0 39 8 8 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 226 0 194 1 0 1 1 0 8 0 pfstkey 112 226 0 194 1 0 1 1 0 8 0 pfstate 328 226 0 194 5 2 3 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 1257 0 1054 17 3 14 14 0 8 0 art_table 32 1258 0 1054 2 0 2 2 0 8 0 art_node 16 284 0 245 1 0 1 1 0 8 0 sysvmsgpl 40 45 0 28 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1432 0 1422 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12822 0 11408 46 0 46 46 0 8 0 ffsino 272 12822 0 11408 95 0 95 95 0 8 0 nchpl 144 23747 0 23266 61 37 24 61 0 8 0 uvmvnodes 72 6127 0 0 112 0 112 112 0 8 0 vnodes 208 6127 0 0 323 0 323 323 0 8 0 namei 1024 78320 0 78320 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 9 0 9 5 5 0 1 0 8 0 scsiplug 64 12 0 12 11 11 0 1 0 8 0 scxspl 192 69534 0 69534 35 34 1 7 0 8 1 plimitpl 152 698 0 691 1 0 1 1 0 8 0 sigapl 432 7752 0 7738 3 1 2 3 0 8 0 futexpl 56 156792 0 156791 1 0 1 1 0 8 0 knotepl 112 13688 0 13668 11 9 2 2 0 8 0 kqueuepl 104 15567 0 15560 6 5 1 2 0 8 0 pipepl 112 32244 0 32219 16 14 2 3 0 8 1 fdescpl 488 7753 0 7738 3 0 3 3 0 8 0 filepl 152 89487 0 89379 47 41 6 9 0 8 1 lockfpl 104 2472 0 2472 1 0 1 1 0 8 1 lockfspl 48 800 0 800 1 0 1 1 0 8 1 sessionpl 112 55 0 46 1 0 1 1 0 8 0 pgrppl 48 105 0 96 1 0 1 1 0 8 0 ucredpl 96 9168 0 9158 1 0 1 1 0 8 0 zombiepl 144 7746 0 7746 3 2 1 1 0 8 1 processpl 896 7777 0 7746 4 0 4 4 0 8 0 procpl 632 25548 0 25502 7 2 5 5 0 8 0 srpgc 64 50 0 50 21 21 0 1 0 8 0 sosppl 128 91 0 91 29 29 0 1 0 8 0 sockpl 384 8520 0 8506 16 13 3 4 0 8 0 mcl64k 65536 28 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 1 2 3 0 8 0 mcl12k 12288 35 0 0 3 1 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 19 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 164 0 0 18 0 18 18 0 8 0 mtagpl 80 82 0 0 1 0 1 1 0 8 0 mbufpl 256 517 0 0 12 1 11 11 0 8 0 bufpl 256 28240 0 21192 441 0 441 441 0 8 0 anonpl 16 741161 0 727615 208 149 59 74 0 124 0 amapchunkpl 152 49992 0 49884 56 50 6 12 0 158 0 amappl16 192 38718 0 37929 203 162 41 53 0 8 0 amappl15 184 27 0 26 4 3 1 1 0 8 0 amappl14 176 1422 0 1417 2 1 1 1 0 8 0 amappl13 168 592 0 592 6 6 0 1 0 8 0 amappl12 160 1403 0 1403 7 7 0 1 0 8 0 amappl11 152 784 0 775 1 0 1 1 0 8 0 amappl10 144 2716 0 2710 1 0 1 1 0 8 0 amappl9 136 1583 0 1577 1 0 1 1 0 8 0 amappl8 128 1146 0 1107 2 0 2 2 0 8 0 amappl7 120 2801 0 2791 1 0 1 1 0 8 0 amappl6 112 710 0 696 1 0 1 1 0 8 0 amappl5 104 1725 0 1712 1 0 1 1 0 8 0 amappl4 96 7628 0 7593 1 0 1 1 0 8 0 amappl3 88 1867 0 1860 1 0 1 1 0 8 0 amappl2 80 60031 0 59957 4 2 2 3 0 8 0 amappl1 72 180056 0 179614 26 16 10 20 0 8 0 amappl 80 26166 0 26129 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 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 7762 0 7738 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7762 0 7738 1 0 1 1 0 8 0 vmmpekpl 168 124298 0 124264 2 0 2 2 0 8 0 vmmpepl 168 957077 0 955087 457 351 106 121 0 357 13 vmsppl 368 7752 0 7738 2 0 2 2 0 8 0 pdppl 4096 15531 0 15494 7 2 5 6 0 8 0 pvpl 32 2030622 0 2013838 462 318 144 184 0 265 0 pmappl 232 7761 0 7747 5 4 1 2 0 8 0 extentpl 40 38 0 22 1 0 1 1 0 8 0 phpool 112 616 0 12 18 0 18 18 0 8 0