panic: vop_geneprainci_cb:a kdeoprn
elStopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
132567 26590 0 0 0x4000000 1 syz-executor.3
*420674 9531 0 0x2 0 0 syz-executor.4
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8256a69e) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff8000274c5b68) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd807652e5d0,fffffd8069d3c900) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:644
bwrite(fffffd8069d3c900) at bwrite+0x1f0 sys/kern/vfs_bio.c:763
VOP_BWRITE(fffffd8069d3c900) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:656
ufs_mkdir(ffff8000274c5e00) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1248
VOP_MKDIR(fffffd806c56aea0,ffff8000274c5f60,ffff8000274c5f90,ffff8000274c5e90) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404
domkdirat(ffff800021143268,ffffff9c,7f7ffffe03d0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3101
syscall(ffff8000274c6110) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000274c6110) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe0440, 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 677
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff8256a69e) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff8000274c5b68) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd807652e5d0,fffffd8069d3c900) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:644
bwrite(fffffd8069d3c900) at bwrite+0x1f0 sys/kern/vfs_bio.c:763
VOP_BWRITE(fffffd8069d3c900) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:656
ufs_mkdir(ffff8000274c5e00) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1248
VOP_MKDIR(fffffd806c56aea0,ffff8000274c5f60,ffff8000274c5f90,ffff8000274c5e90) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404
domkdirat(ffff800021143268,ffffff9c,7f7ffffe03d0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3101
syscall(ffff8000274c6110) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000274c6110) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe0440, count: -11
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff8000274c5a90
rbx 0xffffffff828ebbff cpu_info_full_primary+0x2bff
rdx 0
rcx 0
rax 0xffff800021143268
r8 0x101010101010101
r9 0x8080808080808080
r10 0x342f184338462a42
r11 0x3c18565d945852ce
r12 0xffffffff828eba00 cpu_info_full_primary+0x2a00
r13 0
r14 0
r15 0x1
rip 0xffffffff82032a28 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000274c5a80
ss 0
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.4) pid=420674 stat=onproc
flags process=2<EXEC> proc=0
pri=17, usrpri=83, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff4d20,0xffff800026094018
process=0xffff8000211a2578 user=0xffff8000274c1000, vmspace=0xfffffd806a8aa8b0
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
26590 245011 67102 0 2 0 syz-executor.3
26590 132567 67102 0 7 0x4000000 syz-executor.3
8904 506045 20468 0 2 0 syz-executor.7
8904 514186 20468 0 3 0x4000080 fsleep syz-executor.7
26311 341637 60971 0 2 0 syz-executor.0
26311 441560 60971 0 3 0x4000080 netio syz-executor.0
43663 8935 50361 0 3 0x80 nanoslp syz-executor.2
43663 319871 50361 0 3 0x4000080 netio syz-executor.2
43663 342476 50361 0 2 0x4000000 syz-executor.2
43663 508226 50361 0 3 0x4000080 fsleep syz-executor.2
58175 340162 2375 0 3 0x80 nanoslp syz-executor.5
58175 191446 2375 0 3 0x4000080 netio syz-executor.5
58175 258206 2375 0 3 0x4000080 fsleep syz-executor.5
58175 182000 2375 0 3 0x4000080 fsleep syz-executor.5
8449 10516 98695 0 3 0x82 piperd syz-executor.6
20468 477078 98695 0 3 0x82 nanoslp syz-executor.7
2375 331900 98695 0 3 0x82 nanoslp syz-executor.5
* 9531 420674 98695 0 7 0x2 syz-executor.4
67102 112728 98695 0 3 0x82 nanoslp syz-executor.3
50361 43042 98695 0 3 0x82 nanoslp syz-executor.2
50352 166446 98695 0 2 0x2 syz-executor.1
60971 347244 98695 0 3 0x82 nanoslp syz-executor.0
98695 220067 95944 0 3 0x82 thrsleep syz-fuzzer
98695 212640 95944 0 3 0x4000082 nanoslp syz-fuzzer
98695 332674 95944 0 3 0x4000082 thrsleep syz-fuzzer
98695 523433 95944 0 3 0x4000082 thrsleep syz-fuzzer
98695 106614 95944 0 3 0x4000082 thrsleep syz-fuzzer
98695 283471 95944 0 3 0x4000082 thrsleep syz-fuzzer
98695 458995 95944 0 3 0x4000082 kqread syz-fuzzer
98695 127753 95944 0 3 0x4000082 thrsleep syz-fuzzer
98695 243233 95944 0 3 0x4000082 thrsleep syz-fuzzer
95944 182801 86340 0 3 0x10008a sigsusp ksh
86340 500293 63515 0 3 0x9a kqread sshd
70237 71429 1 0 3 0x100083 ttyin getty
63515 401675 1 0 3 0x88 kqread sshd
41956 99587 69700 74 3 0x1100092 bpf pflogd
69700 423669 1 0 3 0x80 netio pflogd
31290 425274 38353 73 3 0x1100090 kqread syslogd
38353 480434 1 0 3 0x100082 netio syslogd
45682 19033 1 0 3 0x100080 kqread resolvd
16128 5527 30565 77 3 0x100092 kqread dhcpleased
57961 245017 30565 77 3 0x100092 kqread dhcpleased
30565 126074 1 0 3 0x80 kqread dhcpleased
28817 87191 0 0 3 0x14200 bored smr
26485 422709 0 0 2 0x14200 zerothread
3651 34510 0 0 3 0x14200 aiodoned aiodoned
87310 407460 0 0 3 0x14200 syncer update
90055 289861 0 0 3 0x14200 cleaner cleaner
62647 354464 0 0 3 0x14200 reaper reaper
5442 199150 0 0 3 0x14200 pgdaemon pagedaemon
77766 298720 0 0 3 0x14200 bored viomb
58998 291666 0 0 3 0x40014200 acpi0 acpi0
25404 383674 0 0 3 0x40014200 idle1
67288 127218 0 0 3 0x14200 bored softnet
17239 336683 0 0 3 0x14200 bored systqmp
89663 463070 0 0 3 0x14200 bored systq
65112 6516 0 0 3 0x40014200 bored softclock
18238 364883 0 0 3 0x40014200 idle0
1 58265 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 9531 (syz-executor.4) thread 0xffff800021143268 (420674)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82aa8820)
#0 witness_lock+0x44d
#1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416
#3 sleep_finish+0x198 sys/kern/kern_synch.c:433
#4 tsleep+0x12c sys/kern/kern_synch.c:158
#5 biowait+0x91 sys/kern/vfs_bio.c:1271
#6 bwrite+0x21b sys/kern/vfs_bio.c:772
#7 ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113
#8 ufs_mkdir+0x662 sys/ufs/ufs/ufs_vnops.c:1232
#9 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404
#10 domkdirat+0x121 sys/kern/vfs_syscalls.c:3101
#11 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#11 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#12 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd8068e5fa38)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4 vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5 vget+0x1d3 sys/kern/vfs_subr.c:677
#6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119
#7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1318
#8 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394
#9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162
#10 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404
#11 domkdirat+0x121 sys/kern/vfs_syscalls.c:3101
#12 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#12 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#13 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd80772bb0a0)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4 vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413
#6 namei+0x36a sys/kern/vfs_lookup.c:245
#7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3086
#8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#9 Xsyscall+0x128
Process 50352 (syz-executor.1) thread 0xffff8000ffff57a0 (166446)
exclusive rrwlock inode r = 0 (0xfffffd8068e5f4e8)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461
#3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534
#4 vn_lock+0x84 sys/kern/vfs_vnops.c:579
#5 vn_closefile+0xc6 vn_close sys/kern/vfs_vnops.c:298 [inline]
#5 vn_closefile+0xc6 sys/kern/vfs_vnops.c:624
#6 fdrop+0xc7 sys/kern/kern_descrip.c:1279
#7 closef+0x11c sys/kern/kern_descrip.c:1263
#8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#9 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10222 6495K 6755K 78643K 33972 0
pcb 13 10K 11K 78643K 610 0
rtable 238 6K 7K 78643K 352 0
ifaddr 86 17K 17K 78643K 90 0
counters 56 35K 35K 78643K 56 0
ioctlops 0 0K 4K 78643K 2486 0
iov 0 0K 12K 78643K 1285 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1405 88K 88K 78643K 14914 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 190 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 1962 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 15 53K 89K 78643K 55337 0
proc 67 87K 124K 78643K 506 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 307 1367K 1367K 78643K 307 0
exec 0 0K 2K 78643K 644 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 7 26K 26K 78643K 7 0
UVM amap 326 80K 81K 78643K 677724 0
UVM aobj 131 6K 6K 78643K 131 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 12 0K 2K 78643K 28 0
temp 129 4699K 4817K 78643K 128787 0
kqueue 13 20K 34K 78643K 1840 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 33 0 30 1 0 1 1 0 8 0
rtentry 112 111 0 1 4 0 4 4 0 8 0
unpcb 136 89213 0 89191 432 423 9 13 0 8 8
syncache 296 4 0 4 1 1 0 1 0 8 0
tcpcb 736 1445 0 1441 43 42 1 7 0 8 0
arp 120 18 0 0 1 0 1 1 0 8 0
inpcb 304 6367 0 6360 88 87 1 6 0 8 0
nd6 48 24 0 0 1 0 1 1 0 8 0
kcovpl 48 8 0 0 1 0 1 1 0 8 0
pffrag 232 18 0 18 3 3 0 1 0 482 0
pffrnode 88 16 0 16 3 3 0 1 0 8 0
pffrent 40 181 0 181 3 3 0 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 25 0 23 1 0 1 1 0 8 0
pfstkey 112 25 0 23 1 0 1 1 0 8 0
pfstate 320 25 0 23 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
semapl 112 1960 0 1950 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 63607 0 62173 91 0 91 91 0 8 0
ffsino 272 63607 0 62173 97 0 97 97 0 8 0
nchpl 144 128870 0 127199 63 0 63 63 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 350136 0 350135 4 3 1 2 0 8 0
percpumem 16 40 0 0 1 0 1 1 0 8 0
scxspl 216 350740 0 350740 9 8 1 8 0 8 1
plimitpl 152 244 0 229 1 0 1 1 0 8 0
sigapl 424 55638 0 55596 6 0 6 6 0 8 0
futexpl 64 260926 0 260922 1 0 1 1 0 8 0
knotepl 120 134 0 0 4 0 4 4 0 8 0
kqueuepl 216 3517 0 3508 30 29 1 5 0 8 0
pipepl 336 129 0 101 3 0 3 3 0 8 0
fdescpl 496 55624 0 55596 5 1 4 5 0 8 0
filepl 152 223355 0 223107 512 494 18 25 0 8 8
lockfpl 104 4158 0 4156 6 5 1 2 0 8 0
lockfspl 48 1783 0 1781 1 0 1 1 0 8 0
sessionpl 144 24 0 7 1 0 1 1 0 8 0
pgrppl 48 24 0 7 1 0 1 1 0 8 0
ucredpl 96 22212 0 22200 1 0 1 1 0 8 0
zombiepl 144 55596 0 55596 1 0 1 1 0 8 1
processpl 1064 55638 0 55596 4 0 4 4 0 8 0
procpl 672 134986 0 134927 48 41 7 8 0 8 1
sockpl 480 95613 0 95581 2226 2205 21 47 0 8 16
mcl64k 65536 51 0 0 5 2 3 3 0 8 0
mcl16k 16384 68 0 0 6 4 2 3 0 8 0
mcl12k 12288 64 0 0 2 0 2 2 0 8 0
mcl9k 9216 41 0 0 2 0 2 2 0 8 0
mcl8k 8192 104 0 0 6 4 2 4 0 8 0
mcl4k 4096 41 0 0 3 0 3 3 0 8 0
mcl2k2 2112 31 0 0 2 1 1 2 0 8 0
mcl2k 2048 194 0 0 10 0 10 10 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 1831 0 0 22 9 13 20 0 8 0
bufpl 288 58893 0 52558 453 0 453 453 0 8 0
anonpl 24 14387294 0 14378428 95 35 60 62 0 186 0
amapchunkpl 152 1610993 0 1610376 178 149 29 29 0 158 2
amappl16 200 108536 0 108379 17 8 9 11 0 8 0
amappl15 192 6622 0 6617 1 0 1 1 0 8 0
amappl14 184 13354 0 13348 2 1 1 1 0 8 0
amappl13 176 6878 0 6874 1 0 1 1 0 8 0
amappl12 168 13 0 11 1 0 1 1 0 8 0
amappl11 160 14552 0 14533 1 0 1 1 0 8 0
amappl10 152 41 0 34 1 0 1 1 0 8 0
amappl9 144 14333 0 14327 1 0 1 1 0 8 0
amappl8 136 7882 0 7784 7 3 4 4 0 8 0
amappl7 128 6877 0 6863 1 0 1 1 0 8 0
amappl6 120 14078 0 14055 2 1 1 2 0 8 0
amappl5 112 43430 0 43414 1 0 1 1 0 8 0
amappl4 104 22202 0 22172 2 1 1 2 0 8 0
amappl3 96 9543 0 9529 1 0 1 1 0 8 0
amappl2 88 8800 0 8755 3 1 2 3 0 8 0
amappl1 80 943273 0 942694 46 33 13 19 0 8 0
amappl 88 677210 0 676993 9 3 6 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 130 0 0 3 0 3 3 0 8 0
uaddrrnd 24 55624 0 55596 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 55624 0 55596 1 0 1 1 0 8 0
vmmpekpl 168 309375 0 309334 3 0 3 3 0 8 0
vmmpepl 168 4715200 0 4713135 311 208 103 103 0 357 4
vmsppl 368 55623 0 55596 4 1 3 4 0 8 0
rwobjpl 56 1078932 0 1071713 113 10 103 104 0 8 0
pdppl 4096 111255 0 111192 1571 1502 69 81 0 8 6
pvpl 32 23679202 0 23666146 378 261 117 246 0 265 0
pmappl 248 55623 0 55596 3 1 2 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 2356 0 1570 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:440
panic(ffffffff8256a69e) at panic+0x177 sys/kern/subr_prf.c:202
vop_generic_badop(ffff8000274c5b68) at vop_generic_badop+0x1b sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd807652e5d0,fffffd8069d3c900) at VOP_STRATEGY+0x9b sys/kern/vfs_vops.c:644
bwrite(fffffd8069d3c900) at bwrite+0x1f0 sys/kern/vfs_bio.c:763
VOP_BWRITE(fffffd8069d3c900) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:656
ufs_mkdir(ffff8000274c5e00) at ufs_mkdir+0x6b4 sys/ufs/ufs/ufs_vnops.c:1248
VOP_MKDIR(fffffd806c56aea0,ffff8000274c5f60,ffff8000274c5f90,ffff8000274c5e90) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404
domkdirat(ffff800021143268,ffffff9c,7f7ffffe03d0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3101
syscall(ffff8000274c6110) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000274c6110) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe0440, count: -11
ddb{0}> machine ddbcpu 1