panic: vop_generic_bapdoapn iStopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 398284 22754 0 0 0x4000000 1 syz-executor.5 *248934 9887 0 0x2 0 0 syz-executor.7 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259599b) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff80002b00e378) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd807ba95960,fffffd807bc216c8) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd807bc216c8) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd807bc216c8) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff80002b00e610) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd8069ea92c8,ffff80002b00e770,ffff80002b00e7a0,ffff80002b00e6a0) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000212f47f0,ffffff9c,7f7fffff5050,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff80002b00e920) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b00e920) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50c0, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> 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 676 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259599b) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff80002b00e378) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd807ba95960,fffffd807bc216c8) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd807bc216c8) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd807bc216c8) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff80002b00e610) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd8069ea92c8,ffff80002b00e770,ffff80002b00e7a0,ffff80002b00e6a0) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000212f47f0,ffffff9c,7f7fffff5050,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff80002b00e920) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b00e920) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50c0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002b00e2a0 rbx 0xffffffff8293eb8f cpu_info_full_primary+0x2b8f rdx 0 rcx 0 rax 0xffff8000212f47f0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x83bbb890b38a5c3b r11 0x7954d264b4ad7b4d r12 0xffffffff8293e990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff8187df28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002b00e290 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.7) pid=248934 stat=onproc flags process=2 proc=0 pri=17, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000212f4a90,0xffff8000212f4d40 process=0xffff8000ffff29a8 user=0xffff80002b009000, vmspace=0xfffffd806aa4bd00 estcpu=36, cpticks=0, pctcpu=0.11 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78379 110004 57526 0 2 0 syz-executor.3 22754 417702 35561 0 2 0 syz-executor.5 22754 398284 35561 0 7 0x4000000 syz-executor.5 76623 462328 33682 0 2 0 syz-executor.6 76623 332598 33682 0 3 0x4000080 fsleep syz-executor.6 97392 413561 72716 0 2 0 syz-executor.4 97392 67491 72716 0 2 0x4000000 syz-executor.4 33682 273527 45882 0 3 0x82 nanoslp syz-executor.6 * 9887 248934 45882 0 7 0x2 syz-executor.7 11574 477277 45882 0 3 0x82 nanoslp syz-executor.2 35561 91396 45882 0 3 0x82 nanoslp syz-executor.5 72716 364195 45882 0 3 0x82 nanoslp syz-executor.4 75624 96076 45882 0 3 0x82 nanoslp syz-executor.1 57526 71257 45882 0 3 0x82 nanoslp syz-executor.3 97500 343429 45882 0 2 0x2 syz-executor.0 45882 170225 33597 0 3 0x82 wait syz-fuzzer 45882 456270 33597 0 3 0x4000082 nanoslp syz-fuzzer 45882 376466 33597 0 3 0x4000082 wait syz-fuzzer 45882 403180 33597 0 3 0x4000082 wait syz-fuzzer 45882 406010 33597 0 3 0x4000082 thrsleep syz-fuzzer 45882 5976 33597 0 3 0x4000082 thrsleep syz-fuzzer 45882 229360 33597 0 3 0x4000082 wait syz-fuzzer 45882 257771 33597 0 3 0x4000082 thrsleep syz-fuzzer 45882 355969 33597 0 3 0x4000082 wait syz-fuzzer 45882 132345 33597 0 3 0x4000082 wait syz-fuzzer 45882 160304 33597 0 3 0x4000082 wait syz-fuzzer 45882 396829 33597 0 3 0x4000082 wait syz-fuzzer 45882 389191 33597 0 3 0x4000082 thrsleep syz-fuzzer 45882 180908 33597 0 3 0x4000082 kqread syz-fuzzer 45882 347674 33597 0 3 0x4000082 thrsleep syz-fuzzer 45882 253649 33597 0 3 0x4000082 nanoslp syz-fuzzer 33597 246577 26708 0 3 0x10008a sigsusp ksh 26708 489433 65527 0 3 0x9a kqread sshd 977 188918 1 0 3 0x100083 ttyin getty 65527 429097 1 0 3 0x88 kqread sshd 12229 321472 8002 74 3 0x1100092 bpf pflogd 8002 118966 1 0 3 0x80 netio pflogd 96355 184616 54026 73 3 0x1100090 kqread syslogd 54026 388326 1 0 3 0x100082 netio syslogd 99008 333428 1 0 3 0x100080 kqread resolvd 56233 204113 62059 77 3 0x100092 kqread dhcpleased 33194 388471 62059 77 3 0x100092 kqread dhcpleased 62059 155344 1 0 3 0x80 kqread dhcpleased 95790 1533 0 0 3 0x14200 bored smr 72254 154971 0 0 2 0x14200 zerothread 18569 442189 0 0 3 0x14200 aiodoned aiodoned 30919 85222 0 0 3 0x14200 syncer update 52988 431682 0 0 3 0x14200 cleaner cleaner 44496 212371 0 0 3 0x14200 reaper reaper 76382 1554 0 0 3 0x14200 pgdaemon pagedaemon 11307 315474 0 0 3 0x14200 bored viomb 48358 462440 0 0 3 0x40014200 acpi0 acpi0 88253 353714 0 0 3 0x40014200 idle1 44478 438815 0 0 3 0x14200 bored softnet 982 278440 0 0 3 0x14200 bored softnet 97190 250030 0 0 3 0x14200 bored softnet 28097 240742 0 0 3 0x14200 bored softnet 63052 323663 0 0 3 0x14200 bored systqmp 58810 456050 0 0 3 0x14200 bored systq 35291 54098 0 0 3 0x40014200 bored softclock 10490 5003 0 0 3 0x40014200 idle0 1 25147 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 9887 (syz-executor.7) thread 0xffff8000212f47f0 (248934) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b10858) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:415 #3 sleep_finish+0x180 sys/kern/kern_synch.c:417 #4 tsleep+0x12c sys/kern/kern_synch.c:155 #5 biowait+0x91 sys/kern/vfs_bio.c:1268 #6 bwrite+0x21b sys/kern/vfs_bio.c:769 #7 ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113 #8 ufs_mkdir+0x662 sys/ufs/ufs/ufs_vnops.c:1220 #9 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 #10 domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 #11 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #11 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8068abc2b8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vget+0x1fc sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1324 #8 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1150 #10 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 #12 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #12 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8068de8d60) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:412 #6 namei+0x36a sys/kern/vfs_lookup.c:244 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3097 #8 syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] #8 syscall+0x435 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 Process 97500 (syz-executor.0) thread 0xffff8000ffff4008 (343429) exclusive rrwlock inode r = 0 (0xfffffd8068abc098) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vn_closefile+0xc6 vn_close sys/kern/vfs_vnops.c:292 [inline] #5 vn_closefile+0xc6 sys/kern/vfs_vnops.c:609 #6 fdrop+0xc7 sys/kern/kern_descrip.c:1274 #7 closef+0x11c sys/kern/kern_descrip.c:1258 #8 syscall+0x4c3 mi_syscall sys/sys/syscall_mi.h:101 [inline] #8 syscall+0x4c3 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10181 6490K 6732K 78643K 14554 0 pcb 13 12K 14K 78643K 211 0 rtable 234 6K 6K 78643K 353 0 ifaddr 87 17K 17K 78643K 92 0 counters 56 35K 35K 78643K 56 0 ioctlops 0 0K 4K 78643K 3833 0 iov 0 0K 1K 78643K 268 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1264 79K 80K 78643K 4973 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 29K 78643K 3711 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 355 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 89K 78643K 25768 0 sigio 0 0K 0K 78643K 506 0 proc 67 91K 163K 78643K 7741 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 658 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 62K 78643K 8 0 UVM amap 216 79K 79K 78643K 130767 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 28 0 temp 98 4718K 4841K 78643K 55896 0 kqueue 12 18K 26K 78643K 321 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 36 0 33 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 5896 0 5880 27 26 1 6 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpcb 768 8 0 4 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 320 957 0 950 12 8 4 6 0 8 3 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 pfstitem 24 28 0 26 1 0 1 1 0 8 0 pfstkey 120 28 0 26 1 0 1 1 0 8 0 pfstate 336 28 0 26 2 1 1 2 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 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 10 1 0 1 1 0 8 0 semapl 112 353 0 343 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 34056 0 32629 91 0 91 91 0 8 0 ffsino 272 34056 0 32629 97 0 97 97 0 8 0 nchpl 144 68609 0 66928 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 188041 0 188040 2 1 1 2 0 8 0 percpumem 16 40 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 170518 0 170518 9 8 1 8 0 8 1 plimitpl 152 23 0 8 1 0 1 1 0 8 0 sigapl 424 26082 0 26036 8 2 6 7 0 8 0 futexpl 64 161502 0 161501 1 0 1 1 0 8 0 knotepl 120 137 0 0 4 0 4 4 0 8 0 kqueuepl 216 1359 0 1351 15 14 1 5 0 8 0 pipepl 320 20042 0 20014 91 80 11 13 0 8 8 fdescpl 496 26065 0 26038 5 1 4 5 0 8 0 filepl 152 97419 0 97179 102 85 17 20 0 8 7 lockfpl 104 2507 0 2505 2 1 1 2 0 8 0 lockfspl 48 809 0 807 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 124 0 107 1 0 1 1 0 8 0 ucredpl 104 125 0 113 1 0 1 1 0 8 0 zombiepl 144 26038 0 26036 1 0 1 1 0 8 0 processpl 1064 26082 0 26036 4 0 4 4 0 8 0 procpl 672 59357 0 59293 32 25 7 9 0 8 0 sockpl 488 6889 0 6863 86 78 8 20 0 8 4 mcl64k 65536 33 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 3 1 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 39 0 0 4 1 3 3 0 8 0 mcl4k 4096 49 0 0 4 1 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 177 0 0 14 0 14 14 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 893 0 0 23 0 23 23 0 8 0 bufpl 288 29270 0 22941 453 0 453 453 0 8 0 anonpl 24 4162907 0 4155607 58 8 50 52 0 186 0 amapchunkpl 152 376229 0 375748 49 27 22 23 0 158 0 amappl16 200 49679 0 49540 8 0 8 8 0 8 0 amappl15 192 9583 0 9574 1 0 1 1 0 8 0 amappl14 184 6528 0 6524 1 0 1 1 0 8 0 amappl13 176 3324 0 3321 1 0 1 1 0 8 0 amappl12 168 11 0 9 1 0 1 1 0 8 0 amappl11 160 6462 0 6440 1 0 1 1 0 8 0 amappl10 152 20 0 18 1 0 1 1 0 8 0 amappl9 144 4033 0 4028 1 0 1 1 0 8 0 amappl8 136 781 0 706 3 0 3 3 0 8 0 amappl7 128 163 0 144 1 0 1 1 0 8 0 amappl6 120 3953 0 3937 2 1 1 2 0 8 0 amappl5 112 18778 0 18760 1 0 1 1 0 8 0 amappl4 104 16936 0 16904 3 2 1 3 0 8 0 amappl3 96 71704 0 71657 2 0 2 2 0 8 0 amappl2 88 4124 0 4088 2 0 2 2 0 8 0 amappl1 80 624341 0 623708 20 4 16 20 0 8 0 amappl 88 130288 0 130160 5 1 4 4 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 26065 0 26038 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 26065 0 26038 1 0 1 1 0 8 0 vmmpekpl 168 211520 0 211463 4 0 4 4 0 8 0 vmmpepl 168 2377076 0 2375076 180 77 103 106 0 357 3 vmsppl 368 26064 0 26038 4 1 3 4 0 8 0 rwobjpl 56 545492 0 538310 106 2 104 104 0 8 0 pdppl 4096 52137 0 52076 681 612 69 81 0 8 8 pvpl 32 8451805 0 8440302 288 183 105 243 0 265 0 pmappl 248 26064 0 26038 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1419 0 620 23 0 23 23 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8259599b) at panic+0x177 sys/kern/subr_prf.c:198 vop_generic_badop(ffff80002b00e378) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133 VOP_STRATEGY(fffffd807ba95960,fffffd807bc216c8) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:628 bwrite(fffffd807bc216c8) at bwrite+0x1f0 sys/kern/vfs_bio.c:760 VOP_BWRITE(fffffd807bc216c8) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:640 ufs_mkdir(ffff80002b00e610) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1236 VOP_MKDIR(fffffd8069ea92c8,ffff80002b00e770,ffff80002b00e7a0,ffff80002b00e6a0) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:388 domkdirat(ffff8000212f47f0,ffffff9c,7f7fffff5050,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3112 syscall(ffff80002b00e920) at syscall+0x435 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002b00e920) at syscall+0x435 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff50c0, count: -11 ddb{0}> machine ddbcpu 1