login: panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/kern_unveil.c", line 196 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 471193 51557 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(ffffffff81f9834f,ffffffff81f4feb7,c4,ffffffff81f5a832) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39c38,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39c38,ffff800020be7940,ffff800020be79b0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020be7a20) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020be7a20) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffce3d8) 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/setuid/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(ffffffff81f9834f,ffffffff81f4feb7,c4,ffffffff81f5a832) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3b078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39c38,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39c38,ffff800020be7940,ffff800020be79b0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020be7a20) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020be7a20) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffce3d8) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020be7740 rbx 0xffff800020be77f0 rdx 0xffff800020b39c38 rcx 0 rax 0 r8 0xffffffff8177e313 kprintf+0x173 r9 0x1 r10 0x25 r11 0xd2881bb39146329f r12 0x3000000008 r13 0xffff800020be7750 r14 0x100 r15 0x1 rip 0xffffffff81967bf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020be7730 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=475023 stat=onproc flags process=1018 proc=2000 pri=61, usrpri=61, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38018,0xffffffff8235aaa8 process=0xffff800020b3b078 user=0xffff800020be2000, vmspace=0xfffffd807effe168 estcpu=11, cpticks=9, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 20821 48993 79938 32767 3 0x90 nanosleep syz-executor.0 79938 173731 76858 0 3 0x82 wait syz-executor.0 76858 173992 79753 0 3 0x82 thrsleep syz-fuzzer 76858 33475 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 460799 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 266038 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 363367 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 52192 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 233536 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 366366 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 60204 79753 0 3 0x4000082 thrsleep syz-fuzzer 76858 367061 79753 0 3 0x4000082 kqread syz-fuzzer 79753 509383 14617 0 3 0x10008a pause ksh 14617 299969 55883 0 3 0x92 select sshd 22895 281484 1 0 3 0x100083 ttyin getty 55883 254725 1 0 3 0x80 select sshd 57315 57148 76598 73 3 0x100090 kqread syslogd 76598 377119 1 0 3 0x100082 netio syslogd 60099 227690 1 77 3 0x100090 poll dhclient 87030 284747 1 0 3 0x80 poll dhclient 14008 392858 0 0 3 0x14200 pgzero zerothread 55419 343042 0 0 3 0x14200 aiodoned aiodoned 65784 356496 0 0 3 0x14200 syncer update 64600 57669 0 0 3 0x14200 cleaner cleaner 51557 471193 0 0 7 0x14200 reaper 98488 316463 0 0 3 0x14200 pgdaemon pagedaemon 4874 15138 0 0 3 0x14200 bored crynlk 28702 417674 0 0 3 0x14200 bored crypto 92528 204693 0 0 3 0x40014200 acpi0 acpi0 17954 64695 0 0 3 0x40014200 idle1 21946 387951 0 0 3 0x14200 bored softnet 79747 446175 0 0 3 0x14200 bored systqmp 61737 515292 0 0 3 0x14200 bored systq 96557 340934 0 0 3 0x40014200 bored softclock 70033 9352 0 0 3 0x40014200 idle0 7421 516049 0 0 3 0x14200 bored smr 1 113786 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 9450 6318K 6320K 78643K 10547 0 0 pcb 23 9K 9K 78643K 67 0 0 rtable 83 2K 3K 78643K 241 0 0 ifaddr 28 8K 9K 78643K 40 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 18 0 0 iov 0 0K 4K 78643K 2 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1222 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 3 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 8 0K 0K 78643K 8 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 33K 78643K 94 0 0 sigio 0 0K 0K 78643K 3 0 0 proc 44 50K 78K 78643K 340 0 0 subproc 34 34817K 69634K 78643K 102 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 12 0 0 in_multi 22 1K 2K 78643K 52 0 0 ether_multi 1 0K 0K 78643K 3 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 202 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 76 12K 21K 78643K 1011 0 0 UVM aobj 7 3K 3K 78643K 8 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 12 0 0 NDP 6 0K 0K 78643K 12 0 0 temp 59 2715K 2844K 78643K 5532 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 4 1 0 1 1 0 8 0 inpcbpl 280 72 0 65 1 0 1 1 0 8 0 plimitpl 152 22 0 15 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 56 0 23 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 22 0 18 1 0 1 1 0 8 0 nd6 48 9 0 6 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 233 0 88 12 0 12 12 0 8 1 art_table 32 234 0 88 2 0 2 2 0 8 0 art_node 16 55 0 25 1 0 1 1 0 8 0 semapl 112 6 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1481 0 71 46 0 46 46 0 8 0 ffsino 272 1481 0 71 95 0 95 95 0 8 0 nchpl 144 1779 0 169 61 0 61 61 0 8 0 uvmvnodes 72 1541 0 0 29 0 29 29 0 8 0 vnodes 200 1541 0 0 82 0 82 82 0 8 0 namei 1024 4447 0 4447 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 10266 0 10266 6 5 1 5 0 8 1 sigapl 432 261 0 248 3 0 3 3 0 8 1 futexpl 56 407 0 407 1 0 1 1 0 8 1 knotepl 112 89 0 76 1 0 1 1 0 8 0 kqueuepl 104 6 0 4 1 0 1 1 0 8 0 pipepl 112 154 0 141 2 1 1 1 0 8 0 fdescpl 488 262 0 249 3 0 3 3 0 8 1 filepl 152 1202 0 1130 5 1 4 4 0 8 0 lockfpl 104 12 0 12 2 1 1 1 0 8 1 lockfspl 48 5 0 5 2 1 1 1 0 8 1 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 88 0 80 1 0 1 1 0 8 0 zombiepl 144 249 0 248 2 1 1 1 0 8 0 processpl 840 277 0 248 4 0 4 4 0 8 0 procpl 600 357 0 318 4 0 4 4 0 8 0 srpgc 64 12 0 12 1 0 1 1 0 8 1 sockpl 384 126 0 109 3 0 3 3 0 8 1 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 127 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 201 0 0 12 0 12 12 0 8 0 bufpl 256 17763 0 11552 390 0 390 390 0 8 0 anonpl 16 30484 0 24868 28 1 27 27 0 125 0 amapchunkpl 152 1351 0 1265 6 0 6 6 0 158 2 amappl16 192 615 0 294 17 0 17 17 0 8 0 amappl14 176 47 0 42 2 1 1 1 0 8 0 amappl13 168 14 0 14 1 0 1 1 0 8 1 amappl12 160 15 0 15 2 1 1 1 0 8 1 amappl11 152 45 0 30 1 0 1 1 0 8 0 amappl10 144 71 0 67 2 1 1 1 0 8 0 amappl9 136 500 0 498 1 0 1 1 0 8 0 amappl8 128 164 0 149 1 0 1 1 0 8 0 amappl7 120 35 0 31 1 0 1 1 0 8 0 amappl6 112 54 0 46 1 0 1 1 0 8 0 amappl5 104 332 0 323 1 0 1 1 0 8 0 amappl4 96 454 0 430 2 1 1 2 0 8 0 amappl3 88 132 0 126 1 0 1 1 0 8 0 amappl2 80 1042 0 989 2 0 2 2 0 8 0 amappl1 72 14558 0 14126 23 9 14 19 0 8 4 amappl 72 598 0 565 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 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 262 0 248 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 262 0 248 1 0 1 1 0 8 0 vmmpekpl 168 5971 0 5948 2 0 2 2 0 8 0 vmmpepl 168 34614 0 33350 82 14 68 72 0 357 13 vmsppl 360 261 0 248 2 0 2 2 0 8 0 pdppl 4096 532 0 496 6 0 6 6 0 8 1 pvpl 32 120032 0 111406 104 7 97 101 0 265 20 pmappl 232 261 0 248 2 0 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 540 0 3 16 0 16 16 0 8 0