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 410461 42044 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(ffff800020b3a6a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020b6de40,ffff800020b6deb0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b6df20) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020b6df20) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7fffff1b98) 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(ffff800020b3a6a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b38270,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b38270,ffff800020b6de40,ffff800020b6deb0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020b6df20) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020b6df20) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,1,0,1,431bde82d7b634db,7f7fffff1b98) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b6dc40 rbx 0xffff800020b6dcf0 rdx 0xffff800020b38270 rcx 0 rax 0 r8 0xffffffff81db28a3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x8f8fe0f204267787 r12 0x3000000008 r13 0xffff800020b6dc50 r14 0x100 r15 0x1 rip 0xffffffff81422368 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b6dc30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=43259 stat=onproc flags process=1018 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38978,0xffffffff823745c0 process=0xffff800020b3a6a0 user=0xffff800020b68000, vmspace=0xfffffd807f00c000 estcpu=36, cpticks=6, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35876 363019 90304 32767 2 0x490 syz-executor.0 90304 121529 69759 0 3 0x82 wait syz-executor.0 17632 287434 0 0 3 0x14200 bored sosplice 69759 117667 6260 0 3 0x82 thrsleep syz-fuzzer 69759 77821 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 263417 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 337282 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 29408 6260 0 3 0x4000082 kqread syz-fuzzer 69759 45497 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 118291 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 236353 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 66591 6260 0 3 0x4000082 thrsleep syz-fuzzer 69759 203877 6260 0 3 0x4000082 thrsleep syz-fuzzer 6260 207054 70881 0 3 0x10008a pause ksh 70881 145549 60966 0 3 0x92 select sshd 72681 69927 1 0 3 0x100083 ttyin getty 60966 230637 1 0 3 0x80 select sshd 49177 404948 83060 73 3 0x100090 kqread syslogd 83060 222718 1 0 3 0x100082 netio syslogd 15101 393313 1 77 3 0x100090 poll dhclient 14168 74325 1 0 3 0x80 poll dhclient 66770 265617 0 0 3 0x14200 pgzero zerothread 20193 165640 0 0 3 0x14200 aiodoned aiodoned 40566 237137 0 0 3 0x14200 syncer update 63000 494542 0 0 3 0x14200 cleaner cleaner 42044 410461 0 0 7 0x14200 reaper 29523 18041 0 0 3 0x14200 pgdaemon pagedaemon 38167 416015 0 0 3 0x14200 bored crynlk 53489 5284 0 0 3 0x14200 bored crypto 41184 517151 0 0 3 0x40014200 acpi0 acpi0 95666 425648 0 0 3 0x40014200 idle1 18858 430698 0 0 3 0x14200 bored softnet 71343 316127 0 0 3 0x14200 bored systqmp 19045 40993 0 0 3 0x14200 bored systq 18159 155111 0 0 3 0x40014200 bored softclock 89357 405906 0 0 3 0x40014200 idle0 23786 174200 0 0 3 0x14200 bored smr 1 513216 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 9456 6319K 6321K 78643K 11063 0 0 pcb 23 9K 11K 78643K 1584 0 0 rtable 83 2K 3K 78643K 4759 0 0 ifaddr 30 11K 12K 78643K 669 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 167 0 0 iov 0 0K 28K 78643K 315 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 3301 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 41 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 464 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 4 9K 33K 78643K 3873 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 44 50K 78K 78643K 4737 0 0 subproc 34 34817K 69634K 78643K 3570 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 293 0 0 in_multi 22 1K 2K 78643K 1243 0 0 ether_multi 1 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 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 1693 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 86 13K 30K 78643K 13126 0 0 UVM aobj 130 4K 4K 78643K 142 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 181 0 0 NDP 4 0K 0K 78643K 318 0 0 temp 97 2729K 2858K 78643K 26708 0 0 kqueue 0 0K 0K 78643K 28 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 212 0 208 1 0 1 1 0 8 0 inpcbpl 280 1747 0 1740 1 0 1 1 0 8 0 plimitpl 152 454 0 447 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 1178 0 1145 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 590 0 586 1 0 1 1 0 8 0 nd6 48 315 0 312 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4827 0 4680 17 5 12 13 0 8 1 art_table 32 4828 0 4680 2 0 2 2 0 8 0 art_node 16 1177 0 1147 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 462 0 452 1 0 1 1 0 8 0 shmpl 112 140 0 12 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4575 0 3015 51 0 51 51 0 8 0 ffsino 272 4575 0 3015 105 0 105 105 0 8 0 nchpl 144 8675 0 6980 65 1 64 64 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 36663 0 36663 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 53858 0 53858 27 24 3 6 0 8 3 sigapl 432 3734 0 3721 9 7 2 3 0 8 0 futexpl 56 27171 0 27171 1 0 1 1 0 8 1 knotepl 112 2817 0 2804 1 0 1 1 0 8 0 kqueuepl 104 707 0 705 1 0 1 1 0 8 0 pipepl 112 2446 0 2433 4 3 1 2 0 8 0 fdescpl 488 3735 0 3722 3 0 3 3 0 8 0 filepl 152 20248 0 20176 13 8 5 7 0 8 1 lockfpl 104 735 0 735 7 6 1 1 0 8 1 lockfspl 48 235 0 235 7 6 1 1 0 8 1 sessionpl 112 120 0 111 1 0 1 1 0 8 0 pgrppl 48 155 0 146 1 0 1 1 0 8 0 ucredpl 96 4507 0 4499 1 0 1 1 0 8 0 zombiepl 144 3722 0 3721 2 1 1 1 0 8 0 processpl 840 3751 0 3721 4 0 4 4 0 8 0 procpl 600 8394 0 8354 4 0 4 4 0 8 0 srpgc 64 624 0 624 4 3 1 1 0 8 1 sosppl 128 42 0 42 14 13 1 1 0 8 1 sockpl 384 3382 0 3365 8 5 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 23 0 0 2 0 2 2 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 134 0 0 15 0 15 15 0 8 2 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 291 0 0 11 0 11 11 0 8 0 bufpl 256 50673 0 44462 390 1 389 390 0 8 0 anonpl 16 370960 0 365235 92 60 32 44 0 125 0 amapchunkpl 152 32157 0 32073 37 32 5 9 0 158 1 amappl16 192 13756 0 13403 81 61 20 31 0 8 0 amappl15 184 343 0 343 9 9 0 1 0 8 0 amappl14 176 1133 0 1126 2 1 1 1 0 8 0 amappl13 168 470 0 469 1 0 1 1 0 8 0 amappl12 160 426 0 423 1 0 1 1 0 8 0 amappl11 152 625 0 611 1 0 1 1 0 8 0 amappl10 144 568 0 566 2 1 1 1 0 8 0 amappl9 136 2291 0 2289 1 0 1 1 0 8 0 amappl8 128 1680 0 1639 3 1 2 2 0 8 0 amappl7 120 626 0 619 1 0 1 1 0 8 0 amappl6 112 438 0 428 1 0 1 1 0 8 0 amappl5 104 1085 0 1073 1 0 1 1 0 8 0 amappl4 96 3844 0 3809 2 1 1 2 0 8 0 amappl3 88 617 0 611 1 0 1 1 0 8 0 amappl2 80 21586 0 21536 2 0 2 2 0 8 0 amappl1 72 111134 0 110713 31 21 10 19 0 8 0 amappl 72 10230 0 10198 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 3735 0 3721 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3735 0 3721 1 0 1 1 0 8 0 vmmpekpl 168 32051 0 32027 2 0 2 2 0 8 0 vmmpepl 168 420235 0 418911 145 72 73 87 0 357 10 vmsppl 360 3734 0 3721 2 0 2 2 0 8 0 pdppl 4096 7478 0 7442 6 0 6 6 0 8 0 pvpl 32 1113325 0 1104530 235 149 86 118 0 265 0 pmappl 232 3734 0 3721 10 9 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 559 0 9 16 0 16 16 0 8 0