login: panic: lock (kernel_lock) mbufpl not locked
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
123054 77642 0 0 0 0 syz-executor.0
*438016 77642 0 0 0x4000000 1K syz-executor.0
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821b6a4e) at panic+0x15c sys/kern/subr_prf.c:207
witness_unlock(ffffffff8262c8e8,8) at witness_unlock+0x4db
mtx_leave(ffffffff8262c8d8) at mtx_leave+0x97 sys/kern/kern_lock.c:364
pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x195 pool_cache_list_alloc sys/kern/subr_pool.c:1816 [inline]
pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x195 sys/kern/subr_pool.c:1887
pool_get(ffffffff8262c7f0,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_pullup(fffffd806f60cb00,2200) at m_pullup+0x242 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_pullup(fffffd806f60cb00,2200) at m_pullup+0x242 sys/kern/uipc_mbuf.c:976
swofp_input(ffff800000a49800,fffffd806f60cb00) at swofp_input+0x13f sys/net/switchofp.c:4703
switchwrite(86135,ffff8000237a9ac0,1) at switchwrite+0x3b0 sys/net/switchctl.c:282
spec_write(ffff8000237a9890) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8062d97900,ffff8000237a9ac0,1,fffffd807f7be5a0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
vn_write(fffffd8065d9a148,ffff8000237a9ac0,1) at vn_write+0x199 sys/kern/vfs_vnops.c:414
dofilewritev(ffff800020ac9650,3,ffff8000237a9ac0,1,ffff8000237a9bb0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_pwritev(ffff800020ac9650,ffff8000237a9b68,ffff8000237a9bb0) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3260
end trace frame: 0xffff8000237a9c20, count: 0
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
lock (kernel_lock) mbufpl not locked
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821b6a4e) at panic+0x15c sys/kern/subr_prf.c:207
witness_unlock(ffffffff8262c8e8,8) at witness_unlock+0x4db
mtx_leave(ffffffff8262c8d8) at mtx_leave+0x97 sys/kern/kern_lock.c:364
pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x195 pool_cache_list_alloc sys/kern/subr_pool.c:1816 [inline]
pool_cache_get(ffffffff8262c7f0) at pool_cache_get+0x195 sys/kern/subr_pool.c:1887
pool_get(ffffffff8262c7f0,2) at pool_get+0x91 sys/kern/subr_pool.c:572
m_pullup(fffffd806f60cb00,2200) at m_pullup+0x242 m_get sys/kern/uipc_mbuf.c:250 [inline]
m_pullup(fffffd806f60cb00,2200) at m_pullup+0x242 sys/kern/uipc_mbuf.c:976
swofp_input(ffff800000a49800,fffffd806f60cb00) at swofp_input+0x13f sys/net/switchofp.c:4703
switchwrite(86135,ffff8000237a9ac0,1) at switchwrite+0x3b0 sys/net/switchctl.c:282
spec_write(ffff8000237a9890) at spec_write+0xd4 sys/kern/spec_vnops.c:309
VOP_WRITE(fffffd8062d97900,ffff8000237a9ac0,1,fffffd807f7be5a0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
vn_write(fffffd8065d9a148,ffff8000237a9ac0,1) at vn_write+0x199 sys/kern/vfs_vnops.c:414
dofilewritev(ffff800020ac9650,3,ffff8000237a9ac0,1,ffff8000237a9bb0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364
sys_pwritev(ffff800020ac9650,ffff8000237a9b68,ffff8000237a9bb0) at sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3260
syscall(ffff8000237a9c30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff8000237a9c30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x45f6c1f1150, count: -16
ddb{1}> show registers
rdi 0xffffffff816d6247 db_enter+0x17
rsi 0x4a40 __ALIGN_SIZE+0x3a40
rbp 0xffff8000237a93e0
rbx 0xffff8000237a9490
rdx 0x4a41 __ALIGN_SIZE+0x3a41
rcx 0xffff800020b80000
rax 0xffff800020b80000
r8 0xffffffff813f6f6f kprintf+0x16f
r9 0x1
r10 0x25
r11 0xae981263a894e9ef
r12 0x3000000008
r13 0xffff8000237a93f0
r14 0x100
r15 0x1
rip 0xffffffff816d6248 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000237a93d0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor.0) pid=438016 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=61, usrpri=61, nice=20
forw=0xffffffffffffffff, list=0xffff800020ac8780,0xffffffff82629b28
process=0xffff800020af5880 user=0xffff8000237a4000, vmspace=0xfffffd807efff730
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
77642 123054 45313 0 7 0 syz-executor.0
*77642 438016 45313 0 7 0x4000000 syz-executor.0
38963 248739 0 0 3 0x14200 bored sosplice
5117 11087 17573 0 3 0x2 biowait syz-executor.1
45313 226341 17573 0 3 0x82 nanosleep syz-executor.0
17573 307740 45994 0 3 0x82 nanosleep syz-fuzzer
17573 86388 45994 0 3 0x4000082 nanosleep syz-fuzzer
17573 191417 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 348345 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 206088 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 215261 45994 0 3 0x4000082 kqread syz-fuzzer
17573 200814 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 68726 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 484623 45994 0 3 0x4000082 thrsleep syz-fuzzer
17573 335095 45994 0 3 0x4000082 thrsleep syz-fuzzer
45994 494899 38819 0 3 0x10008a pause ksh
38819 245608 98097 0 3 0x92 select sshd
55749 57453 1 0 3 0x100083 ttyin getty
98097 326899 1 0 3 0x80 select sshd
62183 423178 83000 74 3 0x100092 bpf pflogd
83000 390226 1 0 3 0x80 netio pflogd
43286 293904 39299 73 3 0x100090 kqread syslogd
39299 297927 1 0 3 0x100082 netio syslogd
20189 246030 1 77 3 0x100090 poll dhclient
89114 343403 1 0 3 0x80 poll dhclient
41771 300421 0 0 2 0x14200 zerothread
34030 392815 0 0 3 0x14200 aiodoned aiodoned
11671 288043 0 0 3 0x14200 syncer update
37820 310480 0 0 3 0x14200 cleaner cleaner
39231 105383 0 0 3 0x14200 reaper reaper
71180 349008 0 0 3 0x14200 pgdaemon pagedaemon
49375 112519 0 0 3 0x14200 bored crynlk
15012 266617 0 0 3 0x14200 bored crypto
61286 55705 0 0 3 0x40014200 acpi0 acpi0
92353 158828 0 0 3 0x40014200 idle1
45852 467944 0 0 3 0x14200 bored softnet
4595 249382 0 0 3 0x14200 bored systqmp
88072 126406 0 0 3 0x14200 bored systq
46232 248950 0 0 3 0x40014200 bored softclock
69008 20428 0 0 3 0x40014200 idle0
53995 494633 0 0 3 0x14200 bored smr
1 480846 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
CPU 1:
exclusive kernel_lock mbufpl r = 0 (0xffffffff8262c8e8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 mtx_enter_try+0x102
#2 pool_cache_get+0xa3 pl_enter_try sys/kern/subr_pool.c:109 [inline]
#2 pool_cache_get+0xa3 pool_list_enter sys/kern/subr_pool.c:1797 [inline]
#2 pool_cache_get+0xa3 pool_cache_list_alloc sys/kern/subr_pool.c:1814 [inline]
#2 pool_cache_get+0xa3 sys/kern/subr_pool.c:1887
#3 pool_get+0x91 sys/kern/subr_pool.c:572
#4 m_pullup+0x242 m_get sys/kern/uipc_mbuf.c:250 [inline]
#4 m_pullup+0x242 sys/kern/uipc_mbuf.c:976
#5 swofp_input+0x13f sys/net/switchofp.c:4703
#6 switchwrite+0x3b0 sys/net/switchctl.c:282
#7 spec_write+0xd4 sys/kern/spec_vnops.c:309
#8 VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
#9 vn_write+0x199 sys/kern/vfs_vnops.c:414
#10 dofilewritev+0x1b7 sys/kern/sys_generic.c:364
#11 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3260
#12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#13 Xsyscall+0x128
Process 77642 (syz-executor.0) thread 0xffff800020ac9650 (438016)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826509a0)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 vn_write+0x42 sys/kern/vfs_vnops.c:399
#2 dofilewritev+0x1b7 sys/kern/sys_generic.c:364
#3 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3260
#4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#5 Xsyscall+0x128
exclusive kernel_lock mbufpl r = 0 (0xffffffff8262c8e8)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 mtx_enter_try+0x102
#2 pool_cache_get+0xa3 pl_enter_try sys/kern/subr_pool.c:109 [inline]
#2 pool_cache_get+0xa3 pool_list_enter sys/kern/subr_pool.c:1797 [inline]
#2 pool_cache_get+0xa3 pool_cache_list_alloc sys/kern/subr_pool.c:1814 [inline]
#2 pool_cache_get+0xa3 sys/kern/subr_pool.c:1887
#3 pool_get+0x91 sys/kern/subr_pool.c:572
#4 m_pullup+0x242 m_get sys/kern/uipc_mbuf.c:250 [inline]
#4 m_pullup+0x242 sys/kern/uipc_mbuf.c:976
#5 swofp_input+0x13f sys/net/switchofp.c:4703
#6 switchwrite+0x3b0 sys/net/switchctl.c:282
#7 spec_write+0xd4 sys/kern/spec_vnops.c:309
#8 VOP_WRITE+0xc6 sys/kern/vfs_vops.c:269
#9 vn_write+0x199 sys/kern/vfs_vnops.c:414
#10 dofilewritev+0x1b7 sys/kern/sys_generic.c:364
#11 sys_pwritev+0xb8 sys/kern/vfs_syscalls.c:3260
#12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#13 Xsyscall+0x128
Process 5117 (syz-executor.1) thread 0xffff800020ac89f8 (11087)
exclusive rrwlock inode r = 0 (0xfffffd8066b56920)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5 vget+0x1c8 sys/kern/vfs_subr.c:671
#6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119
#7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323
#8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487
#9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91
#10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568
#11 namei+0x63c sys/kern/vfs_lookup.c:249
#12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776
#13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#14 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806acc3098)
#0 witness_lock+0x52e sys/kern/subr_witness.c:1163
#1 rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615
#4 vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6 namei+0x63c sys/kern/vfs_lookup.c:249
#7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1776
#8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#9 Xsyscall+0x128
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 9500 6472K 6982K 78643K 10700 0
pcb 13 8K 8K 78643K 29 0
rtable 105 3K 3K 78643K 211 0
ifaddr 61 13K 13K 78643K 65 0
counters 39 33K 33K 78643K 39 0
ioctlops 0 0K 4K 78643K 1471 0
iov 1 2K 16K 78643K 11 0
mount 1 1K 1K 78643K 1 0
vnodes 1220 77K 77K 78643K 1259 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 0K 78643K 22 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 196K 290K 78643K 12766 0
file desc 5 13K 25K 78643K 81 0
sigio 0 0K 0K 78643K 8 0
proc 60 63K 95K 78643K 439 0
subproc 32 2K 2K 78643K 34 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 47 2K 2K 78643K 47 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 37 175K 175K 78643K 37 0
exec 0 0K 1K 78643K 208 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 108 21K 22K 78643K 1188 0
UVM aobj 2 2K 2K 78643K 2 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 9 0K 0K 78643K 13 0
temp 84 3009K 3073K 78643K 4888 0
kqueue 3 4K 21K 78643K 18 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
arp 64 6 0 0 1 0 1 1 0 8 0
plcache 128 20 0 0 1 0 1 1 0 8 0
rtpcb 80 25 0 23 1 0 1 1 0 8 0
rtentry 112 45 0 1 2 0 2 2 0 8 0
unpcb 120 99 0 89 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 99 0 99 1 0 1 1 0 8 1
tcpcb 544 24 0 20 1 0 1 1 0 8 0
inpcb 280 83 0 76 2 0 2 2 0 8 1
nd6 48 4 0 0 1 0 1 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 11 0 0 1 0 1 1 0 8 0
pfstkey 112 11 0 0 1 0 1 1 0 8 0
pfstate 328 11 0 0 1 0 1 1 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 212 0 0 14 0 14 14 0 8 0
art_table 32 213 0 0 2 0 2 2 0 8 0
art_node 16 44 0 4 1 0 1 1 0 8 0
semapl 112 20 0 10 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 1502 0 94 46 0 46 46 0 8 0
ffsino 272 1502 0 94 95 0 95 95 0 8 0
nchpl 144 1800 0 180 61 0 61 61 0 8 0
uvmvnodes 72 1572 0 0 29 0 29 29 0 8 0
vnodes 208 1572 0 0 83 0 83 83 0 8 0
namei 1024 4737 0 4737 1 0 1 1 0 8 1
percpumem 16 30 0 0 1 0 1 1 0 8 0
scxspl 192 4800 0 4799 2 1 1 2 0 8 0
plimitpl 152 23 0 15 1 0 1 1 0 8 0
sigapl 432 280 0 265 3 0 3 3 0 8 1
futexpl 56 1058 0 1058 1 0 1 1 0 8 1
knotepl 112 87 0 68 1 0 1 1 0 8 0
kqueuepl 104 79 0 77 1 0 1 1 0 8 0
pipelkpl 48 88 0 78 1 0 1 1 0 8 0
pipepl 120 176 0 157 1 0 1 1 0 8 0
fdescpl 496 281 0 265 3 0 3 3 0 8 0
filepl 152 1622 0 1521 5 0 5 5 0 8 1
lockfpl 104 14 0 13 1 0 1 1 0 8 0
lockfspl 48 6 0 5 1 0 1 1 0 8 0
sessionpl 112 18 0 7 1 0 1 1 0 8 0
pgrppl 48 18 0 7 1 0 1 1 0 8 0
ucredpl 96 134 0 125 1 0 1 1 0 8 0
zombiepl 144 265 0 265 1 0 1 1 0 8 1
processpl 896 297 0 265 4 0 4 4 0 8 0
procpl 632 416 0 374 5 0 5 5 0 8 1
sosppl 128 2 0 2 1 0 1 1 0 8 1
sockpl 384 207 0 188 4 0 4 4 0 8 2
mcl64k 65536 2 0 0 1 0 1 1 0 8 0
mcl9k 9216 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 1 0 0 1 0 1 1 0 8 0
mcl4k 4096 2 0 0 1 0 1 1 0 8 0
mcl2k 2048 166 0 0 20 0 20 20 0 8 0
mtagpl 80 4 0 0 1 0 1 1 0 8 0
mbufpl 256 167 0 0 10 0 10 10 0 8 0
bufpl 280 6330 0 1340 357 0 357 357 0 8 0
anonpl 16 41064 0 25538 64 1 63 63 0 125 0
amapchunkpl 152 1280 0 1152 8 0 8 8 0 158 2
amappl16 192 1093 0 246 44 1 43 43 0 8 0
amappl15 184 59 0 55 1 0 1 1 0 8 0
amappl14 176 57 0 53 1 0 1 1 0 8 0
amappl13 168 8 0 7 1 0 1 1 0 8 0
amappl12 160 5 0 2 1 0 1 1 0 8 0
amappl11 152 56 0 41 1 0 1 1 0 8 0
amappl10 144 17 0 10 1 0 1 1 0 8 0
amappl9 136 626 0 621 1 0 1 1 0 8 0
amappl8 128 135 0 116 1 0 1 1 0 8 0
amappl7 120 101 0 90 1 0 1 1 0 8 0
amappl6 112 60 0 53 1 0 1 1 0 8 0
amappl5 104 128 0 115 1 0 1 1 0 8 0
amappl4 96 535 0 503 2 0 2 2 0 8 1
amappl3 88 143 0 134 1 0 1 1 0 8 0
amappl2 80 1348 0 1273 3 0 3 3 0 8 1
amappl1 72 16405 0 15964 25 8 17 20 0 8 7
amappl 80 657 0 614 2 0 2 2 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
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 64 1 0 0 1 0 1 1 0 8 0
uaddrrnd 24 281 0 265 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 281 0 265 1 0 1 1 0 8 0
vmmpekpl 168 6128 0 6094 2 0 2 2 0 8 0
vmmpepl 168 41874 0 39863 115 5 110 110 0 357 21
vmsppl 368 280 0 265 2 0 2 2 0 8 0
pdppl 4096 569 0 530 6 0 6 6 0 8 1
pvpl 32 142590 0 123896 152 0 152 152 0 265 1
pmappl 232 280 0 265 2 0 2 2 0 8 1
extentpl 40 46 0 29 1 0 1 1 0 8 0
phpool 112 160 0 3 5 0 5 5 0 8 0