login: 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 84026 80659 0 0x2 0 1 syz-executor.1 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(ffff800020b8c360) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38bd0,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38bd0,ffff800020c13620,ffff800020c13690) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c13700) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c13700) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc8618) 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_unveil.c", line 196 ddb{0}> 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(ffff800020b8c360) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38bd0,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38bd0,ffff800020c13620,ffff800020c13690) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c13700) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c13700) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffc8618) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c13420 rbx 0xffff800020c134d0 rdx 0xffff800020b38bd0 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x1259432db6d0d11d r12 0x3000000008 r13 0xffff800020c13430 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c13410 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=61281 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38978,0xffffffff82341258 process=0xffff800020b8c360 user=0xffff800020c0e000, vmspace=0xfffffd807effe870 estcpu=36, cpticks=9, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72089 369977 1 0 3 0x100083 ttyin getty 38803 7917 7784 0 2 0x482 syz-executor.0 80659 84026 7784 0 7 0x2 syz-executor.1 70696 509864 0 0 3 0x14200 bored sosplice 7784 7775 59713 0 3 0x82 thrsleep syz-fuzzer 7784 48371 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 511306 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 501298 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 474992 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 128251 59713 0 3 0x4000082 kqread syz-fuzzer 7784 283545 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 485425 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 263429 59713 0 3 0x4000082 thrsleep syz-fuzzer 7784 301535 59713 0 3 0x4000082 thrsleep syz-fuzzer 59713 484805 9122 0 3 0x10008a pause ksh 9122 458605 37451 0 3 0x92 select sshd 37451 371940 1 0 3 0x80 select sshd 58289 447790 81211 74 3 0x100092 bpf pflogd 81211 131298 1 0 3 0x80 netio pflogd 20404 442727 1913 73 3 0x100090 kqread syslogd 1913 497550 1 0 3 0x100082 netio syslogd 75199 193572 1 77 3 0x100090 poll dhclient 64822 106200 1 0 3 0x80 poll dhclient 36843 37626 0 0 3 0x14200 pgzero zerothread 665 306029 0 0 3 0x14200 aiodoned aiodoned 36624 232905 0 0 3 0x14200 syncer update 19319 205293 0 0 3 0x14200 cleaner cleaner 24139 326294 0 0 3 0x14200 reaper reaper 33208 281623 0 0 3 0x14200 pgdaemon pagedaemon 4548 476579 0 0 3 0x14200 bored crynlk 76016 453456 0 0 3 0x14200 bored crypto 74367 497296 0 0 3 0x40014200 acpi0 acpi0 62820 110866 0 0 3 0x40014200 idle1 82333 29748 0 0 3 0x14200 bored softnet 10381 458816 0 0 3 0x14200 bored systqmp 11574 456899 0 0 3 0x14200 bored systq 86030 167972 0 0 3 0x40014200 bored softclock 27256 329853 0 0 3 0x40014200 idle0 16518 235288 0 0 3 0x14200 bored smr 1 81595 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9523 6408K 6925K 78643K 12046 0 0 pcb 25 9K 11K 78643K 315 0 0 rtable 106 3K 4K 78643K 477 0 0 ifaddr 61 13K 14K 78643K 146 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1485 0 0 iov 0 0K 16K 78643K 54 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 1774 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 12 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 105 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 611 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 56 63K 91K 78643K 585 0 0 subproc 64 65538K 69634K 78643K 206 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 77 0 0 in_multi 33 2K 2K 78643K 93 0 0 ether_multi 1 0K 0K 78643K 6 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 36 159K 159K 78643K 36 0 0 exec 0 0K 1K 78643K 299 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 90 21K 22K 78643K 2792 0 0 UVM aobj 20 2K 3K 78643K 22 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 4 0 0 NDP 13 0K 0K 78643K 44 0 0 temp 170 2725K 2853K 78643K 8057 0 0 kqueue 0 0K 0K 78643K 4 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> 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 274 0 267 1 0 1 1 0 8 0 plimitpl 152 43 0 35 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 87 0 44 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 21 0 21 1 1 0 1 0 8 0 tcpcb 544 84 0 80 1 0 1 1 0 8 0 nd6 48 16 0 11 1 0 1 1 0 8 0 ppxss 1128 12 0 12 3 2 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 26 0 16 1 0 1 1 0 8 0 pfstkey 112 26 0 16 1 0 1 1 0 8 0 pfstate 328 26 0 16 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 365 0 175 12 0 12 12 0 8 0 art_table 32 366 0 175 2 0 2 2 0 8 0 art_node 16 86 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semapl 112 101 0 91 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2299 0 862 47 0 47 47 0 8 0 ffsino 272 2299 0 862 96 0 96 96 0 8 0 nchpl 144 3288 0 1649 61 0 61 61 0 8 0 uvmvnodes 72 2760 0 0 51 0 51 51 0 8 0 vnodes 200 2760 0 0 146 0 146 146 0 8 0 namei 1024 9731 0 9731 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 18372 0 18372 10 9 1 6 0 8 1 sigapl 432 799 0 784 3 1 2 3 0 8 0 futexpl 56 9298 0 9298 1 0 1 1 0 8 1 knotepl 112 212 0 193 1 0 1 1 0 8 0 kqueuepl 104 138 0 136 1 0 1 1 0 8 0 pipepl 112 552 0 533 4 3 1 2 0 8 0 fdescpl 488 800 0 785 5 2 3 3 0 8 0 filepl 152 4354 0 4255 8 3 5 6 0 8 1 lockfpl 104 156 0 156 2 1 1 1 0 8 1 lockfspl 48 62 0 62 2 1 1 1 0 8 1 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 96 521 0 512 1 0 1 1 0 8 0 zombiepl 144 785 0 783 3 2 1 1 0 8 0 processpl 840 816 0 783 4 0 4 4 0 8 0 procpl 600 1912 0 1870 4 0 4 4 0 8 0 srpgc 64 23 0 23 3 3 0 1 0 8 0 sosppl 128 7 0 7 4 4 0 1 0 8 0 sockpl 384 540 0 521 6 3 3 4 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 123 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 157 0 0 9 0 9 9 0 8 0 bufpl 256 23078 0 16867 390 1 389 390 0 8 0 anonpl 16 84692 0 74895 71 25 46 62 0 125 0 amapchunkpl 152 4554 0 4440 8 2 6 6 0 158 0 amappl16 192 3489 0 2879 53 22 31 42 0 8 0 amappl15 184 304 0 304 1 1 0 1 0 8 0 amappl14 176 164 0 161 2 1 1 1 0 8 0 amappl13 168 7 0 7 1 1 0 1 0 8 0 amappl12 160 86 0 83 1 0 1 1 0 8 0 amappl11 152 150 0 130 2 1 1 2 0 8 0 amappl10 144 91 0 86 1 0 1 1 0 8 0 amappl9 136 652 0 649 1 0 1 1 0 8 0 amappl8 128 179 0 164 1 0 1 1 0 8 0 amappl7 120 51 0 47 1 0 1 1 0 8 0 amappl6 112 130 0 123 1 0 1 1 0 8 0 amappl5 104 215 0 200 1 0 1 1 0 8 0 amappl4 96 1054 0 1022 2 1 1 2 0 8 0 amappl3 88 135 0 129 1 0 1 1 0 8 0 amappl2 80 5606 0 5549 3 1 2 2 0 8 0 amappl1 72 27685 0 27235 25 15 10 20 0 8 0 amappl 72 2237 0 2197 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 21 0 2 1 0 1 1 0 8 0 uaddrrnd 24 800 0 784 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 800 0 784 1 0 1 1 0 8 0 vmmpekpl 168 10323 0 10299 2 0 2 2 0 8 0 vmmpepl 168 92079 0 90456 142 54 88 113 0 357 16 vmsppl 360 799 0 784 2 0 2 2 0 8 0 pdppl 4096 1608 0 1568 8 2 6 6 0 8 0 pvpl 32 268849 0 255855 169 35 134 151 0 265 18 pmappl 232 799 0 784 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 548 0 8 16 0 16 16 0 8 0