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 290704 71117 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(ffff800020b3b708) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39788,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39788,ffff800020c15dd0,ffff800020c15e40) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c15eb0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c15eb0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,431bde82d7b634db,7f7ffffce938) 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(ffff800020b3b708) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800020b39788,0,1) at exit1+0x354 sys/kern/kern_exit.c:216 sys_exit(ffff800020b39788,ffff800020c15dd0,ffff800020c15e40) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020c15eb0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c15eb0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(0,1,0,1,431bde82d7b634db,7f7ffffce938) at Xsyscall+0x128 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c15bd0 rbx 0xffff800020c15c80 rdx 0xffff800020b39788 rcx 0 rax 0 r8 0xffffffff81db28a3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x84312f507b348d20 r12 0x3000000008 r13 0xffff800020c15be0 r14 0x100 r15 0x1 rip 0xffffffff81422368 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c15bc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=368124 stat=onproc flags process=1018 proc=2000 pri=72, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff800020b38bd0,0xffffffff823745c0 process=0xffff800020b3b708 user=0xffff800020c10000, vmspace=0xfffffd807f00c9d8 estcpu=22, cpticks=20, pctcpu=0.9 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21690 108574 67717 32767 2 0x490 syz-executor.0 67717 283783 60905 0 3 0x82 wait syz-executor.0 9330 67436 0 0 3 0x14200 bored sosplice 64498 403110 89614 32767 3 0x90 piperd syz-executor.1 89614 420716 60905 0 3 0x82 wait syz-executor.1 60905 248435 51966 0 3 0x82 thrsleep syz-fuzzer 60905 135873 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 145417 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 325988 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 50537 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 488816 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 97976 51966 0 3 0x4000082 kqread syz-fuzzer 60905 217682 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 137881 51966 0 3 0x4000082 thrsleep syz-fuzzer 60905 67944 51966 0 3 0x4000082 thrsleep syz-fuzzer 51966 346325 38864 0 3 0x10008a pause ksh 38864 514882 70768 0 3 0x92 select sshd 33138 502903 1 0 3 0x100083 ttyin getty 70768 257503 1 0 3 0x80 select sshd 82434 492397 52197 73 3 0x100090 kqread syslogd 52197 315701 1 0 3 0x100082 netio syslogd 80776 261443 1 77 3 0x100090 poll dhclient 5272 41042 1 0 3 0x80 poll dhclient 71639 152128 0 0 3 0x14200 pgzero zerothread 17563 22148 0 0 3 0x14200 aiodoned aiodoned 29260 190258 0 0 3 0x14200 syncer update 11831 80335 0 0 3 0x14200 cleaner cleaner 71117 290704 0 0 7 0x14200 reaper 23817 311593 0 0 3 0x14200 pgdaemon pagedaemon 28838 310892 0 0 3 0x14200 bored crynlk 13977 243862 0 0 3 0x14200 bored crypto 79018 86594 0 0 3 0x40014200 acpi0 acpi0 18987 352397 0 0 3 0x40014200 idle1 1269 91134 0 0 3 0x14200 bored softnet 12735 474751 0 0 3 0x14200 bored systqmp 92712 441905 0 0 3 0x14200 bored systq 33353 6018 0 0 3 0x40014200 bored softclock 32264 26532 0 0 3 0x40014200 idle0 91909 360312 0 0 3 0x14200 bored smr 1 64343 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 10559 0 0 pcb 23 9K 10K 78643K 99 0 0 rtable 105 3K 3K 78643K 323 0 0 ifaddr 34 9K 9K 78643K 53 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 20 0 0 iov 0 0K 16K 78643K 16 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 75K 78643K 1262 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 29 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 33K 78643K 2306 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 44 50K 78K 78643K 431 0 0 subproc 68 69634K 69634K 78643K 170 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 4 0 0 in_multi 33 2K 2K 78643K 66 0 0 ether_multi 1 0K 0K 78643K 1 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 224 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 83 20K 25K 78643K 7028 0 0 UVM aobj 13 2K 2K 78643K 15 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 4 0 0 NDP 5 0K 0K 78643K 18 0 0 temp 120 2726K 2854K 78643K 10338 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 12 0 6 1 0 1 1 0 8 0 inpcbpl 280 80 0 73 1 0 1 1 0 8 0 plimitpl 152 27 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 78 0 34 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 21 0 17 1 0 1 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 320 0 132 12 0 12 12 0 8 0 art_table 32 321 0 132 2 0 2 2 0 8 0 art_node 16 77 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 13 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4694 0 3281 46 0 46 46 0 8 0 ffsino 272 4694 0 3281 95 0 95 95 0 8 0 nchpl 144 8230 0 6614 61 0 61 61 0 8 0 uvmvnodes 72 4788 0 0 88 0 88 88 0 8 0 vnodes 200 4788 0 0 252 0 252 252 0 8 0 namei 1024 17601 0 17601 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 41638 0 41638 8 7 1 6 0 8 1 sigapl 432 2467 0 2452 3 1 2 3 0 8 0 futexpl 56 15180 0 15180 1 0 1 1 0 8 1 knotepl 112 121 0 102 1 0 1 1 0 8 0 kqueuepl 104 20 0 18 1 0 1 1 0 8 0 pipepl 112 242 0 223 2 1 1 1 0 8 0 fdescpl 488 2468 0 2453 3 0 3 3 0 8 1 filepl 152 5705 0 5609 7 2 5 5 0 8 1 lockfpl 104 26 0 26 3 2 1 1 0 8 1 lockfspl 48 11 0 11 3 2 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 29 0 19 1 0 1 1 0 8 0 ucredpl 96 178 0 169 1 0 1 1 0 8 0 zombiepl 144 2453 0 2452 2 1 1 1 0 8 0 processpl 840 2484 0 2452 4 0 4 4 0 8 0 procpl 600 6298 0 6256 4 0 4 4 0 8 0 srpgc 64 18 0 18 1 1 0 1 0 8 0 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 384 170 0 153 4 1 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 119 0 0 14 0 14 14 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 180 0 0 11 0 11 11 0 8 0 bufpl 256 35229 0 29018 390 0 390 390 0 8 0 anonpl 16 171631 0 164325 34 4 30 30 0 125 0 amapchunkpl 152 11282 0 11187 8 3 5 7 0 158 0 amappl16 192 8923 0 8548 20 1 19 19 0 8 0 amappl15 184 68 0 66 1 0 1 1 0 8 0 amappl14 176 1084 0 1078 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 3 0 3 1 1 0 1 0 8 0 amappl11 152 57 0 42 1 0 1 1 0 8 0 amappl10 144 1231 0 1226 2 1 1 1 0 8 0 amappl9 136 599 0 596 1 0 1 1 0 8 0 amappl8 128 162 0 147 1 0 1 1 0 8 0 amappl7 120 1199 0 1192 1 0 1 1 0 8 0 amappl6 112 55 0 48 1 0 1 1 0 8 0 amappl5 104 140 0 127 1 0 1 1 0 8 0 amappl4 96 2662 0 2636 2 1 1 2 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 20702 0 20646 2 0 2 2 0 8 0 amappl1 72 67797 0 67348 23 13 10 19 0 8 0 amappl 72 6558 0 6519 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 14 0 2 1 0 1 1 0 8 0 uaddrrnd 24 2468 0 2452 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2468 0 2452 1 0 1 1 0 8 0 vmmpekpl 168 20135 0 20111 2 0 2 2 0 8 0 vmmpepl 168 268522 0 267106 96 29 67 75 0 357 1 vmsppl 360 2467 0 2452 2 0 2 2 0 8 0 pdppl 4096 4944 0 4904 6 0 6 6 0 8 1 pvpl 32 523251 0 512190 116 26 90 101 0 265 0 pmappl 232 2467 0 2452 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 540 0 3 16 0 16 16 0 8 0