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 *143912 55472 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(fffffd80536abc40,1,fffffd806c3bf960,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd805714af10,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd805714af10,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd805714af10,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd805714af10,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(fffffd80536abc40,1,fffffd806c3bf960,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd805714af10,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd805714af10,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd805714af10,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd805714af10,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 0xffff80001d2fcb00 rbx 0xffff80001d2fcbb0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2fcac0 r9 0x1 r10 0 r11 0xb672997b33b875 r12 0x3000000008 r13 0xffff80001d2fcb10 r14 0x100 r15 0x1 rip 0xffffffff813787c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2fcaf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (systq) pid=143912 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e1ea0,0xffff80001d2e19d0 process=0xffff8000ffffee60 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 13133 114847 54993 0 2 0x480 syz-executor.0 13133 250391 54993 0 3 0x4000080 poll syz-executor.0 13133 419192 54993 0 3 0x4000080 fsleep syz-executor.0 13227 354915 0 0 3 0x14200 bored sosplice 54993 445293 70679 0 2 0x482 syz-executor.0 51353 96648 70679 0 3 0x82 nanosleep syz-executor.1 70679 373158 50111 0 3 0x82 thrsleep syz-fuzzer 70679 333426 50111 0 3 0x4000082 thrsleep syz-fuzzer 70679 68609 50111 0 3 0x4000082 thrsleep syz-fuzzer 70679 407882 50111 0 3 0x4000082 thrsleep syz-fuzzer 70679 47388 50111 0 3 0x4000082 thrsleep syz-fuzzer 70679 443819 50111 0 3 0x4000082 kqread syz-fuzzer 70679 214854 50111 0 3 0x4000082 thrsleep syz-fuzzer 70679 5 50111 0 3 0x4000082 thrsleep syz-fuzzer 50111 358214 70674 0 3 0x10008a pause ksh 70674 238332 37016 0 3 0x92 select sshd 3271 42418 1 0 3 0x100083 ttyin getty 37016 324390 1 0 3 0x80 select sshd 2880 437617 37868 73 3 0x100090 kqread syslogd 37868 234268 1 0 3 0x100082 netio syslogd 52046 262411 1 77 3 0x100090 poll dhclient 60605 180308 1 0 3 0x80 poll dhclient 93682 56206 0 0 3 0x14200 bored smr 83981 121615 0 0 2 0x14200 zerothread 51000 134073 0 0 3 0x14200 aiodoned aiodoned 10550 420840 0 0 3 0x14200 syncer update 90643 413600 0 0 3 0x14200 cleaner cleaner 91218 436881 0 0 3 0x14200 reaper reaper 6536 395611 0 0 3 0x14200 pgdaemon pagedaemon 21489 293016 0 0 3 0x14200 bored crynlk 86161 500035 0 0 3 0x14200 bored crypto 65446 459441 0 0 3 0x40014200 acpi0 acpi0 40736 293895 0 0 3 0x14200 bored softnet 9401 363368 0 0 3 0x14200 bored systqmp *55472 143912 0 0 7 0x14200 systq 6621 162846 0 0 2 0x40014200 softclock 50045 406092 0 0 3 0x40014200 idle0 1 210020 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 9458 6328K 6845K 78643K 10950 0 pcb 13 8K 8K 78643K 52 0 rtable 105 3K 3K 78643K 223 0 ifaddr 50 12K 12K 78643K 70 0 counters 21 16K 16K 78643K 24 0 ioctlops 0 0K 2K 78643K 23 0 iov 0 0K 2K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1320 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 5 13K 25K 78643K 195 0 proc 48 38K 54K 78643K 371 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 19 0 in_multi 53 3K 3K 78643K 61 0 ether_multi 1 0K 0K 78643K 8 0 mrt 0 0K 0K 78643K 13 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 196 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 86 20K 21K 78643K 1236 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 28 0 NDP 6 0K 0K 78643K 13 0 temp 71 3029K 3092K 78643K 7895 0 kqueue 3 4K 8K 78643K 8 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 49 0 5 2 0 2 2 0 8 0 unpcb 120 77 0 65 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 37 0 37 1 1 0 1 0 8 0 tcpcb 544 53 0 45 1 0 1 1 0 8 0 inpcb 280 176 0 169 2 0 2 2 0 8 1 rttmr 72 4 0 4 1 0 1 1 0 8 1 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 48 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1629 0 225 46 0 46 46 0 8 0 ffsino 240 1629 0 225 83 0 83 83 0 8 0 nchpl 144 2045 0 427 60 0 60 60 0 8 0 uvmvnodes 72 1755 0 0 32 0 32 32 0 8 0 vnodes 208 1755 0 0 93 0 93 93 0 8 0 namei 1024 4941 0 4941 1 0 1 1 0 8 1 scxspl 192 6035 0 6035 1 0 1 1 0 8 1 plimitpl 152 18 0 11 1 0 1 1 0 8 0 sigapl 424 382 0 353 4 0 4 4 0 8 0 futexpl 56 1521 0 1520 1 0 1 1 0 8 0 knotepl 112 59 0 40 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipelkpl 16 71 0 61 1 0 1 1 0 8 0 pipepl 120 142 0 123 1 0 1 1 0 8 0 fdescpl 432 367 0 353 2 0 2 2 0 8 0 filepl 120 1571 0 1471 4 0 4 4 0 8 0 lockfpl 104 13 0 12 1 0 1 1 0 8 0 lockfspl 48 6 0 5 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 84 0 77 1 0 1 1 0 8 0 zombiepl 144 353 0 352 1 0 1 1 0 8 0 processpl 920 382 0 352 4 0 4 4 0 8 0 procpl 624 579 0 540 4 0 4 4 0 8 0 sosppl 128 8 0 8 1 0 1 1 0 8 1 sockpl 400 276 0 255 3 0 3 3 0 8 0 mcl64k 65536 4 0 4 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 8 0 8 1 1 0 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 60345 0 60302 15 6 9 13 0 8 2 mtagpl 80 31 0 2 2 1 1 1 0 8 0 mbufpl 256 96966 0 96816 14 1 13 13 0 8 1 bufpl 280 4203 0 161 289 0 289 289 0 8 0 anonpl 16 41251 0 29261 51 2 49 49 0 107 0 amapchunkpl 152 1547 0 1417 8 2 6 8 0 158 0 amappl16 192 1398 0 760 33 0 33 33 0 8 1 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 2 0 1 2 1 1 1 0 8 0 amappl13 168 24 0 22 1 0 1 1 0 8 0 amappl12 160 167 0 164 2 1 1 1 0 8 0 amappl11 152 70 0 57 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 374 0 371 1 0 1 1 0 8 0 amappl8 128 253 0 245 1 0 1 1 0 8 0 amappl7 120 106 0 96 1 0 1 1 0 8 0 amappl6 112 19 0 17 1 0 1 1 0 8 0 amappl5 104 390 0 379 1 0 1 1 0 8 0 amappl4 96 435 0 404 1 0 1 1 0 8 0 amappl3 88 103 0 98 1 0 1 1 0 8 0 amappl2 80 2204 0 2140 3 1 2 3 0 8 0 amappl1 72 15920 0 15506 26 17 9 20 0 8 0 amappl 80 797 0 756 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 0 1 0 1 1 0 8 0 uaddrrnd 24 367 0 353 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 367 0 353 1 0 1 1 0 8 0 vmmpekpl 168 6220 0 6195 2 0 2 2 0 8 0 vmmpepl 168 49254 0 47572 97 11 86 92 0 357 11 vmsppl 272 366 0 353 2 1 1 2 0 8 0 pdppl 4096 740 0 706 6 1 5 6 0 8 0 pvpl 32 150690 0 135763 126 0 126 126 0 265 2 pmappl 200 366 0 353 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 151 0 12 5 0 5 5 0 8 0