panic: kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/vfs_vops.c", line 169 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 166999 41857 0 0 0x4000000 0 syz-executor.0 * 28511 41048 0 0x14000 0x200 1K systq db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f472c) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8224a9ea,ffffffff8224bf14,a9,ffffffff8222a32f) at __assert+0x2b sys/kern/subr_prf.c:154 VOP_CLOSE(fffffd8064094c30,1,fffffd807f7bfae0,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8064030300,0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8064030300,0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8064030300,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8064030300,0) at closef+0x11c sys/kern/kern_descrip.c:1260 unp_gc(0) at unp_gc+0x172 sys/kern/uipc_usrreq.c:944 taskq_thread(ffffffff8248bfb0) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: 6 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 kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/vfs_vops.c", line 169 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f472c) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8224a9ea,ffffffff8224bf14,a9,ffffffff8222a32f) at __assert+0x2b sys/kern/subr_prf.c:154 VOP_CLOSE(fffffd8064094c30,1,fffffd807f7bfae0,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8064030300,0) at vn_closefile+0xd7 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8064030300,0) at vn_closefile+0xd7 sys/kern/vfs_vnops.c:614 fdrop(fffffd8064030300,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8064030300,0) at closef+0x11c sys/kern/kern_descrip.c:1260 unp_gc(0) at unp_gc+0x172 sys/kern/uipc_usrreq.c:944 taskq_thread(ffffffff8248bfb0) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a2d8c0 rbx 0xffff800020a2d970 rdx 0xffff800020a18c30 rcx 0 rax 0 r8 0xffffffff81e1786f kprintf+0x16f r9 0x1 r10 0x25 r11 0xda3e50e41c10064e r12 0x3000000008 r13 0xffff800020a2d8d0 r14 0x100 r15 0x1 rip 0xffffffff81f88cf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a2d8b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (systq) pid=28511 stat=onproc flags process=14000 proc=200 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020a18ea0,0xffff800020a18760 process=0xffff800020a1a000 user=0xffff800020a28000, vmspace=0xffffffff82648778 estcpu=1, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35382 382171 25932 0 2 0 syz-executor.1 35382 341161 25932 0 3 0x4000080 netio syz-executor.1 35382 491772 25932 0 3 0x4000080 netio syz-executor.1 35382 5719 25932 0 2 0x4000000 syz-executor.1 41857 333219 47117 0 2 0 syz-executor.0 41857 326124 47117 0 3 0x4000080 ttyout syz-executor.0 41857 166999 47117 0 7 0x4000000 syz-executor.0 41857 190080 47117 0 3 0x4000080 fsleep syz-executor.0 94164 351487 0 0 3 0x14200 bored sosplice 25932 275113 38552 0 3 0x82 nanosleep syz-executor.1 47117 288404 38552 0 3 0x82 nanosleep syz-executor.0 38552 258926 92603 0 3 0x82 thrsleep syz-fuzzer 38552 185285 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 160651 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 230216 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 518703 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 76770 92603 0 3 0x4000082 kqread syz-fuzzer 38552 377464 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 128579 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 262893 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 58566 92603 0 3 0x4000082 thrsleep syz-fuzzer 38552 291172 92603 0 3 0x4000082 thrsleep syz-fuzzer 92603 423722 5421 0 3 0x10008a pause ksh 5421 468493 41124 0 3 0x92 select sshd 96113 509766 1 0 3 0x100083 ttyin getty 41124 444601 1 0 3 0x80 select sshd 96533 79325 58420 74 3 0x100092 bpf pflogd 58420 29801 1 0 3 0x80 netio pflogd 51808 517691 85867 73 3 0x100090 kqread syslogd 85867 316702 1 0 3 0x100082 netio syslogd 80541 508144 1 77 3 0x100090 poll dhclient 56305 281469 1 0 3 0x80 poll dhclient 69268 55659 0 0 3 0x14200 bored smr 88479 435259 0 0 3 0x14200 pgzero zerothread 94202 492840 0 0 3 0x14200 aiodoned aiodoned 59106 300870 0 0 3 0x14200 syncer update 56846 115746 0 0 3 0x14200 cleaner cleaner 47803 459254 0 0 3 0x14200 reaper reaper 665 434786 0 0 3 0x14200 pgdaemon pagedaemon 57168 72827 0 0 3 0x14200 bored crynlk 56317 281731 0 0 3 0x14200 bored crypto 62379 78907 0 0 3 0x40014200 acpi0 acpi0 79747 348227 0 0 3 0x40014200 idle1 22108 353822 0 0 3 0x14200 bored softnet 4621 434074 0 0 3 0x14200 bored systqmp *41048 28511 0 0 7 0x14200 systq 5264 23525 0 0 3 0x40014200 bored softclock 20062 461281 0 0 3 0x40014200 idle0 1 311917 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 41048 (systq) thread 0xffff800020a18c30 (28511) exclusive rrwlock inode r = 0 (0xfffffd80641e33d0) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:613 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vn_closefile+0xc6 vn_close sys/kern/vfs_vnops.c:298 [inline] #5 vn_closefile+0xc6 sys/kern/vfs_vnops.c:614 #6 fdrop+0xc2 sys/kern/kern_descrip.c:1276 #7 closef+0x11c sys/kern/kern_descrip.c:1260 #8 unp_gc+0x172 sys/kern/uipc_usrreq.c:944 #9 taskq_thread+0x9c sys/kern/kern_task.c:369 #10 proc_trampoline+0x1c shared rwlock systq r = 0 (0xffffffff8248c010) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 taskq_thread+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8267f3f0) #0 witness_lock+0x4c5 sys/kern/subr_witness.c:1164 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:435 #3 sleep_finish+0x113 sys/kern/kern_synch.c:417 #4 sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:446 [inline] #4 sleep_finish_all+0x32 sys/kern/kern_synch.c:206 #5 msleep+0x20e sys/kern/kern_synch.c:273 #6 taskq_next_work+0xbe sys/kern/kern_task.c:323 #7 taskq_thread+0xe5 sys/kern/kern_task.c:366 #8 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9504 6424K 6791K 78643K 10920 0 pcb 13 8K 8K 78643K 69 0 rtable 88 3K 3K 78643K 268 0 ifaddr 56 12K 12K 78643K 109 0 counters 41 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1485 0 iov 0 0K 12K 78643K 31 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1315 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 222 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 95K 78643K 476 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 22 0 in_multi 29 1K 2K 78643K 65 0 ether_multi 1 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 232 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 107 53K 55K 78643K 1695 0 UVM aobj 16 2K 2K 78643K 16 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 40 0 NDP 9 0K 0K 78643K 22 0 temp 92 3039K 3103K 78643K 4068 0 kqueue 3 4K 8K 78643K 22 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 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 46 0 12 2 0 2 2 0 8 0 unpcb 120 237 0 222 1 0 1 1 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 582 0 582 4 3 1 2 0 8 1 tcpcb 544 90 0 86 1 0 1 1 0 8 0 inpcb 280 292 0 281 2 1 1 2 0 8 0 nd6 48 7 0 3 1 0 1 1 0 8 0 ppxss 1128 2 0 2 2 1 1 1 0 8 1 pffrag 232 2 0 2 2 2 0 1 0 482 0 pffrnode 88 2 0 2 2 2 0 1 0 8 0 pffrent 40 90 0 90 2 2 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 26 0 6 1 0 1 1 0 8 0 pfstkey 112 26 0 6 1 0 1 1 0 8 0 pfstate 328 26 0 6 2 0 2 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 190 0 44 12 2 10 12 0 8 0 art_table 32 191 0 44 2 0 2 2 0 8 0 art_node 16 45 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 1 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 14 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1722 0 318 46 0 46 46 0 8 0 ffsino 272 1722 0 318 95 0 95 95 0 8 0 nchpl 144 2301 0 696 61 0 61 61 0 8 0 uvmvnodes 72 1827 0 0 34 0 34 34 0 8 0 vnodes 208 1827 0 0 97 0 97 97 0 8 0 namei 1024 6276 0 6276 2 1 1 1 0 8 1 percpumem 16 40 0 9 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 10 0 6 1 0 1 1 0 8 0 scxspl 192 7042 0 7042 4 3 1 3 0 8 1 plimitpl 152 39 0 29 1 0 1 1 0 8 0 sigapl 424 438 0 405 4 0 4 4 0 8 0 futexpl 56 3344 0 3343 1 0 1 1 0 8 0 knotepl 112 73 0 54 1 0 1 1 0 8 0 kqueuepl 144 32 0 30 1 0 1 1 0 8 0 pipelkpl 48 94 0 84 1 0 1 1 0 8 0 pipepl 120 188 0 169 1 0 1 1 0 8 0 fdescpl 496 422 0 405 3 0 3 3 0 8 0 filepl 152 2707 0 2591 7 2 5 6 0 8 0 lockfpl 104 55 0 54 1 0 1 1 0 8 0 lockfspl 48 21 0 20 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 225 0 216 1 0 1 1 0 8 0 zombiepl 144 405 0 405 2 1 1 1 0 8 1 processpl 984 438 0 405 6 1 5 5 0 8 0 procpl 624 928 0 879 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 4 0 4 1 1 0 1 0 8 0 sockpl 400 564 0 536 7 3 4 5 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 229 0 0 28 0 28 28 0 8 0 mtagpl 80 19 0 0 1 0 1 1 0 8 0 mbufpl 256 288 0 0 18 0 18 18 0 8 0 bufpl 280 4629 0 177 318 0 318 318 0 8 0 anonpl 16 60519 0 46408 76 2 74 75 0 124 13 amapchunkpl 152 2516 0 2372 13 4 9 11 0 158 2 amappl16 192 2259 0 1478 51 3 48 51 0 8 8 amappl15 184 95 0 93 2 1 1 1 0 8 0 amappl14 176 5 0 4 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 4 0 4 1 1 0 1 0 8 0 amappl11 152 69 0 51 1 0 1 1 0 8 0 amappl10 144 19 0 13 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 303 0 288 1 0 1 1 0 8 0 amappl7 120 129 0 116 1 0 1 1 0 8 0 amappl6 112 24 0 21 1 0 1 1 0 8 0 amappl5 104 326 0 306 1 0 1 1 0 8 0 amappl4 96 506 0 473 2 1 1 2 0 8 0 amappl3 88 111 0 106 1 0 1 1 0 8 0 amappl2 80 2559 0 2481 3 0 3 3 0 8 0 amappl1 72 19248 0 18767 25 15 10 20 0 8 0 amappl 80 1187 0 1136 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 15 0 0 1 0 1 1 0 8 0 uaddrrnd 24 432 0 411 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 432 0 411 1 0 1 1 0 8 0 vmmpekpl 168 7057 0 7017 2 0 2 2 0 8 0 vmmpepl 168 58575 0 56516 119 22 97 102 0 357 7 vmsppl 368 431 0 411 2 0 2 2 0 8 0 pdppl 4096 872 0 826 7 0 7 7 0 8 1 pvpl 32 186315 0 168905 185 5 180 182 0 265 37 pmappl 232 431 0 411 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 188 0 9 6 0 6 6 0 8 0