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 * 73232 23391 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(fffffd80573409d8,2,fffffd806c3bf840,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd80657853d8,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80657853d8,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd80657853d8,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657853d8,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(fffffd80573409d8,2,fffffd806c3bf840,0) at VOP_CLOSE+0x12f sys/kern/vfs_vops.c:170 vn_closefile(fffffd80657853d8,0) at vn_closefile+0xd2 vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd80657853d8,0) at vn_closefile+0xd2 sys/kern/vfs_vnops.c:614 fdrop(fffffd80657853d8,0) at fdrop+0xc2 sys/kern/kern_descrip.c:1276 closef(fffffd80657853d8,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 0xffff80001d2fc6a0 rbx 0xffff80001d2fc750 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d2fc660 r9 0x1 r10 0 r11 0xa9726347c4620dd r12 0x3000000008 r13 0xffff80001d2fc6b0 r14 0x100 r15 0x1 rip 0xffffffff813787c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d2fc690 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (systq) pid=73232 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e19c0,0xffff80001d2e1280 process=0xffff8000ffffe000 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 64433 327451 90998 0 2 0x482 syz-executor.1 61930 422729 90998 0 2 0x482 syz-executor.0 90998 413474 5939 0 3 0x82 thrsleep syz-fuzzer 90998 321443 5939 0 3 0x4000082 thrsleep syz-fuzzer 90998 487793 5939 0 3 0x4000082 kqread syz-fuzzer 90998 335955 5939 0 3 0x4000082 thrsleep syz-fuzzer 90998 506865 5939 0 3 0x4000082 thrsleep syz-fuzzer 90998 55715 5939 0 3 0x4000082 thrsleep syz-fuzzer 90998 375536 5939 0 3 0x4000082 thrsleep syz-fuzzer 90998 235625 5939 0 3 0x4000082 thrsleep syz-fuzzer 5939 422913 22216 0 3 0x10008a pause ksh 22216 379169 40196 0 3 0x92 select sshd 82837 221807 1 0 3 0x100083 ttyin getty 40196 519446 1 0 3 0x80 select sshd 69962 96308 88003 73 3 0x100090 kqread syslogd 88003 155928 1 0 3 0x100082 netio syslogd 75887 500822 1 77 3 0x100090 poll dhclient 64219 217280 1 0 3 0x80 poll dhclient 88263 13938 0 0 3 0x14200 bored smr 67278 485654 0 0 2 0x14200 zerothread 87284 436055 0 0 3 0x14200 aiodoned aiodoned 75328 433800 0 0 3 0x14200 syncer update 11698 51298 0 0 3 0x14200 cleaner cleaner 31903 163693 0 0 3 0x14200 reaper reaper 84349 346310 0 0 3 0x14200 pgdaemon pagedaemon 50906 228015 0 0 3 0x14200 bored crynlk 289 117963 0 0 3 0x14200 bored crypto 4388 299747 0 0 3 0x40014200 acpi0 acpi0 50857 75806 0 0 3 0x14200 bored softnet 77968 288904 0 0 3 0x14200 bored systqmp *23391 73232 0 0 7 0x14200 systq 91380 274617 0 0 3 0x40014200 bored softclock 51037 254793 0 0 3 0x40014200 idle0 1 296300 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 9464 6391K 6714K 78643K 10595 0 pcb 13 8K 8K 78643K 13 0 rtable 105 3K 3K 78643K 191 0 ifaddr 44 10K 10K 78643K 44 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 15 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1233 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 4 9K 25K 78643K 45 0 proc 47 38K 63K 78643K 358 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 37 175K 175K 78643K 37 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 83 20K 21K 78643K 926 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 10 0 temp 67 3027K 3091K 78643K 1837 0 kqueue 3 4K 4K 78643K 3 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 37 0 27 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 62 0 62 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 inpcb 280 40 0 33 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 semapl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1435 0 35 46 0 46 46 0 8 0 ffsino 240 1435 0 35 83 0 83 83 0 8 0 nchpl 144 1679 0 69 60 0 60 60 0 8 0 uvmvnodes 72 1486 0 0 28 0 28 28 0 8 0 vnodes 208 1486 0 0 79 0 79 79 0 8 0 namei 1024 4019 0 4019 1 0 1 1 0 8 1 scxspl 192 4978 0 4978 1 0 1 1 0 8 1 plimitpl 152 18 0 10 1 0 1 1 0 8 0 sigapl 424 231 0 204 4 0 4 4 0 8 0 futexpl 56 253 0 253 1 0 1 1 0 8 1 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 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 217 0 204 2 0 2 2 0 8 0 filepl 120 1069 0 971 4 0 4 4 0 8 0 lockfpl 104 7 0 6 1 0 1 1 0 8 0 lockfspl 48 4 0 3 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 62 0 55 1 0 1 1 0 8 0 zombiepl 144 204 0 202 1 0 1 1 0 8 0 processpl 920 231 0 202 4 0 4 4 0 8 0 procpl 624 254 0 218 4 0 4 4 0 8 0 sockpl 400 96 0 77 3 0 3 3 0 8 0 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 9 0 9 2 1 1 1 0 8 1 mcl2k 2048 60634 0 60590 15 2 13 13 0 8 6 mtagpl 80 9 0 2 2 1 1 1 0 8 0 mbufpl 256 96147 0 96062 10 1 9 9 0 8 1 bufpl 280 4105 0 160 282 0 282 282 0 8 0 anonpl 16 34325 0 21883 53 1 52 52 0 107 0 amapchunkpl 152 965 0 838 8 0 8 8 0 158 2 amappl16 192 845 0 181 35 0 35 35 0 8 1 amappl15 184 8 0 5 1 0 1 1 0 8 0 amappl14 176 3 0 2 2 1 1 1 0 8 0 amappl13 168 23 0 22 1 0 1 1 0 8 0 amappl12 160 7 0 7 1 1 0 1 0 8 0 amappl11 152 64 0 51 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 386 0 382 1 0 1 1 0 8 0 amappl8 128 251 0 242 1 0 1 1 0 8 0 amappl7 120 111 0 100 1 0 1 1 0 8 0 amappl6 112 20 0 16 1 0 1 1 0 8 0 amappl5 104 147 0 137 1 0 1 1 0 8 0 amappl4 96 432 0 405 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 937 0 879 3 0 3 3 0 8 1 amappl1 72 13691 0 13302 26 9 17 20 0 8 8 amappl 80 487 0 448 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 217 0 204 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 217 0 204 1 0 1 1 0 8 0 vmmpekpl 168 5622 0 5596 2 0 2 2 0 8 0 vmmpepl 168 33111 0 31518 100 5 95 95 0 357 20 vmsppl 272 216 0 204 2 0 2 2 0 8 1 pdppl 4096 440 0 408 6 0 6 6 0 8 1 pvpl 32 121657 0 106351 131 0 131 131 0 265 2 pmappl 200 216 0 204 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 147 0 6 5 0 5 5 0 8 0