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 194045 38826 0 0x14000 0x200 0 reaper 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(ffff800020b8c6a8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b62270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b62270,ffff800020c41cc0,ffff800020c41d30) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c41da0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c41da0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd4dc8) 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(ffff800020b8c6a8) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b62270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b62270,ffff800020c41cc0,ffff800020c41d30) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c41da0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c41da0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffd4dc8) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c41ac0 rbx 0xffff800020c41b70 rdx 0xffff800020b62270 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xb202aff58174f519 r12 0x3000000008 r13 0xffff800020c41ad0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c41ab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=120351 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b62bd0,0xffffffff82341258 process=0xffff800020b8c6a8 user=0xffff800020c3c000, vmspace=0xfffffd807effe9d8 estcpu=36, cpticks=8, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33100 499536 0 0 3 0x14200 bored sosplice 68041 489418 8977 0 3 0x2 biowait syz-executor.0 50612 225327 8977 0 3 0x82 nanosleep syz-executor.1 8977 8777 44226 0 3 0x82 thrsleep syz-fuzzer 8977 439101 44226 0 3 0x4000082 nanosleep syz-fuzzer 8977 461810 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 363594 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 105793 44226 0 3 0x4000082 kqread syz-fuzzer 8977 154955 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 441300 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 96345 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 51225 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 175670 44226 0 3 0x4000082 thrsleep syz-fuzzer 8977 269498 44226 0 3 0x4000082 thrsleep syz-fuzzer 44226 45044 99278 0 3 0x10008a pause ksh 99278 437036 80177 0 3 0x92 select sshd 87010 358859 1 0 3 0x100083 ttyin getty 80177 177318 1 0 3 0x80 select sshd 14338 76104 42861 74 3 0x100092 bpf pflogd 42861 247152 1 0 3 0x80 netio pflogd 91585 373889 95548 73 3 0x100090 kqread syslogd 95548 136342 1 0 3 0x100082 netio syslogd 54283 163607 1 77 3 0x100090 poll dhclient 82901 276400 1 0 3 0x80 poll dhclient 29858 433403 0 0 2 0x14200 zerothread 94706 454426 0 0 3 0x14200 aiodoned aiodoned 97168 277805 0 0 3 0x14200 syncer update 20529 175765 0 0 3 0x14200 cleaner cleaner 38826 194045 0 0 7 0x14200 reaper 41979 153145 0 0 3 0x14200 pgdaemon pagedaemon 567 47599 0 0 3 0x14200 bored crynlk 46976 91983 0 0 3 0x14200 bored crypto 3019 235051 0 0 3 0x40014200 acpi0 acpi0 46140 332028 0 0 3 0x40014200 idle1 20069 498837 0 0 3 0x14200 bored softnet 344 34156 0 0 3 0x14200 bored systqmp 95054 349737 0 0 3 0x14200 bored systq 3634 425103 0 0 3 0x40014200 bored softclock 54722 175268 0 0 3 0x40014200 idle0 25754 193013 0 0 3 0x14200 bored smr 1 113205 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 68041 (syz-executor.0) thread 0xffff800020b62018 (489418) exclusive rrwlock inode r = 0 (0xfffffd806f0a41b8) #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 (0xfffffd806d6d86f8) #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 9497 6402K 6778K 78643K 12055 0 0 pcb 25 9K 11K 78643K 258 0 0 rtable 108 4K 4K 78643K 607 0 0 ifaddr 49 12K 12K 78643K 126 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1513 0 0 iov 0 0K 24K 78643K 57 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 76K 78643K 2462 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 9 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 76 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 1233 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 56 63K 91K 78643K 750 0 0 subproc 64 65538K 69634K 78643K 342 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 58 0 0 in_multi 33 2K 2K 78643K 148 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 345 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 91 21K 23K 78643K 4629 0 0 UVM aobj 30 2K 2K 78643K 32 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 38 0 0 NDP 9 0K 0K 78643K 43 0 0 temp 142 2725K 2852K 78643K 9373 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 22 0 16 1 0 1 1 0 8 0 inpcbpl 280 278 0 271 1 0 1 1 0 8 0 plimitpl 152 39 0 31 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 133 0 89 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 11 0 11 1 1 0 1 0 8 0 tcpcb 544 74 0 70 1 0 1 1 0 8 0 nd6 48 30 0 24 1 0 1 1 0 8 0 ppxss 1128 6 0 6 4 3 1 1 0 8 1 pffrent 40 2 0 2 1 1 0 1 0 8 0 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 23 0 18 1 0 1 1 0 8 0 pfstkey 112 23 0 18 1 0 1 1 0 8 0 pfstate 328 23 0 18 1 0 1 1 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 551 0 360 12 0 12 12 0 8 0 art_table 32 552 0 360 2 0 2 2 0 8 0 art_node 16 132 0 92 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 0 1 0 1 1 0 8 0 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 30 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4200 0 2752 47 0 47 47 0 8 0 ffsino 272 4200 0 2752 97 0 97 97 0 8 0 nchpl 144 5828 0 4159 63 0 63 63 0 8 0 uvmvnodes 72 4637 0 0 85 0 85 85 0 8 0 vnodes 200 4637 0 0 245 0 245 245 0 8 0 namei 1024 16421 0 16421 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 27563 0 27562 9 7 2 6 0 8 1 sigapl 432 1408 0 1393 4 2 2 3 0 8 0 futexpl 56 10621 0 10621 1 0 1 1 0 8 1 knotepl 112 238 0 219 1 0 1 1 0 8 0 kqueuepl 104 68 0 66 1 0 1 1 0 8 0 pipepl 112 540 0 521 2 1 1 1 0 8 0 fdescpl 488 1409 0 1394 4 1 3 3 0 8 1 filepl 152 6574 0 6475 15 10 5 5 0 8 1 lockfpl 104 253 0 253 9 8 1 1 0 8 1 lockfspl 48 83 0 83 9 8 1 1 0 8 1 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 375 0 366 1 0 1 1 0 8 0 zombiepl 144 1394 0 1393 2 1 1 1 0 8 0 processpl 840 1425 0 1393 4 0 4 4 0 8 0 procpl 600 3594 0 3551 5 0 5 5 0 8 1 srpgc 64 48 0 48 4 4 0 1 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 465 0 446 11 8 3 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 166 0 0 15 4 11 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 285 0 0 11 1 10 10 0 8 0 bufpl 256 27024 0 20813 390 0 390 390 0 8 0 anonpl 16 118431 0 107276 64 16 48 56 0 125 2 amapchunkpl 152 7917 0 7807 16 4 12 12 0 158 5 amappl16 192 5442 0 4830 44 11 33 39 0 8 2 amappl15 184 449 0 447 2 1 1 1 0 8 0 amappl14 176 164 0 161 2 1 1 1 0 8 0 amappl13 168 333 0 333 3 3 0 1 0 8 0 amappl12 160 38 0 37 1 0 1 1 0 8 0 amappl11 152 477 0 456 1 0 1 1 0 8 0 amappl10 144 96 0 92 1 0 1 1 0 8 0 amappl9 136 755 0 752 1 0 1 1 0 8 0 amappl8 128 255 0 239 1 0 1 1 0 8 0 amappl7 120 69 0 62 1 0 1 1 0 8 0 amappl6 112 468 0 459 1 0 1 1 0 8 0 amappl5 104 204 0 190 1 0 1 1 0 8 0 amappl4 96 1668 0 1637 2 1 1 2 0 8 0 amappl3 88 320 0 315 1 0 1 1 0 8 0 amappl2 80 10839 0 10784 2 0 2 2 0 8 0 amappl1 72 38934 0 38484 25 15 10 20 0 8 0 amappl 72 3979 0 3940 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 31 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1409 0 1393 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1409 0 1393 1 0 1 1 0 8 0 vmmpekpl 168 14091 0 14064 2 0 2 2 0 8 0 vmmpepl 168 152749 0 151129 172 95 77 93 0 357 3 vmsppl 360 1408 0 1393 2 0 2 2 0 8 0 pdppl 4096 2826 0 2786 7 1 6 6 0 8 0 pvpl 32 511295 0 496823 170 39 131 141 0 265 13 pmappl 232 1408 0 1393 3 2 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 547 0 10 16 0 16 16 0 8 0