panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c9f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b33c38,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b33c38,ffff800020bfb7e0,ffff800020bfb850) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bfb8c0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bfb8c0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe3318) at Xsyscall+0x128 end trace frame: 0x0, count: 7 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 __assert(ffffffff81f98711,ffffffff81f9cd8c,c4,ffffffff81f5c06e) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c9f0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b33c38,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b33c38,ffff800020bfb7e0,ffff800020bfb850) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020bfb8c0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020bfb8c0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe3318) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020bfb5e0 rbx 0xffff800020bfb690 rdx 0xffff800020b33c38 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xdbdb88984cf537ff r12 0x3000000008 r13 0xffff800020bfb5f0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020bfb5d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=19309 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b32720,0xffffffff82341258 process=0xffff800020b8c9f0 user=0xffff800020bf6000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19421 281804 10315 0 3 0x82 nanosleep syz-executor.1 15716 196806 10315 0 3 0x2 biowait syz-executor.0 51632 460726 0 0 3 0x14200 bored sosplice 10315 359006 76062 0 3 0x82 thrsleep syz-fuzzer 10315 286379 76062 0 3 0x4000082 nanosleep syz-fuzzer 10315 123788 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 13860 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 237213 76062 0 3 0x4000082 kqread syz-fuzzer 10315 165439 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 53143 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 254486 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 258548 76062 0 3 0x4000082 thrsleep syz-fuzzer 10315 318401 76062 0 3 0x4000082 thrsleep syz-fuzzer 76062 156906 63156 0 3 0x10008a pause ksh 63156 394015 5359 0 3 0x92 select sshd 90452 65940 1 0 3 0x100083 ttyin getty 5359 278210 1 0 3 0x80 select sshd 74172 257818 6825 74 3 0x100092 bpf pflogd 6825 198115 1 0 3 0x80 netio pflogd 14568 511002 16620 73 3 0x100090 kqread syslogd 16620 79738 1 0 3 0x100082 netio syslogd 66284 409343 1 77 3 0x100090 poll dhclient 71683 8007 1 0 3 0x80 poll dhclient 67350 450519 0 0 3 0x14200 pgzero zerothread 6089 55573 0 0 3 0x14200 aiodoned aiodoned 2989 207147 0 0 3 0x14200 syncer update 29790 477084 0 0 3 0x14200 cleaner cleaner 16849 24201 0 0 3 0x14200 reaper reaper 54564 438141 0 0 3 0x14200 pgdaemon pagedaemon 67820 497768 0 0 3 0x14200 bored crynlk 72176 147353 0 0 3 0x14200 bored crypto 96171 227884 0 0 3 0x40014200 acpi0 acpi0 27983 82008 0 0 3 0x40014200 idle1 88391 28656 0 0 3 0x14200 bored softnet 21165 346247 0 0 3 0x14200 bored systqmp 69585 316175 0 0 3 0x14200 bored systq 13387 470357 0 0 3 0x40014200 bored softclock 48360 297698 0 0 7 0x40014200 idle0 9191 512423 0 0 3 0x14200 bored smr 1 267925 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 15716 (syz-executor.0) thread 0xffff800020b324c8 (196806) exclusive rrwlock inode r = 0 (0xfffffd806c41fa28) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rw_enter+0x414 sys/kern/kern_rwlock.c:278 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:407 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x1575 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 #11 namei+0x45f sys/kern/vfs_lookup.c:224 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 #13 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #13 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806ef514d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rw_enter+0x414 sys/kern/kern_rwlock.c:278 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:407 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xec sys/kern/vfs_lookup.c:387 #6 namei+0x45f sys/kern/vfs_lookup.c:224 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 #8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9528 6416K 6935K 78643K 13724 0 0 pcb 25 9K 12K 78643K 622 0 0 rtable 111 4K 5K 78643K 607 0 0 ifaddr 62 14K 14K 78643K 195 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1511 0 0 iov 0 0K 16K 78643K 123 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 2277 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 20 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 148 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 1274 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 58 63K 91K 78643K 664 0 0 subproc 64 65538K 69634K 78643K 204 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 134 0 0 in_multi 33 2K 2K 78643K 129 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 314 0 0 pfkey data 0 0K 0K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 85 21K 29K 78643K 4909 0 0 UVM aobj 62 2K 2K 78643K 65 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 63 0 0 NDP 13 0K 0K 78643K 58 0 0 temp 179 2731K 2859K 78643K 9946 0 0 kqueue 0 0K 0K 78643K 17 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 14 0 8 1 0 1 1 0 8 0 inpcbpl 280 622 0 615 1 0 1 1 0 8 0 plimitpl 152 83 0 75 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 89 0 45 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 201 0 197 1 0 1 1 0 8 0 nd6 48 18 0 12 1 0 1 1 0 8 0 ppxss 1128 18 0 18 4 3 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 37 0 22 1 0 1 1 0 8 0 pfstkey 112 37 0 22 1 0 1 1 0 8 0 pfstate 328 37 0 22 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 370 0 179 12 0 12 12 0 8 0 art_table 32 371 0 179 2 0 2 2 0 8 0 art_node 16 88 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 0 1 0 1 1 0 8 0 semapl 112 146 0 136 1 0 1 1 0 8 0 shmpl 112 63 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3243 0 1803 47 0 47 47 0 8 0 ffsino 272 3243 0 1803 97 0 97 97 0 8 0 nchpl 144 5166 0 3517 62 0 62 62 0 8 0 uvmvnodes 72 4083 0 0 75 0 75 75 0 8 0 vnodes 200 4083 0 0 215 0 215 215 0 8 0 namei 1024 15538 0 15538 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 4 0 4 2 2 0 1 0 8 0 scxspl 192 28074 0 28073 7 6 1 6 0 8 0 sigapl 432 1461 0 1446 3 1 2 3 0 8 0 futexpl 56 14576 0 14576 1 0 1 1 0 8 1 knotepl 112 330 0 311 1 0 1 1 0 8 0 kqueuepl 104 270 0 268 1 0 1 1 0 8 0 pipepl 112 814 0 795 4 3 1 2 0 8 0 fdescpl 488 1462 0 1447 4 1 3 3 0 8 1 filepl 152 8217 0 8118 9 4 5 7 0 8 1 lockfpl 104 232 0 232 2 1 1 1 0 8 1 lockfspl 48 93 0 93 2 1 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1257 0 1248 1 0 1 1 0 8 0 zombiepl 144 1447 0 1446 2 1 1 1 0 8 0 processpl 840 1478 0 1446 4 0 4 4 0 8 0 procpl 600 4010 0 3969 4 0 4 4 0 8 0 srpgc 64 24 0 24 3 3 0 1 0 8 0 sosppl 128 27 0 27 5 4 1 1 0 8 1 sockpl 384 1159 0 1140 5 2 3 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 117 0 0 14 0 14 14 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 206 0 0 9 0 9 9 0 8 0 bufpl 256 28123 0 21912 390 0 390 390 0 8 0 anonpl 16 141812 0 130582 86 33 53 63 0 125 6 amapchunkpl 152 8470 0 8364 20 9 11 11 0 158 6 amappl16 192 6382 0 5755 56 23 33 44 0 8 1 amappl15 184 525 0 525 1 1 0 1 0 8 0 amappl14 176 492 0 489 2 1 1 1 0 8 0 amappl13 168 335 0 332 1 0 1 1 0 8 0 amappl12 160 13 0 11 1 0 1 1 0 8 0 amappl11 152 139 0 121 1 0 1 1 0 8 0 amappl10 144 80 0 77 1 0 1 1 0 8 0 amappl9 136 731 0 724 1 0 1 1 0 8 0 amappl8 128 259 0 241 1 0 1 1 0 8 0 amappl7 120 51 0 47 1 0 1 1 0 8 0 amappl6 112 146 0 140 1 0 1 1 0 8 0 amappl5 104 158 0 144 1 0 1 1 0 8 0 amappl4 96 1270 0 1237 2 1 1 2 0 8 0 amappl3 88 1020 0 1015 1 0 1 1 0 8 0 amappl2 80 11984 0 11926 2 0 2 2 0 8 0 amappl1 72 41426 0 40970 25 15 10 20 0 8 0 amappl 72 4339 0 4302 1 0 1 1 0 75 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 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 64 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1462 0 1446 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1462 0 1446 1 0 1 1 0 8 0 vmmpekpl 168 15085 0 15058 2 0 2 2 0 8 0 vmmpepl 168 159357 0 157709 158 68 90 114 0 357 13 vmsppl 360 1461 0 1446 2 0 2 2 0 8 0 pdppl 4096 2932 0 2892 7 1 6 6 0 8 1 pvpl 32 416930 0 402502 187 51 136 155 0 265 16 pmappl 232 1461 0 1446 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 546 0 5 16 0 16 16 0 8 0