panic: kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_vops.c", line 169 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 95309 29107 0 0x14000 0x200 0 systq db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d5d2f) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8222900d,ffffffff8225c86f,a9,ffffffff82208fd2) at __assert+0x2b sys/kern/subr_prf.c:154 VOP_CLOSE(fffffd805330c500,1,fffffd806c3bfa80,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8056e6cf10,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8056e6cf10,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd8056e6cf10,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8056e6cf10,0) at closef+0x117 sys/kern/kern_descrip.c:1260 unp_gc(0) at unp_gc+0x172 sys/kern/uipc_usrreq.c:944 taskq_thread(ffffffff824bcfd0) at taskq_thread+0x52 sys/kern/kern_task.c:370 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/main/kernel/sys/kern/vfs_vops.c", line 169 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d5d2f) at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff8222900d,ffffffff8225c86f,a9,ffffffff82208fd2) at __assert+0x2b sys/kern/subr_prf.c:154 VOP_CLOSE(fffffd805330c500,1,fffffd806c3bfa80,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8056e6cf10,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8056e6cf10,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd8056e6cf10,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8056e6cf10,0) at closef+0x117 sys/kern/kern_descrip.c:1260 unp_gc(0) at unp_gc+0x172 sys/kern/uipc_usrreq.c:944 taskq_thread(ffffffff824bcfd0) at taskq_thread+0x52 sys/kern/kern_task.c:370 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d2fbd40 rbx 0xffff80001d2fbdf0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2fbd00 r9 0x1 r10 0 r11 0xc1da622e24a8434b r12 0x3000000008 r13 0xffff80001d2fbd50 r14 0x100 r15 0x1 rip 0xffffffff813787c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2fbd30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (systq) pid=95309 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e2380,0xffff80001d2e1c40 process=0xffff8000ffffe730 user=0xffff80001d2f7000, vmspace=0xffffffff82589be8 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 65308 305409 75689 0 2 0 syz-executor.0 65308 31810 75689 0 3 0x4000080 fsleep syz-executor.0 87702 198691 0 0 3 0x14200 bored sosplice 86308 263475 15855 0 2 0x482 syz-executor.1 75689 469065 15855 0 3 0x82 nanosleep syz-executor.0 15855 497163 43127 0 3 0x82 thrsleep syz-fuzzer 15855 223227 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 91037 43127 0 3 0x4000082 kqread syz-fuzzer 15855 347071 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 348600 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 111353 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 513131 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 169256 43127 0 3 0x4000082 thrsleep syz-fuzzer 15855 362635 43127 0 3 0x4000082 thrsleep syz-fuzzer 43127 501172 2677 0 3 0x10008a pause ksh 2677 106915 34775 0 3 0x92 select sshd 40670 393105 1 0 3 0x100083 ttyin getty 34775 221838 1 0 3 0x80 select sshd 48564 434022 57330 73 3 0x100090 kqread syslogd 57330 199275 1 0 3 0x100082 netio syslogd 18225 490610 1 77 3 0x100090 poll dhclient 69840 173965 1 0 3 0x80 poll dhclient 81380 21895 0 0 3 0x14200 bored smr 53796 499914 0 0 2 0x14200 zerothread 36057 115620 0 0 3 0x14200 aiodoned aiodoned 2775 523759 0 0 3 0x14200 syncer update 87224 499450 0 0 3 0x14200 cleaner cleaner 65662 57318 0 0 3 0x14200 reaper reaper 26392 237606 0 0 3 0x14200 pgdaemon pagedaemon 35196 99675 0 0 3 0x14200 bored crynlk 20428 310299 0 0 3 0x14200 bored crypto 3075 287755 0 0 3 0x40014200 acpi0 acpi0 74601 208344 0 0 3 0x14200 bored softnet 13740 178286 0 0 3 0x14200 bored systqmp *29107 95309 0 0 7 0x14200 systq 92288 362100 0 0 3 0x40014200 bored softclock 35654 461883 0 0 3 0x40014200 idle0 1 400369 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9493 6355K 7108K 78643K 11055 0 pcb 13 8K 8K 78643K 71 0 rtable 81 2K 3K 78643K 238 0 ifaddr 67 14K 14K 78643K 96 0 counters 21 16K 16K 78643K 25 0 ioctlops 0 0K 2K 78643K 23 0 iov 0 0K 12K 78643K 52 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1389 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 39 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 262 0 sigio 0 0K 0K 78643K 15 0 proc 48 38K 54K 78643K 366 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 12 0 in_multi 52 2K 2K 78643K 86 0 ether_multi 1 0K 0K 78643K 8 0 mrt 0 0K 0K 78643K 4 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 214 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 99 21K 37K 78643K 1437 0 UVM aobj 10 2K 3K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 10 0K 0K 78643K 19 0 temp 91 3034K 3107K 78643K 5556 0 kqueue 3 4K 18K 78643K 27 0 SYN cache 2 16K 16K 78643K 2 0 ddb> 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 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 50 0 18 2 0 2 2 0 8 0 unpcb 120 109 0 99 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 80 0 80 1 1 0 1 0 8 0 tcpcb 544 136 0 132 1 0 1 1 0 8 0 inpcb 280 331 0 322 1 0 1 1 0 8 0 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 243 0 112 13 0 13 13 0 8 1 art_table 32 244 0 112 2 0 2 2 0 8 0 art_node 16 49 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 12 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1829 0 430 46 0 46 46 0 8 0 ffsino 240 1829 0 430 83 0 83 83 0 8 0 nchpl 144 2401 0 790 60 0 60 60 0 8 0 uvmvnodes 72 1992 0 0 37 0 37 37 0 8 0 vnodes 208 1992 0 0 105 0 105 105 0 8 0 namei 1024 6438 0 6438 2 1 1 1 0 8 1 scxspl 192 7606 0 7606 1 0 1 1 0 8 1 plimitpl 152 35 0 28 1 0 1 1 0 8 0 sigapl 424 449 0 420 4 0 4 4 0 8 0 futexpl 56 5364 0 5363 2 1 1 1 0 8 0 knotepl 112 91 0 72 1 0 1 1 0 8 0 kqueuepl 144 57 0 55 1 0 1 1 0 8 0 pipelkpl 16 91 0 81 1 0 1 1 0 8 0 pipepl 120 182 0 163 1 0 1 1 0 8 0 fdescpl 432 434 0 420 2 0 2 2 0 8 0 filepl 120 2703 0 2602 5 1 4 4 0 8 0 lockfpl 104 77 0 76 1 0 1 1 0 8 0 lockfspl 48 32 0 31 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 13 1 0 1 1 0 8 0 ucredpl 96 235 0 228 1 0 1 1 0 8 0 zombiepl 144 420 0 419 2 1 1 1 0 8 0 processpl 920 449 0 419 4 0 4 4 0 8 0 procpl 624 740 0 701 4 0 4 4 0 8 0 sosppl 128 5 0 5 2 2 0 1 0 8 0 sockpl 400 470 0 449 4 1 3 3 0 8 0 mcl64k 65536 34 0 34 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 10 0 10 2 1 1 1 0 8 1 mcl9k 9216 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 24 0 24 3 2 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 60252 0 60209 17 10 7 14 0 8 1 mtagpl 80 33 0 2 2 1 1 1 0 8 0 mbufpl 256 97021 0 96868 16 3 13 13 0 8 0 bufpl 280 4690 0 165 324 0 324 324 0 8 0 anonpl 16 54055 0 40098 75 2 73 73 0 107 16 amapchunkpl 152 2556 0 2419 21 1 20 20 0 158 12 amappl16 192 2071 0 1315 51 5 46 51 0 8 8 amappl15 184 250 0 247 1 0 1 1 0 8 0 amappl14 176 3 0 3 3 2 1 1 0 8 1 amappl13 168 127 0 124 1 0 1 1 0 8 0 amappl12 160 5 0 4 2 1 1 1 0 8 0 amappl11 152 60 0 48 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 370 0 367 1 0 1 1 0 8 0 amappl8 128 267 0 251 1 0 1 1 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 281 0 270 1 0 1 1 0 8 0 amappl4 96 542 0 509 1 0 1 1 0 8 0 amappl3 88 220 0 211 1 0 1 1 0 8 0 amappl2 80 2759 0 2694 3 1 2 3 0 8 0 amappl1 72 17195 0 16790 26 17 9 20 0 8 0 amappl 80 972 0 929 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 13 0 4 1 0 1 1 0 8 0 uaddrrnd 24 434 0 420 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 434 0 420 1 0 1 1 0 8 0 vmmpekpl 168 6658 0 6632 2 0 2 2 0 8 0 vmmpepl 168 58266 0 56457 107 11 96 103 0 357 12 vmsppl 272 433 0 420 2 1 1 2 0 8 0 pdppl 4096 874 0 840 6 1 5 6 0 8 0 pvpl 32 175225 0 158300 178 1 177 177 0 265 39 pmappl 200 433 0 420 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 162 0 23 6 1 5 5 0 8 0