login: 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 *215431 16141 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(fffffd80559ea420,1,fffffd806c3bfa20,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd805d927a60,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd805d927a60,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd805d927a60,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd805d927a60,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(fffffd80559ea420,1,fffffd806c3bfa20,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd805d927a60,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd805d927a60,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd805d927a60,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd805d927a60,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 0xffff80001d2fc9b0 rbx 0xffff80001d2fca60 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2fc970 r9 0x1 r10 0 r11 0x66980909036eeb87 r12 0x3000000008 r13 0xffff80001d2fc9c0 r14 0x100 r15 0x1 rip 0xffffffff813787c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2fc9a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (systq) pid=215431 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e1c30,0xffff80001d2e14f0 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 52868 353225 55503 0 3 0x82 nanosleep syz-executor.0 44752 293664 55503 0 3 0x82 piperd syz-executor.1 55503 473258 50143 0 3 0x82 thrsleep syz-fuzzer 55503 268864 50143 0 3 0x4000082 nanosleep syz-fuzzer 55503 451266 50143 0 3 0x4000082 thrsleep syz-fuzzer 55503 28254 50143 0 3 0x4000082 thrsleep syz-fuzzer 55503 72547 50143 0 3 0x4000082 thrsleep syz-fuzzer 55503 93755 50143 0 3 0x4000082 kqread syz-fuzzer 55503 281335 50143 0 3 0x4000082 thrsleep syz-fuzzer 50143 195952 36475 0 3 0x10008a pause ksh 36475 142429 44974 0 3 0x92 select sshd 81408 27097 1 0 3 0x100083 ttyin getty 44974 406693 1 0 3 0x80 select sshd 80827 275687 87485 73 3 0x100090 kqread syslogd 87485 505416 1 0 3 0x100082 netio syslogd 52172 3081 1 77 3 0x100090 poll dhclient 3671 147398 1 0 3 0x80 poll dhclient 78637 177306 0 0 3 0x14200 bored smr 40668 116033 0 0 2 0x14200 zerothread 83971 146419 0 0 3 0x14200 aiodoned aiodoned 66595 179111 0 0 3 0x14200 syncer update 27760 509502 0 0 3 0x14200 cleaner cleaner 83956 346209 0 0 3 0x14200 reaper reaper 81921 309324 0 0 3 0x14200 pgdaemon pagedaemon 87192 239283 0 0 3 0x14200 bored crynlk 39489 469695 0 0 3 0x14200 bored crypto 21540 475388 0 0 3 0x40014200 acpi0 acpi0 88558 16109 0 0 3 0x14200 bored softnet 19419 130383 0 0 3 0x14200 bored systqmp *16141 215431 0 0 7 0x14200 systq 37920 315855 0 0 3 0x40014200 bored softclock 69272 273390 0 0 3 0x40014200 idle0 1 129088 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 9460 6455K 6455K 78643K 10565 0 pcb 13 8K 8K 78643K 13 0 rtable 105 3K 3K 78643K 197 0 ifaddr 44 10K 10K 78643K 49 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 2K 78643K 17 0 iov 0 0K 2K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1228 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 6 0K 0K 78643K 8 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 4 9K 25K 78643K 46 0 proc 48 38K 54K 78643K 359 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 33 2K 2K 78643K 33 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 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 181 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 91 37K 37K 78643K 926 0 UVM aobj 6 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 11 0 temp 66 3027K 3091K 78643K 1840 0 kqueue 3 4K 10K 78643K 14 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 45 0 35 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 120 0 120 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 inpcb 280 36 0 29 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 6 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1439 0 39 46 0 46 46 0 8 0 ffsino 240 1439 0 39 83 0 83 83 0 8 0 nchpl 144 1684 0 74 60 0 60 60 0 8 0 uvmvnodes 72 1485 0 0 27 0 27 27 0 8 0 vnodes 208 1485 0 0 79 0 79 79 0 8 0 namei 1024 4012 0 4012 1 0 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 1 0 0 1 0 1 1 0 8 0 scxspl 192 4748 0 4748 1 0 1 1 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 424 232 0 205 4 0 4 4 0 8 0 futexpl 56 305 0 305 1 0 1 1 0 8 1 knotepl 112 64 0 45 1 0 1 1 0 8 0 kqueuepl 144 24 0 22 1 0 1 1 0 8 0 pipelkpl 16 67 0 57 1 0 1 1 0 8 0 pipepl 120 134 0 115 1 0 1 1 0 8 0 fdescpl 432 218 0 205 2 0 2 2 0 8 0 filepl 120 1085 0 986 4 0 4 4 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 48 0 41 1 0 1 1 0 8 0 zombiepl 144 205 0 204 1 0 1 1 0 8 0 processpl 920 232 0 204 4 0 4 4 0 8 0 procpl 624 255 0 221 4 0 4 4 0 8 1 sockpl 400 100 0 81 3 0 3 3 0 8 0 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 9 0 9 2 1 1 1 0 8 1 mcl2k 2048 61485 0 61449 13 2 11 11 0 8 6 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 97316 0 97241 12 3 9 9 0 8 2 bufpl 280 3977 0 161 273 0 273 273 0 8 0 anonpl 16 34717 0 21270 57 2 55 55 0 107 0 amapchunkpl 152 974 0 848 7 0 7 7 0 158 0 amappl16 192 894 0 164 37 0 37 37 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 3 0 2 2 1 1 1 0 8 0 amappl13 168 34 0 31 1 0 1 1 0 8 0 amappl12 160 12 0 11 2 1 1 1 0 8 0 amappl11 152 70 0 57 1 0 1 1 0 8 0 amappl10 144 22 0 16 1 0 1 1 0 8 0 amappl9 136 378 0 375 1 0 1 1 0 8 0 amappl8 128 258 0 249 1 0 1 1 0 8 0 amappl7 120 106 0 96 1 0 1 1 0 8 0 amappl6 112 30 0 27 2 1 1 1 0 8 0 amappl5 104 150 0 139 1 0 1 1 0 8 0 amappl4 96 436 0 407 2 0 2 2 0 8 1 amappl3 88 107 0 100 1 0 1 1 0 8 0 amappl2 80 949 0 892 3 0 3 3 0 8 1 amappl1 72 13721 0 13329 27 10 17 20 0 8 8 amappl 80 480 0 441 1 0 1 1 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 7 0 2 1 0 1 1 0 8 0 uaddrrnd 24 219 0 205 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 219 0 205 1 0 1 1 0 8 0 vmmpekpl 168 5612 0 5588 2 0 2 2 0 8 0 vmmpepl 168 33246 0 31582 133 8 125 125 0 357 48 vmsppl 272 218 0 205 2 0 2 2 0 8 1 pdppl 4096 444 0 411 6 0 6 6 0 8 1 pvpl 32 122891 0 106568 134 0 134 134 0 265 1 pmappl 200 218 0 205 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 145 0 8 4 0 4 4 0 8 0