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 45501 57984 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(ffffffff81fa5fb6,ffffffff81fa6389,c4,ffffffff81f64ec3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8ce00) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b389f8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b389f8,ffff800020c09230,ffff800020c092a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c09310) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020c09310) at syscall+0x552 sys/arch/amd64/amd64/trap.c:554 Xsyscall(6,1,0,1,0,7f7ffffed274) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffed240, 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(ffffffff81fa5fb6,ffffffff81fa6389,c4,ffffffff81f64ec3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8ce00) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b389f8,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff800020b389f8,ffff800020c09230,ffff800020c092a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c09310) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020c09310) at syscall+0x552 sys/arch/amd64/amd64/trap.c:554 Xsyscall(6,1,0,1,0,7f7ffffed274) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffed240, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c09040 rbx 0xffff800020c090f0 rdx 0xffff800020b389f8 rcx 0 rax 0 r8 0xffffffff818553c3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x1767c260c4023bc6 r12 0x3000000008 r13 0xffff800020c09050 r14 0x100 r15 0x1 rip 0xffffffff814eae78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c09030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=358046 stat=onproc flags process=1008 proc=2000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b393d8,0xffffffff82394f98 process=0xffff800020b8ce00 user=0xffff800020c04000, vmspace=0xfffffd807effea10 estcpu=36, cpticks=18, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21470 397726 1 0 3 0x100083 ttyopn getty 66406 472407 22803 0 3 0x2 biowait syz-executor.0 56651 37645 0 0 3 0x14200 bored sosplice 17200 264501 22803 0 3 0x82 nanosleep syz-executor.1 22803 325485 67538 0 3 0x82 thrsleep syz-fuzzer 22803 522267 67538 0 3 0x4000082 nanosleep syz-fuzzer 22803 114522 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 57307 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 383151 67538 0 3 0x4000082 kqread syz-fuzzer 22803 227295 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 116937 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 460973 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 322088 67538 0 3 0x4000082 thrsleep syz-fuzzer 22803 382166 67538 0 3 0x4000082 thrsleep syz-fuzzer 67538 374051 65625 0 3 0x10008a pause ksh 65625 477744 98204 0 3 0x92 select sshd 98204 325462 1 0 3 0x80 select sshd 9945 500855 73997 74 3 0x100092 bpf pflogd 73997 77519 1 0 3 0x80 netio pflogd 87968 501705 51589 73 3 0x100090 kqread syslogd 51589 363672 1 0 3 0x100082 netio syslogd 54583 185369 1 77 3 0x100090 poll dhclient 51852 504313 1 0 3 0x80 poll dhclient 84720 469840 0 0 3 0x14200 pgzero zerothread 14111 307082 0 0 3 0x14200 aiodoned aiodoned 41279 278915 0 0 3 0x14200 syncer update 1061 209797 0 0 3 0x14200 cleaner cleaner 57984 45501 0 0 7 0x14200 reaper 83716 422549 0 0 3 0x14200 pgdaemon pagedaemon 62530 75351 0 0 3 0x14200 bored crynlk 62046 129802 0 0 3 0x14200 bored crypto 47375 300881 0 0 3 0x40014200 acpi0 acpi0 74617 498961 0 0 3 0x40014200 idle1 12127 43870 0 0 3 0x14200 bored softnet 19111 519809 0 0 3 0x14200 bored systqmp 20351 272528 0 0 3 0x14200 bored systq 79654 251778 0 0 3 0x40014200 bored softclock 27839 136275 0 0 3 0x40014200 idle0 90468 445865 0 0 3 0x14200 bored smr 1 229747 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 66406 (syz-executor.0) thread 0xffff800020b38508 (472407) exclusive rrwlock inode r = 0 (0xfffffd807415ea38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x133 sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0x6a sys/kern/vfs_vops.c:449 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2967 #9 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x552 sys/arch/amd64/amd64/trap.c:554 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80699a3a30) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:561 #5 vfs_lookup+0xe9 sys/kern/vfs_lookup.c:422 #6 namei+0x61c sys/kern/vfs_lookup.c:252 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2952 #8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x552 sys/arch/amd64/amd64/trap.c:554 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9603 7113K 10761K 78643K 53839 0 0 pcb 25 9K 11K 78643K 6802 0 0 rtable 114 4K 5K 78643K 3038 0 0 ifaddr 81 23K 26K 78643K 1578 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2328 0 0 iov 0 0K 32K 78643K 1941 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 77K 78643K 16857 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 225 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 1677 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 4 9K 25K 78643K 16903 0 0 sigio 1 0K 0K 78643K 232 0 0 proc 57 63K 83K 78643K 2089 0 0 subproc 32 2K 2K 78643K 74 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 1394 0 0 in_multi 33 2K 2K 78643K 591 0 0 ether_multi 1 0K 0K 78643K 78 0 0 mrt 0 0K 0K 78643K 75 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 1612 0 0 pfkey data 0 0K 4K 78643K 6 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 126 23K 32K 78643K 56821 0 0 UVM aobj 130 6K 6K 78643K 153 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 745 0 0 NDP 19 0K 0K 78643K 424 0 0 temp 221 2744K 3384K 78643K 55079 0 0 kqueue 0 0K 0K 78643K 135 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 7178 0 7171 2 1 1 2 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 67 0 23 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 222 0 222 1 1 0 1 0 8 0 tcpcb 544 2690 0 2686 1 0 1 1 0 8 0 rttmr 72 3 0 3 3 3 0 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 316 0 316 45 44 1 1 0 8 1 pffrag 232 8 0 8 6 6 0 1 0 482 0 pffrnode 88 8 0 8 6 6 0 1 0 8 0 pffrent 40 21 0 21 9 9 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 185 0 169 1 0 1 1 0 8 0 pfstkey 112 185 0 169 1 0 1 1 0 8 0 pfstate 328 185 0 169 3 1 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 236 0 44 12 0 12 12 0 8 0 art_table 32 237 0 44 2 0 2 2 0 8 0 art_node 16 58 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 23 1 0 1 1 0 8 0 semapl 112 1675 0 1665 1 0 1 1 0 8 0 shmpl 112 151 0 23 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 28989 0 27346 54 0 54 54 0 8 0 ffsino 272 28989 0 27346 111 1 110 110 0 8 0 nchpl 144 52709 0 51079 62 0 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 168340 0 168339 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 39 0 39 26 26 0 1 0 8 0 scxspl 192 158248 0 158247 57 56 1 6 0 8 0 plimitpl 152 1294 0 1286 1 0 1 1 0 8 0 sigapl 432 17102 0 17087 3 1 2 3 0 8 0 futexpl 56 203240 0 203240 3 2 1 1 0 8 1 knotepl 112 2774 0 2755 1 0 1 1 0 8 0 kqueuepl 104 3773 0 3771 1 0 1 1 0 8 0 pipepl 112 9140 0 9121 16 15 1 2 0 8 0 fdescpl 488 17103 0 17088 3 0 3 3 0 8 0 filepl 152 100993 0 100894 22 17 5 7 0 8 1 lockfpl 104 6115 0 6115 3 2 1 1 0 8 1 lockfspl 48 2093 0 2093 3 2 1 1 0 8 1 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 160 0 149 1 0 1 1 0 8 0 ucredpl 96 21599 0 21590 1 0 1 1 0 8 0 zombiepl 144 17088 0 17087 3 2 1 1 0 8 0 processpl 896 17119 0 17087 4 0 4 4 0 8 0 procpl 632 55401 0 55359 36 31 5 5 0 8 1 srpgc 64 5 0 5 4 4 0 1 0 8 0 sosppl 128 203 0 203 51 50 1 1 0 8 1 sockpl 384 12974 0 12955 10 7 3 4 0 8 1 mcl64k 65536 963 0 0 114 81 33 67 0 8 1 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 31 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 46 0 0 4 1 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 20 8 12 20 0 8 0 mtagpl 80 8 0 0 1 0 1 1 0 8 0 mbufpl 256 1236 0 0 47 11 36 36 0 8 0 bufpl 256 51011 0 43981 440 0 440 440 0 8 0 anonpl 16 1571787 0 1559984 363 309 54 69 0 125 0 amapchunkpl 152 103468 0 103355 177 172 5 19 0 158 0 amappl16 192 90722 0 90077 452 419 33 45 0 8 0 amappl15 184 5 0 5 5 5 0 1 0 8 0 amappl14 176 595 0 591 1 0 1 1 0 8 0 amappl13 168 8481 0 8479 2 1 1 1 0 8 0 amappl12 160 15 0 12 1 0 1 1 0 8 0 amappl11 152 7907 0 7891 1 0 1 1 0 8 0 amappl10 144 76 0 73 1 0 1 1 0 8 0 amappl9 136 611 0 608 1 0 1 1 0 8 0 amappl8 128 211 0 172 2 0 2 2 0 8 0 amappl7 120 40 0 36 1 0 1 1 0 8 0 amappl6 112 7910 0 7898 1 0 1 1 0 8 0 amappl5 104 251 0 236 1 0 1 1 0 8 0 amappl4 96 17462 0 17430 2 1 1 2 0 8 0 amappl3 88 1216 0 1206 1 0 1 1 0 8 0 amappl2 80 146901 0 146825 4 2 2 3 0 8 0 amappl1 72 372169 0 371717 26 16 10 20 0 8 0 amappl 80 55763 0 55723 2 0 2 2 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 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 152 0 23 3 0 3 3 0 8 0 uaddrrnd 24 17103 0 17087 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17103 0 17087 1 0 1 1 0 8 0 vmmpekpl 168 133480 0 133447 2 0 2 2 0 8 0 vmmpepl 168 2075295 0 2073474 399 314 85 98 0 357 0 vmsppl 368 17102 0 17087 2 0 2 2 0 8 0 pdppl 4096 34214 0 34174 6 0 6 6 0 8 0 pvpl 32 3984033 0 3968453 640 512 128 163 0 265 0 pmappl 232 17102 0 17087 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 774 0 108 20 0 20 20 0 8 0