ppanic: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 679 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *181155 14803 0 0 0 1 syz-fuzzer 94484 57805 0 0x2 0 0 syz-executor.5 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a04b2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828227a4,ffffffff828037f7,2a7,ffffffff827da808) at __assert+0x29 sys/kern/subr_prf.c:157 proc_trampoline_mp() at proc_trampoline_mp+0x135 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 *cpu0: vop_generic_badop cpu1: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_fork.c", line 679 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a04b2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828227a4,ffffffff828037f7,2a7,ffffffff827da808) at __assert+0x29 sys/kern/subr_prf.c:157 proc_trampoline_mp() at proc_trampoline_mp+0x135 end trace frame: 0x0, count: -4 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800027ba9be0 rbx 0xffff800020d59ba7 rdx 0 rcx 0xffff80002124a020 rax 0xffff800020d58ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x74bc36be4e29ddb r11 0xd73209a51e37bfc3 r12 0xffff800020d599a8 r13 0 r14 0xffffffff82c349a8 cpu_info_full_primary+0x29a8 r15 0x1 rip 0xffffffff8219272c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800027ba9bd0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-fuzzer) tid=181155 pid=14803 tcnt=1 stat=onproc flags process=0 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002124a2c8,0xffffffff82d5b5c8 process=0xffff8000ffff0458 user=0xffff800027ba4000, vmspace=0xfffffd8069b391e8 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *14803 181155 39085 0 7 0 syz-fuzzer 98363 91191 84785 0 2 0 syz-executor.3 98363 85765 84785 0 3 0x4000000 biowait syz-executor.3 98363 197217 84785 0 3 0x4000080 fsleep syz-executor.3 41260 228855 4294 0 2 0 syz-executor.6 41260 464795 4294 0 2 0x4000000 syz-executor.6 41260 504791 4294 0 3 0x4000080 fsleep syz-executor.6 76704 303237 0 0 3 0x14280 nfsidl nfsio 80240 197408 0 0 3 0x14280 nfsidl nfsio 44752 497263 0 0 3 0x14280 nfsidl nfsio 19882 36499 0 0 3 0x14280 nfsidl nfsio 52937 506083 0 0 3 0x14280 nfsidl nfsio 66699 9133 0 0 3 0x14280 nfsidl nfsio 560 500226 0 0 3 0x14280 nfsidl nfsio 41373 457649 0 0 3 0x14280 nfsidl nfsio 8141 308141 0 0 3 0x14280 nfsidl nfsio 34814 113143 0 0 3 0x14280 nfsidl nfsio 94702 377653 0 0 3 0x14280 nfsidl nfsio 89353 71730 0 0 3 0x14280 nfsidl nfsio 88101 72968 0 0 3 0x14280 nfsidl nfsio 53149 434271 0 0 3 0x14280 nfsidl nfsio 6801 426012 0 0 3 0x14280 nfsidl nfsio 79311 363734 0 0 3 0x14280 nfsidl nfsio 70770 102333 0 0 3 0x14280 nfsidl nfsio 97738 317078 0 0 3 0x14280 nfsidl nfsio 98293 507232 0 0 3 0x14280 nfsidl nfsio 90797 113459 0 0 3 0x14280 nfsidl nfsio 73577 498900 39085 0 3 0x82 nanoslp syz-executor.1 77751 344255 39085 0 2 0x2 syz-executor.7 82134 64222 0 0 3 0x14200 bored sosplice 4294 485966 39085 0 3 0x82 nanoslp syz-executor.6 26005 346614 39085 0 2 0x2 syz-executor.2 84785 63964 39085 0 2 0x2 syz-executor.3 57805 94484 39085 0 7 0x2 syz-executor.5 7705 128172 39085 0 2 0x2 syz-executor.0 39085 235292 69975 0 3 0x2000082 wait syz-fuzzer 39085 365732 69975 0 3 0x6000082 nanoslp syz-fuzzer 39085 266802 69975 0 3 0x6000082 thrsleep syz-fuzzer 39085 276100 69975 0 3 0x6000082 wait syz-fuzzer 39085 150355 69975 0 3 0x6000082 wait syz-fuzzer 39085 218412 69975 0 3 0x6000082 wait syz-fuzzer 39085 156970 69975 0 3 0x6000082 thrsleep syz-fuzzer 39085 180908 69975 0 2 0x6000082 syz-fuzzer 39085 10158 69975 0 3 0x6000082 wait syz-fuzzer 39085 416902 69975 0 3 0x6000082 thrsleep syz-fuzzer 39085 123640 69975 0 3 0x6000082 thrsleep syz-fuzzer 39085 346087 69975 0 3 0x6000082 wait syz-fuzzer 39085 138593 69975 0 3 0x6000082 wait syz-fuzzer 39085 194505 69975 0 3 0x6000082 piperd syz-fuzzer 39085 45935 69975 0 2 0x6000082 syz-fuzzer 39085 129659 69975 0 3 0x6000082 thrsleep syz-fuzzer 69975 272808 63482 0 3 0x10008a sigsusp ksh 63482 10410 25306 0 3 0x9a kqread sshd 53247 262190 1 0 3 0x100083 ttyin getty 25306 53233 1 0 3 0x88 kqread sshd 54851 278053 60342 74 3 0x1100092 bpf pflogd 60342 79330 1 0 3 0x80 netio pflogd 86624 448791 86805 73 3 0x1100090 kqread syslogd 86805 424991 1 0 3 0x100082 netio syslogd 67779 137267 1 0 3 0x100080 kqread resolvd 53749 117313 35037 77 3 0x100092 kqread dhcpleased 11141 265572 35037 77 3 0x100092 kqread dhcpleased 35037 350545 1 0 3 0x80 kqread dhcpleased 20308 291327 0 0 3 0x14200 bored smr 42102 404961 0 0 2 0x14200 zerothread 46630 343420 0 0 3 0x14200 aiodoned aiodoned 16982 68868 0 0 3 0x14200 syncer update 4202 325001 0 0 3 0x14200 cleaner cleaner 59840 270924 0 0 3 0x14200 reaper reaper 93848 391106 0 0 3 0x14200 pgdaemon pagedaemon 15775 446316 0 0 3 0x14200 bored viomb 73453 447138 0 0 3 0x40014200 acpi0 acpi0 45333 377347 0 0 3 0x40014200 idle1 80098 83692 0 0 3 0x14200 bored softnet3 31116 281410 0 0 3 0x14200 bored softnet2 15814 23106 0 0 3 0x14200 bored softnet1 79138 26089 0 0 3 0x14200 bored softnet0 98186 489417 0 0 3 0x14200 bored systqmp 47045 178052 0 0 3 0x14200 bored systq 46631 435358 0 0 3 0x40014200 bored softclock 63624 238858 0 0 3 0x40014200 idle0 1 38430 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 98363 (syz-executor.3) thread 0xffff80002124aac0 (85765) Process 41260 (syz-executor.6) thread 0xffff80002124bab0 (464795) Process 26005 (syz-executor.2) thread 0xffff8000212242a8 (346614) Process 57805 (syz-executor.5) thread 0xffff8000211f5ab0 (94484) Process 39085 (syz-fuzzer) thread 0xffff800021296008 (194505) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10224 6497K 7077K 78643K 15655 0 pcb 13 13K 15K 78643K 411 0 rtable 220 6K 7K 78643K 517 0 pf 33 9K 10K 78643K 66 0 ifaddr 42 14K 15K 78643K 71 0 ifgroup 56 2K 2K 78643K 92 0 sysctl 3 0K 0K 78643K 3 0 counters 60 35K 36K 78643K 80 0 ioctlops 0 0K 4K 78643K 2270 0 iov 0 0K 16K 78643K 280 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1454 91K 91K 78643K 2857 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 42 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 303 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 38K 81K 78643K 2988 0 sigio 0 0K 0K 78643K 249 0 proc 69 91K 115K 78643K 856 0 subproc 91 5K 7K 78643K 195 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 106 0 in_multi 88 6K 7K 78643K 149 0 ether_multi 1 0K 0K 78643K 1 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 229 1023K 1023K 78643K 229 0 exec 0 0K 1K 78643K 837 0 pfkey data 0 0K 0K 78643K 3 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 361 85K 104K 78643K 31810 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 84 0 NDP 12 0K 1K 78643K 46 0 temp 71 5919K 6048K 78643K 28730 0 kqueue 12 18K 24K 78643K 206 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 138 0 135 3 2 1 3 0 8 0 rtentry 112 164 0 61 4 0 4 4 0 8 0 unpcb 144 6721 0 6706 43 41 2 10 0 8 1 syncache 304 20 0 20 7 6 1 1 0 8 1 tcpqe 32 372 0 372 6 6 0 1 0 8 0 tcpcb 808 953 0 938 34 32 2 8 0 8 0 arp 120 27 0 11 1 0 1 1 0 8 0 inpcb 368 2681 0 2663 62 59 3 13 0 8 0 nd6 136 44 0 19 1 0 1 1 0 8 0 pkpcb 40 11 0 11 2 2 0 1 0 8 0 kcovpl 48 15 0 8 1 0 1 1 0 8 0 ppxss 1256 3 0 3 1 1 0 1 0 8 0 pffrag 232 11 0 8 1 0 1 1 0 482 0 pffrnode 88 11 0 8 1 0 1 1 0 8 0 pffrent 40 65 0 62 2 1 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 pfstitem 24 102 0 81 1 0 1 1 0 8 0 pfstkey 128 102 0 81 1 0 1 1 0 8 0 pfstate 376 102 0 81 3 0 3 3 0 8 0 pfrule 1344 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 669 0 241 31 1 30 30 0 8 1 art_table 32 670 0 241 4 0 4 4 0 8 0 art_node 16 163 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 5 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 297 0 287 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5077 0 3608 93 0 93 93 0 8 0 ffsino 272 5077 0 3608 99 0 99 99 0 8 0 nchpl 144 9325 0 7676 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 30854 0 30853 4 3 1 2 0 8 0 percpumem 16 53 0 10 1 0 1 1 0 8 0 vmpool 696 50 0 50 4 4 0 1 0 8 0 kstatmem 264 44 0 20 2 0 2 2 0 8 0 scxspl 216 32785 0 32781 16 15 1 8 1 8 0 plimitpl 152 337 0 322 1 0 1 1 0 8 0 sigapl 424 3339 0 3275 11 3 8 8 0 8 0 futexpl 64 23470 0 23468 3 2 1 1 0 8 0 knotepl 120 320 0 0 10 1 9 10 0 8 0 kqueuepl 216 495 0 487 5 4 1 5 0 8 0 pipepl 320 994 0 965 22 19 3 8 0 8 0 fdescpl 496 3281 0 3256 6 2 4 5 0 8 0 filepl 152 23855 0 23626 70 55 15 22 0 8 5 lockfpl 104 1076 0 1074 3 2 1 2 0 8 0 lockfspl 48 524 0 522 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 63 0 47 1 0 1 1 0 8 0 ucredpl 104 2789 0 2776 1 0 1 1 0 8 0 zombiepl 144 3276 0 3275 2 1 1 1 0 8 0 processpl 1072 3339 0 3275 6 1 5 5 0 8 0 procpl 680 8592 0 8509 17 8 9 9 0 8 1 sosppl 168 30 0 28 7 6 1 1 0 8 0 sockpl 488 9554 0 9518 269 262 7 45 0 8 2 mcl64k 65536 17 0 0 3 1 2 3 0 8 0 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 11 0 0 1 0 1 1 0 8 0 mcl8k 8192 52 0 0 7 3 4 7 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 329 0 0 41 1 40 41 0 8 0 mtagpl 96 392 0 0 10 0 10 10 0 8 0 mbufpl 256 1198 0 0 70 0 70 70 0 8 0 bufpl 288 9099 0 2772 453 0 453 453 0 8 0 anonpl 24 444579 0 433195 190 95 95 137 0 186 0 amapchunkpl 152 100685 0 99871 47 6 41 46 0 158 0 amappl16 200 10440 0 10050 93 72 21 35 0 8 0 amappl15 192 13 0 12 1 0 1 1 0 8 0 amappl14 184 183 0 168 2 1 1 2 0 8 0 amappl13 176 15 0 14 1 0 1 1 0 8 0 amappl12 168 4087 0 4060 3 1 2 2 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 31 0 21 1 0 1 1 0 8 0 amappl9 144 257 0 256 2 1 1 1 0 8 0 amappl8 136 379 0 291 5 1 4 4 0 8 0 amappl7 128 84 0 72 1 0 1 1 0 8 0 amappl6 120 309 0 286 3 2 1 3 0 8 0 amappl5 112 231 0 220 1 0 1 1 0 8 0 amappl4 104 631 0 589 3 1 2 3 0 8 0 amappl3 96 19988 0 19918 4 1 3 3 0 8 0 amappl2 88 3632 0 3564 4 2 2 3 0 8 0 amappl1 80 20365 0 19822 24 11 13 23 0 8 0 amappl 88 31135 0 30912 9 2 7 7 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 3331 0 3306 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3331 0 3306 1 0 1 1 0 8 0 vmmpekpl 168 30279 0 30230 3 0 3 3 0 8 0 vmmpepl 168 216545 0 213666 236 110 126 137 0 357 0 vmsppl 464 3330 0 3306 5 1 4 5 0 8 0 rwobjpl 56 64191 0 56660 115 7 108 108 0 8 0 pdppl 4096 6670 0 6612 293 229 64 78 0 8 6 pvpl 32 1142494 0 1125597 527 356 171 359 0 265 0 pmappl 248 3330 0 3306 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1220 0 340 26 0 26 26 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82c33ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82d09530) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d09530) at __mp_lock+0x129 sys/kern/kern_lock.c:147 intr_handler(ffff800022cf2a60,ffff80000007bd80) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d cnputc(70) at cnputc+0x4f sys/dev/cons.c:218 db_putchar(70) at db_putchar+0x3fc sys/ddb/db_output.c:155 kprintf() at kprintf+0x6bc sys/kern/subr_prf.c:724 db_printf(ffffffff82823649) at db_printf+0x89 sys/kern/subr_prf.c:498 panic(ffffffff82796c3a) at panic+0xdb sys/kern/subr_prf.c:216 vop_generic_badop(ffff800022cf2e88) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd807430abf0,fffffd806703a018) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628 end trace frame: 0xffff800022cf2f30, count: 0 ddb{0}> trace x86_ipi_db(ffffffff82c33ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82d09530) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d09530) at __mp_lock+0x129 sys/kern/kern_lock.c:147 intr_handler(ffff800022cf2a60,ffff80000007bd80) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f Xspllower() at Xspllower+0x1d cnputc(70) at cnputc+0x4f sys/dev/cons.c:218 db_putchar(70) at db_putchar+0x3fc sys/ddb/db_output.c:155 kprintf() at kprintf+0x6bc sys/kern/subr_prf.c:724 db_printf(ffffffff82823649) at db_printf+0x89 sys/kern/subr_prf.c:498 panic(ffffffff82796c3a) at panic+0xdb sys/kern/subr_prf.c:216 vop_generic_badop(ffff800022cf2e88) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd807430abf0,fffffd806703a018) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628 bwrite(fffffd806703a018) at bwrite+0x1f1 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd806703a018) at VOP_BWRITE+0x4e sys/kern/vfs_vops.c:640 ufs_mkdir(ffff800022cf3120) at ufs_mkdir+0x6c4 sys/ufs/ufs/ufs_vnops.c:1235 VOP_MKDIR(fffffd806787ea48,ffff800022cf3280,ffff800022cf32b0,ffff800022cf31b0) at VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388 domkdirat(ffff8000211f5ab0,ffffff9c,77f470f2a410,1ff) at domkdirat+0x125 sys/kern/vfs_syscalls.c:3073 syscall(ffff800022cf3430) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800022cf3430) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77f470f2a480, count: -21 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a04b2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828227a4,ffffffff828037f7,2a7,ffffffff827da808) at __assert+0x29 sys/kern/subr_prf.c:157 proc_trampoline_mp() at proc_trampoline_mp+0x135 end trace frame: 0x0, count: 11 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a04b2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828227a4,ffffffff828037f7,2a7,ffffffff827da808) at __assert+0x29 sys/kern/subr_prf.c:157 proc_trampoline_mp() at proc_trampoline_mp+0x135 end trace frame: 0x0, count: -4