login: panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/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(ffffffff81f7d03e,ffffffff81f29f26,c4,ffffffff81f3e6a3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000159d2bd8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000159d2bd8,ffff800016bfbfa0,ffff800016bfc010) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800016bfc080) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd4b74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4b40, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 196 ddb> 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(ffffffff81f7d03e,ffffffff81f29f26,c4,ffffffff81f3e6a3) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000159d2bd8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000159d2bd8,ffff800016bfbfa0,ffff800016bfc010) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800016bfc080) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd4b74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4b40, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800016bfbda0 rbx 0xffff800016bfbe50 rdx 0x2 rcx 0 rax 0 r8 0xffff800016bfbd60 r9 0x1 r10 0 r11 0x37cf3c19b7eed5fd r12 0x3000000008 r13 0xffff800016bfbdb0 r14 0x100 r15 0x1 rip 0xffffffff819b5b38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016bfbd90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=155995 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff8000159d2728,0xffff8000159d37a0 process=0xffff8000ffff7078 user=0xffff800016bf7000, vmspace=0xfffffd803f013318 estcpu=25, cpticks=6, pctcpu=0.12 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 75752 275411 73797 60929 2 0x490 syz-executor.0 75752 25091 73797 60929 3 0x4000090 poll syz-executor.0 75752 302668 73797 60929 3 0x4000090 fsleep syz-executor.0 95477 8827 1 0 3 0x100083 ttyin getty 24700 325556 0 0 3 0x14200 bored sosplice 73797 72314 34535 0 2 0x482 syz-executor.0 37421 76138 34535 0 2 0x482 syz-executor.1 34535 433524 94920 0 3 0x82 thrsleep syz-fuzzer 34535 64852 94920 0 3 0x4000082 thrsleep syz-fuzzer 34535 209904 94920 0 3 0x4000082 thrsleep syz-fuzzer 34535 451149 94920 0 3 0x4000082 kqread syz-fuzzer 34535 360242 94920 0 3 0x4000082 thrsleep syz-fuzzer 34535 36260 94920 0 3 0x4000082 thrsleep syz-fuzzer 34535 270736 94920 0 3 0x4000082 thrsleep syz-fuzzer 94920 210416 90079 0 3 0x10008a pause ksh 90079 391777 41309 0 3 0x92 select sshd 41309 139952 1 0 3 0x80 select sshd 64831 510596 58058 73 3 0x100090 kqread syslogd 58058 368519 1 0 3 0x100082 netio syslogd 66685 400347 1 77 3 0x100090 poll dhclient 18086 397676 1 0 3 0x80 poll dhclient 94159 509674 0 0 2 0x14200 zerothread 19358 474639 0 0 3 0x14200 aiodoned aiodoned 92976 476606 0 0 3 0x14200 syncer update 72883 61533 0 0 3 0x14200 cleaner cleaner 13470 297089 0 0 3 0x14200 reaper reaper 48242 190761 0 0 3 0x14200 pgdaemon pagedaemon 9335 234489 0 0 3 0x14200 bored crynlk 87535 130618 0 0 3 0x14200 bored crypto 13687 235361 0 0 3 0x40014200 acpi0 acpi0 68966 351180 0 0 3 0x14200 bored softnet 51020 455756 0 0 3 0x14200 bored systqmp 60726 243168 0 0 3 0x14200 bored systq 70624 17919 0 0 3 0x40014200 bored softclock 14332 149044 0 0 3 0x40014200 idle0 40801 512062 0 0 3 0x14200 bored smr 1 272203 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9536 6376K 7011K 78643K 21510 0 0 pcb 23 9K 11K 78643K 4328 0 0 rtable 122 4K 5K 78643K 1734 0 0 ifaddr 65 17K 19K 78643K 798 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 320 0 0 iov 0 0K 32K 78643K 1165 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 7610 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 102 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 567 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 8647 0 0 sigio 2 0K 0K 78643K 116 0 0 proc 45 38K 54K 78643K 1275 0 0 subproc 32 2K 2K 78643K 36 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 907 0 0 in_multi 33 2K 2K 78643K 292 0 0 ether_multi 1 0K 0K 78643K 41 0 0 mrt 0 0K 0K 78643K 30 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 864 0 0 pfkey data 0 0K 4K 78643K 8 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 107 21K 31K 78643K 21085 0 0 UVM aobj 130 6K 6K 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 1K 78643K 370 0 0 NDP 14 0K 0K 78643K 213 0 0 temp 193 2716K 2844K 78643K 27437 0 0 kqueue 0 0K 0K 78643K 70 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> 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 3628 0 3621 2 1 1 2 0 8 0 plimitpl 152 184 0 177 1 0 1 1 0 8 0 rtentry 112 97 0 52 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 1304 0 1300 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 162 0 162 24 24 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 195 0 0 13 0 13 13 0 8 0 art_table 32 196 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 4 1 0 1 1 0 8 0 semapl 112 565 0 555 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 16650 0 15125 50 0 50 50 0 8 0 ffsino 240 16650 0 15125 90 0 90 90 0 8 0 nchpl 144 29115 0 27478 61 0 61 61 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 91533 0 91533 3 2 1 1 0 8 1 scsiplug 64 15 0 15 8 8 0 1 0 8 0 scxspl 192 99815 0 99815 47 46 1 6 0 8 1 sigapl 432 8824 0 8810 2 0 2 2 0 8 0 futexpl 56 132305 0 132304 2 1 1 1 0 8 0 knotepl 112 1609 0 1590 2 1 1 2 0 8 0 kqueuepl 104 2063 0 2061 1 0 1 1 0 8 0 pipepl 112 4558 0 4539 11 10 1 2 0 8 0 fdescpl 424 8825 0 8811 2 0 2 2 0 8 0 filepl 120 53355 0 53261 6 2 4 5 0 8 0 lockfpl 104 3348 0 3348 3 2 1 1 0 8 1 lockfspl 48 1113 0 1113 3 2 1 1 0 8 1 sessionpl 112 23 0 13 1 0 1 1 0 8 0 pgrppl 48 165 0 155 1 0 1 1 0 8 0 ucredpl 96 14134 0 14126 1 0 1 1 0 8 0 zombiepl 144 8811 0 8810 2 1 1 1 0 8 0 processpl 840 8840 0 8810 4 0 4 4 0 8 0 procpl 600 19961 0 19923 5 1 4 4 0 8 0 sosppl 128 140 0 140 28 27 1 1 0 8 1 sockpl 384 7464 0 7447 5 2 3 4 0 8 1 mcl64k 65536 1475 0 1475 137 136 1 33 0 8 1 mcl16k 16384 27 0 27 20 19 1 1 0 8 1 mcl12k 12288 154 0 154 22 22 0 1 0 8 0 mcl9k 9216 121 0 121 29 28 1 1 0 8 1 mcl8k 8192 119 0 119 30 29 1 1 0 8 1 mcl4k 4096 313 0 313 12 11 1 1 0 8 1 mcl2k2 2112 51 0 51 27 27 0 1 0 8 0 mcl2k 2048 63238 0 63192 14 7 7 12 0 8 0 mtagpl 80 8 0 8 4 4 0 1 0 8 0 mbufpl 256 144698 0 144617 80 74 6 21 0 8 0 bufpl 256 30561 0 24802 361 0 361 361 0 8 0 anonpl 16 766645 0 757016 282 228 54 71 0 62 15 amapchunkpl 152 36001 0 35907 81 76 5 17 0 158 1 amappl16 192 48835 0 48310 312 278 34 50 0 8 7 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 43 0 41 2 1 1 1 0 8 0 amappl13 168 4235 0 4233 1 0 1 1 0 8 0 amappl12 160 15 0 11 1 0 1 1 0 8 0 amappl11 152 54 0 40 1 0 1 1 0 8 0 amappl10 144 69 0 68 2 1 1 1 0 8 0 amappl9 136 4911 0 4906 1 0 1 1 0 8 0 amappl8 128 4502 0 4479 1 0 1 1 0 8 0 amappl7 120 34 0 30 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 173 0 161 1 0 1 1 0 8 0 amappl4 96 9035 0 9012 1 0 1 1 0 8 0 amappl3 88 465 0 453 1 0 1 1 0 8 0 amappl2 80 70257 0 70182 4 2 2 3 0 8 0 amappl1 72 161536 0 161095 24 15 9 19 0 8 0 amappl 80 20275 0 20236 1 0 1 1 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 8825 0 8810 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8825 0 8810 1 0 1 1 0 8 0 vmmpekpl 168 56216 0 56190 2 0 2 2 0 8 0 vmmpepl 168 883678 0 882070 265 189 76 90 0 357 6 vmsppl 264 8824 0 8810 2 1 1 2 0 8 0 pdppl 4096 17656 0 17620 6 1 5 6 0 8 0 pvpl 32 2186262 0 2172926 540 400 140 239 0 265 32 pmappl 200 8824 0 8810 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 773 0 281 17 1 16 16 0 8 0