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 324871 2969 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(ffffffff81f9ad5d,ffffffff81f9f719,c4,ffffffff81f5ea80) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c360) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b7fc38,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800020b7fc38,ffff800020c2de00,ffff800020c2de70) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c2dee0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2dee0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,0,7f7ffffd1644) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1610, 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(ffffffff81f9ad5d,ffffffff81f9f719,c4,ffffffff81f5ea80) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b8c360) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b7fc38,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800020b7fc38,ffff800020c2de00,ffff800020c2de70) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c2dee0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2dee0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,0,7f7ffffd1644) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1610, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c2dc00 rbx 0xffff800020c2dcb0 rdx 0xffff800020b7fc38 rcx 0 rax 0 r8 0xffffffff816321c3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xe4d2ad9cdd1c560a r12 0x3000000008 r13 0xffff800020c2dc10 r14 0x100 r15 0x1 rip 0xffffffff817ddb38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2dbf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=28009 stat=onproc flags process=1008 proc=2000 pri=67, usrpri=67, nice=20 forw=0xffffffffffffffff, list=0xffff800020b7ee28,0xffffffff82373fc8 process=0xffff800020b8c360 user=0xffff800020c28000, vmspace=0xfffffd807effe9d8 estcpu=17, cpticks=8, pctcpu=0.12 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 36002 48560 1 0 3 0x100083 ttyin getty 21780 302701 0 0 3 0x14200 bored sosplice 73477 339529 21160 0 3 0x82 piperd syz-executor.1 59956 411787 21160 0 3 0x82 nanosleep syz-executor.0 21160 46539 5215 0 3 0x82 thrsleep syz-fuzzer 21160 506176 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 137482 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 468202 5215 0 3 0x4000082 kqread syz-fuzzer 21160 90710 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 422435 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 150214 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 91969 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 221661 5215 0 3 0x4000082 thrsleep syz-fuzzer 21160 310835 5215 0 3 0x4000082 thrsleep syz-fuzzer 5215 446728 12188 0 3 0x10008a pause ksh 12188 426556 89488 0 3 0x92 select sshd 89488 460905 1 0 3 0x80 select sshd 43440 394960 85841 74 3 0x100092 bpf pflogd 85841 182574 1 0 3 0x80 netio pflogd 84318 120057 69062 73 3 0x100090 kqread syslogd 69062 298670 1 0 3 0x100082 netio syslogd 46105 500692 1 77 3 0x100090 poll dhclient 92839 254931 1 0 3 0x80 poll dhclient 3635 107664 0 0 3 0x14200 pgzero zerothread 21343 41933 0 0 3 0x14200 aiodoned aiodoned 5142 307357 0 0 3 0x14200 syncer update 44072 443914 0 0 3 0x14200 cleaner cleaner 2969 324871 0 0 7 0x14200 reaper 19906 488614 0 0 3 0x14200 pgdaemon pagedaemon 79992 163625 0 0 3 0x14200 bored crynlk 2677 363967 0 0 3 0x14200 bored crypto 7800 226430 0 0 3 0x40014200 acpi0 acpi0 48413 97711 0 0 3 0x40014200 idle1 53762 207726 0 0 3 0x14200 bored softnet 41033 48423 0 0 3 0x14200 bored systqmp 45444 116176 0 0 3 0x14200 bored systq 12011 478581 0 0 3 0x40014200 bored softclock 19280 453645 0 0 3 0x40014200 idle0 67681 518018 0 0 3 0x14200 bored smr 1 264607 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9558 6438K 6881K 78643K 17381 0 0 pcb 25 9K 11K 78643K 1178 0 0 rtable 111 4K 5K 78643K 680 0 0 ifaddr 71 16K 17K 78643K 316 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1556 0 0 iov 0 0K 32K 78643K 330 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1206 76K 76K 78643K 3525 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 40 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 442 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 25K 78643K 2600 0 0 sigio 0 0K 0K 78643K 40 0 0 proc 57 63K 83K 78643K 625 0 0 subproc 64 65538K 67586K 78643K 72 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 294 0 0 in_multi 33 2K 2K 78643K 113 0 0 ether_multi 1 0K 0K 78643K 17 0 0 mrt 0 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 371 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 100 21K 30K 78643K 9698 0 0 UVM aobj 130 4K 4K 78643K 149 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 158 0 0 NDP 16 0K 0K 78643K 84 0 0 temp 200 2732K 2799K 78643K 11427 0 0 kqueue 0 0K 0K 78643K 22 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 1238 0 1231 1 0 1 1 0 8 0 plimitpl 152 169 0 161 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 48 0 4 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 455 0 451 1 0 1 1 0 8 0 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 50 0 50 10 9 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 48 0 35 1 0 1 1 0 8 0 pfstkey 112 48 0 35 1 0 1 1 0 8 0 pfstate 328 48 0 35 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 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 47 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 440 0 430 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5641 0 4186 47 0 47 47 0 8 0 ffsino 272 5641 0 4186 99 1 98 98 0 8 0 nchpl 144 9465 0 7820 63 1 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 29367 0 29367 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 41528 0 41528 27 26 1 7 0 8 1 sigapl 432 2801 0 2786 3 1 2 3 0 8 0 futexpl 56 33330 0 33330 2 1 1 1 0 8 1 knotepl 112 492 0 473 1 0 1 1 0 8 0 kqueuepl 104 574 0 572 1 0 1 1 0 8 0 pipepl 112 1768 0 1749 6 4 2 2 0 8 1 fdescpl 488 2802 0 2787 3 0 3 3 0 8 0 filepl 152 16384 0 16285 10 4 6 7 0 8 2 lockfpl 104 906 0 906 3 2 1 1 0 8 1 lockfspl 48 333 0 333 3 2 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 52 0 41 1 0 1 1 0 8 0 ucredpl 96 2736 0 2727 1 0 1 1 0 8 0 zombiepl 144 2787 0 2786 3 2 1 1 0 8 0 processpl 840 2818 0 2786 4 0 4 4 0 8 0 procpl 600 8855 0 8813 5 1 4 5 0 8 0 srpgc 64 3 0 3 2 2 0 1 0 8 0 sosppl 128 31 0 31 7 6 1 1 0 8 1 sockpl 384 2226 0 2207 8 4 4 4 0 8 2 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 133 0 0 15 1 14 15 0 8 0 mtagpl 80 5 0 0 1 0 1 1 0 8 0 mbufpl 256 226 0 0 10 0 10 10 0 8 0 bufpl 256 16002 0 7425 537 0 537 537 0 8 0 anonpl 16 268356 0 256143 145 80 65 65 0 125 15 amapchunkpl 152 17228 0 17110 54 48 6 10 0 158 1 amappl16 192 14970 0 14299 97 56 41 45 0 8 7 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 1363 0 1357 1 0 1 1 0 8 0 amappl12 160 15 0 12 1 0 1 1 0 8 0 amappl11 152 38 0 23 1 0 1 1 0 8 0 amappl10 144 75 0 72 1 0 1 1 0 8 0 amappl9 136 588 0 585 1 0 1 1 0 8 0 amappl8 128 150 0 129 1 0 1 1 0 8 0 amappl7 120 34 0 30 1 0 1 1 0 8 0 amappl6 112 60 0 53 1 0 1 1 0 8 0 amappl5 104 163 0 147 1 0 1 1 0 8 0 amappl4 96 3057 0 3027 2 1 1 2 0 8 0 amappl3 88 218 0 213 1 0 1 1 0 8 0 amappl2 80 24037 0 23981 3 1 2 2 0 8 0 amappl1 72 72286 0 71826 25 15 10 20 0 8 0 amappl 80 9141 0 9098 3 1 2 2 0 84 1 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 2802 0 2786 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2802 0 2786 1 0 1 1 0 8 0 vmmpekpl 168 27712 0 27684 2 0 2 2 0 8 0 vmmpepl 168 296882 0 295177 141 53 88 96 0 357 9 vmsppl 360 2801 0 2786 2 0 2 2 0 8 0 pdppl 4096 5612 0 5572 6 0 6 6 0 8 0 pvpl 32 724608 0 708686 288 127 161 161 0 265 31 pmappl 232 2801 0 2786 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 698 0 6 20 0 20 20 0 8 0