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 *357675 22941 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(fffffd80571b31a8,1,fffffd806c3bfc60,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8065dfdd20,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8065dfdd20,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd8065dfdd20,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8065dfdd20,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(fffffd80571b31a8,1,fffffd806c3bfc60,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd8065dfdd20,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd8065dfdd20,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd8065dfdd20,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd8065dfdd20,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 0xffff80001d2fc900 rbx 0xffff80001d2fc9b0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2fc8c0 r9 0x1 r10 0 r11 0x5423ee19aa2c18de r12 0x3000000008 r13 0xffff80001d2fc910 r14 0x100 r15 0x1 rip 0xffffffff813787c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2fc8f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (systq) pid=357675 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e2110,0xffff80001d2e1760 process=0xffff8000ffffe398 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 47090 62317 58888 0 3 0x80 nanosleep syz-executor.0 47090 257086 58888 0 3 0x4000080 fsleep syz-executor.0 47090 213782 58888 0 3 0x4000080 fsleep syz-executor.0 27916 446765 51211 0 3 0x82 nanosleep syz-executor.1 11267 176563 0 0 3 0x14200 bored sosplice 58888 65586 51211 0 3 0x82 nanosleep syz-executor.0 51211 382481 83490 0 3 0x82 thrsleep syz-fuzzer 51211 30197 83490 0 3 0x4000082 thrsleep syz-fuzzer 51211 477406 83490 0 3 0x4000082 thrsleep syz-fuzzer 51211 389074 83490 0 3 0x4000082 thrsleep syz-fuzzer 51211 334377 83490 0 3 0x4000082 thrsleep syz-fuzzer 51211 283493 83490 0 3 0x4000082 kqread syz-fuzzer 51211 63218 83490 0 3 0x4000082 thrsleep syz-fuzzer 51211 398432 83490 0 3 0x4000082 thrsleep syz-fuzzer 83490 423341 87357 0 3 0x10008a pause ksh 87357 333224 84247 0 3 0x92 select sshd 52756 466876 1 0 3 0x100083 ttyin getty 84247 106835 1 0 3 0x80 select sshd 67169 346767 12108 73 3 0x100090 kqread syslogd 12108 446458 1 0 3 0x100082 netio syslogd 50807 361613 1 77 3 0x100090 poll dhclient 13017 351682 1 0 3 0x80 poll dhclient 59786 382345 0 0 3 0x14200 bored smr 66893 119612 0 0 2 0x14200 zerothread 47839 103644 0 0 3 0x14200 aiodoned aiodoned 74873 15258 0 0 3 0x14200 syncer update 99701 200226 0 0 3 0x14200 cleaner cleaner 81091 358947 0 0 3 0x14200 reaper reaper 39342 353299 0 0 3 0x14200 pgdaemon pagedaemon 25374 113612 0 0 3 0x14200 bored crynlk 59935 118911 0 0 3 0x14200 bored crypto 86380 194848 0 0 3 0x40014200 acpi0 acpi0 4665 238944 0 0 3 0x14200 bored softnet 55412 441772 0 0 3 0x14200 bored systqmp *22941 357675 0 0 7 0x14200 systq 42557 504703 0 0 3 0x40014200 bored softclock 86701 523335 0 0 3 0x40014200 idle0 1 162807 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 9506 6360K 6721K 78643K 11360 0 pcb 13 8K 8K 78643K 91 0 rtable 100 3K 4K 78643K 840 0 ifaddr 76 15K 15K 78643K 130 0 counters 21 16K 16K 78643K 28 0 ioctlops 0 0K 2K 78643K 39 0 iov 0 0K 16K 78643K 64 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1775 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 58 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 952 0 sigio 0 0K 0K 78643K 2 0 proc 50 38K 55K 78643K 475 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 36 0 in_multi 63 3K 3K 78643K 124 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 242 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 105 70K 70K 78643K 3290 0 UVM aobj 14 3K 4K 78643K 25 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 56 0 NDP 12 0K 0K 78643K 28 0 temp 106 3035K 3099K 78643K 44561 0 kqueue 3 4K 18K 78643K 17 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 11 0 5 1 0 1 1 0 8 0 rtpcb 80 585 0 583 1 0 1 1 0 8 0 rtentry 112 76 0 36 2 0 2 2 0 8 0 unpcb 120 1680 0 1664 4 3 1 4 0 8 0 syncache 264 10 0 10 4 4 0 1 0 8 0 tcpqe 32 124 0 124 3 3 0 1 0 8 0 tcpcb 544 140 0 136 1 0 1 1 0 8 0 inpcb 280 685 0 678 3 2 1 2 0 8 0 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 13 0 9 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 3 0 3 2 2 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 305 0 130 13 1 12 13 0 8 0 art_table 32 306 0 130 2 0 2 2 0 8 0 art_node 16 75 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 9 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 52 0 42 1 0 1 1 0 8 0 shmpl 112 23 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2743 0 1348 46 0 46 46 0 8 0 ffsino 240 2743 0 1348 83 0 83 83 0 8 0 nchpl 144 4447 0 2849 60 0 60 60 0 8 0 uvmvnodes 72 3163 0 0 58 0 58 58 0 8 0 vnodes 208 3163 0 0 167 0 167 167 0 8 0 namei 1024 11191 0 11191 1 0 1 1 0 8 1 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 528 7 0 2 1 0 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 12210 0 12210 1 0 1 1 0 8 1 plimitpl 152 46 0 39 1 0 1 1 0 8 0 sigapl 424 1133 0 1104 4 0 4 4 0 8 0 futexpl 56 12937 0 12935 1 0 1 1 0 8 0 knotepl 112 98 0 79 1 0 1 1 0 8 0 kqueuepl 144 66 0 64 1 0 1 1 0 8 0 pipelkpl 16 131 0 121 1 0 1 1 0 8 0 pipepl 120 262 0 243 1 0 1 1 0 8 0 fdescpl 432 1118 0 1104 2 0 2 2 0 8 0 filepl 120 6406 0 6306 7 3 4 7 0 8 0 lockfpl 104 583 0 582 1 0 1 1 0 8 0 lockfspl 48 263 0 262 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 294 0 286 1 0 1 1 0 8 0 zombiepl 144 1104 0 1103 1 0 1 1 0 8 0 processpl 920 1133 0 1103 4 0 4 4 0 8 0 procpl 624 2512 0 2473 4 0 4 4 0 8 0 sosppl 128 6 0 6 1 1 0 1 0 8 0 sockpl 400 2954 0 2929 18 14 4 14 0 8 0 mcl64k 65536 42 0 42 3 3 0 1 0 8 0 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 10 0 10 6 5 1 1 0 8 1 mcl9k 9216 5 0 5 4 4 0 1 0 8 0 mcl8k 8192 11 0 11 7 7 0 1 0 8 0 mcl4k 4096 56 0 56 3 2 1 1 0 8 1 mcl2k2 2112 3 0 3 1 1 0 1 0 8 0 mcl2k 2048 59170 0 59120 17 9 8 14 0 8 1 mtagpl 80 32 0 4 2 1 1 1 0 8 0 mbufpl 256 100095 0 99889 24 7 17 20 0 8 0 bufpl 280 6570 0 1186 385 0 385 385 0 8 0 anonpl 16 102182 0 88851 76 18 58 73 0 107 0 amapchunkpl 152 5118 0 4973 20 12 8 20 0 158 0 amappl16 192 4546 0 3765 51 11 40 50 0 8 0 amappl15 184 997 0 992 1 0 1 1 0 8 0 amappl14 176 107 0 106 2 1 1 1 0 8 0 amappl13 168 43 0 41 1 0 1 1 0 8 0 amappl12 160 7 0 6 1 0 1 1 0 8 0 amappl11 152 68 0 56 1 0 1 1 0 8 0 amappl10 144 157 0 153 1 0 1 1 0 8 0 amappl9 136 534 0 530 1 0 1 1 0 8 0 amappl8 128 452 0 440 1 0 1 1 0 8 0 amappl7 120 261 0 250 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 943 0 930 1 0 1 1 0 8 0 amappl4 96 568 0 537 1 0 1 1 0 8 0 amappl3 88 221 0 215 1 0 1 1 0 8 0 amappl2 80 8485 0 8415 3 1 2 3 0 8 0 amappl1 72 29939 0 29517 27 18 9 20 0 8 0 amappl 80 2761 0 2713 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 24 0 11 1 0 1 1 0 8 0 uaddrrnd 24 1125 0 1106 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1125 0 1106 1 0 1 1 0 8 0 vmmpekpl 168 10347 0 10317 2 0 2 2 0 8 0 vmmpepl 168 135637 0 133783 174 87 87 130 0 357 1 vmsppl 272 1124 0 1106 2 0 2 2 0 8 0 pdppl 4096 2256 0 2217 7 1 6 6 0 8 0 pvpl 32 299451 0 283126 179 39 140 174 0 265 0 pmappl 200 1124 0 1106 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 191 0 48 5 0 5 5 0 8 0