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 390307 22477 0 0x14000 0x200 1 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(ffffffff81f987de,ffffffff81f523f2,c4,ffffffff81f5c7b8) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3a010) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b384c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b384c8,ffff800020c1f060,ffff800020c1f0d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1f140) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1f140) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe8628) 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/setuid/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(ffffffff81f987de,ffffffff81f523f2,c4,ffffffff81f5c7b8) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff800020b3a010) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b384c8,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b384c8,ffff800020c1f060,ffff800020c1f0d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c1f140) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c1f140) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7ffffe8628) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c1ee60 rbx 0xffff800020c1ef10 rdx 0xffff800020b384c8 rcx 0 rax 0 r8 0xffffffff81db28a3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x6c5045c99dd7d485 r12 0x3000000008 r13 0xffff800020c1ee70 r14 0x100 r15 0x1 rip 0xffffffff81422368 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c1ee50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=390790 stat=onproc flags process=1018 proc=2000 pri=50, usrpri=65, nice=20 forw=0xffffffffffffffff, list=0xffff800020b39c38,0xffffffff823745c0 process=0xffff800020b3a010 user=0xffff800020c1a000, vmspace=0xfffffd807f00c708 estcpu=15, cpticks=29, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13119 493393 10794 32767 2 0x490 syz-executor.1 10794 409472 78352 0 3 0x82 wait syz-executor.1 70494 493599 92722 32767 3 0x90 piperd syz-executor.0 92722 79445 78352 0 3 0x82 wait syz-executor.0 9123 370755 0 0 3 0x14200 bored sosplice 78352 66834 59131 0 3 0x82 thrsleep syz-fuzzer 78352 475903 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 297693 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 118540 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 516572 59131 0 3 0x4000082 kqread syz-fuzzer 78352 153964 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 3697 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 221290 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 132176 59131 0 3 0x4000082 thrsleep syz-fuzzer 78352 212028 59131 0 3 0x4000082 thrsleep syz-fuzzer 59131 345579 58869 0 3 0x10008a pause ksh 58869 122321 14565 0 3 0x92 select sshd 50055 133945 1 0 3 0x100083 ttyin getty 14565 400524 1 0 3 0x80 select sshd 52692 197820 17788 73 3 0x100090 kqread syslogd 17788 20631 1 0 3 0x100082 netio syslogd 38636 102145 1 77 3 0x100090 poll dhclient 38212 467817 1 0 3 0x80 poll dhclient 16555 196394 0 0 3 0x14200 pgzero zerothread 75733 456847 0 0 3 0x14200 aiodoned aiodoned 10914 272318 0 0 3 0x14200 syncer update 42790 203609 0 0 3 0x14200 cleaner cleaner 22477 390307 0 0 7 0x14200 reaper 3335 416012 0 0 3 0x14200 pgdaemon pagedaemon 83898 371249 0 0 3 0x14200 bored crynlk 80921 199690 0 0 3 0x14200 bored crypto 82554 34459 0 0 3 0x40014200 acpi0 acpi0 62462 138752 0 0 3 0x40014200 idle1 18673 350997 0 0 3 0x14200 bored softnet 65096 16112 0 0 3 0x14200 bored systqmp 4810 6137 0 0 3 0x14200 bored systq 65508 162282 0 0 3 0x40014200 bored softclock 60106 247989 0 0 3 0x40014200 idle0 95557 423536 0 0 3 0x14200 bored smr 1 24833 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 9457 6320K 6320K 78643K 10554 0 0 pcb 23 9K 10K 78643K 115 0 0 rtable 105 3K 3K 78643K 279 0 0 ifaddr 34 9K 9K 78643K 46 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 17 0 0 iov 0 0K 12K 78643K 12 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1251 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 16 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 33K 78643K 121 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 44 50K 78K 78643K 392 0 0 subproc 68 69634K 69634K 78643K 136 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 2 0 0 in_multi 33 2K 2K 78643K 58 0 0 ether_multi 1 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 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 213 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 85 20K 21K 78643K 1134 0 0 UVM aobj 6 2K 2K 78643K 6 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 2 0 0 NDP 7 0K 0K 78643K 15 0 0 temp 85 2717K 2782K 78643K 5832 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 10 0 4 1 0 1 1 0 8 0 inpcbpl 280 72 0 65 1 0 1 1 0 8 0 plimitpl 152 25 0 16 1 0 1 1 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 tcpcb 544 20 0 16 1 0 1 1 0 8 0 nd6 48 12 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 277 0 88 12 0 12 12 0 8 0 art_table 32 278 0 88 2 0 2 2 0 8 0 art_node 16 66 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 1 1 0 1 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1514 0 98 46 0 46 46 0 8 0 ffsino 272 1514 0 98 95 0 95 95 0 8 0 nchpl 144 1846 0 228 61 0 61 61 0 8 0 uvmvnodes 72 1591 0 0 29 0 29 29 0 8 0 vnodes 200 1591 0 0 84 0 84 84 0 8 0 namei 1024 4793 0 4793 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 11148 0 11148 9 6 3 6 0 8 3 sigapl 432 285 0 270 3 0 3 3 0 8 1 futexpl 56 768 0 768 1 0 1 1 0 8 1 knotepl 112 107 0 88 1 0 1 1 0 8 0 kqueuepl 104 22 0 20 1 0 1 1 0 8 0 pipepl 112 194 0 175 2 1 1 1 0 8 0 fdescpl 488 286 0 271 3 0 3 3 0 8 1 filepl 152 1460 0 1364 6 1 5 5 0 8 1 lockfpl 104 29 0 29 2 1 1 1 0 8 1 lockfspl 48 13 0 13 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 181 0 172 1 0 1 1 0 8 0 zombiepl 144 271 0 270 2 1 1 1 0 8 0 processpl 840 302 0 270 4 0 4 4 0 8 0 procpl 600 440 0 397 4 0 4 4 0 8 0 srpgc 64 12 0 12 1 0 1 1 0 8 1 sosppl 128 7 0 7 1 0 1 1 0 8 1 sockpl 384 174 0 157 3 0 3 3 0 8 1 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 97 0 0 12 0 12 12 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 194 0 0 12 0 12 12 0 8 0 bufpl 256 18766 0 12555 391 0 391 391 0 8 0 anonpl 16 32543 0 26601 30 1 29 29 0 125 1 amapchunkpl 152 1539 0 1440 6 0 6 6 0 158 1 amappl16 192 693 0 340 18 0 18 18 0 8 0 amappl15 184 83 0 81 1 0 1 1 0 8 0 amappl14 176 51 0 47 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 18 0 14 1 0 1 1 0 8 0 amappl11 152 44 0 30 1 0 1 1 0 8 0 amappl10 144 85 0 78 2 1 1 1 0 8 0 amappl9 136 589 0 585 1 0 1 1 0 8 0 amappl8 128 145 0 131 1 0 1 1 0 8 0 amappl7 120 49 0 41 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 126 0 115 1 0 1 1 0 8 0 amappl4 96 476 0 451 2 1 1 2 0 8 0 amappl3 88 122 0 115 1 0 1 1 0 8 0 amappl2 80 1204 0 1151 2 0 2 2 0 8 0 amappl1 72 15385 0 14926 23 10 13 19 0 8 3 amappl 72 694 0 653 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 286 0 270 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 286 0 270 1 0 1 1 0 8 0 vmmpekpl 168 6266 0 6243 2 0 2 2 0 8 0 vmmpepl 168 37282 0 35868 87 10 77 77 0 357 15 vmsppl 360 285 0 270 2 0 2 2 0 8 0 pdppl 4096 580 0 540 6 0 6 6 0 8 1 pvpl 32 128346 0 118678 103 7 96 101 0 265 15 pmappl 232 285 0 270 2 0 2 2 0 8 1 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 539 0 3 16 0 16 16 0 8 0