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(ffffffff81f83e27,ffffffff81f307a1,c4,ffffffff81f44d6a) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7b10) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff2508,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff8000ffff2508,ffff800015a02260,ffff800015a022d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a02330) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffe04d4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe04a0, 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(ffffffff81f83e27,ffffffff81f307a1,c4,ffffffff81f44d6a) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7b10) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff2508,0,1) at exit1+0x38f sys/kern/kern_exit.c:218 sys_exit(ffff8000ffff2508,ffff800015a02260,ffff800015a022d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a02330) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffe04d4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe04a0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015a02070 rbx 0xffff800015a02120 rdx 0x2 rcx 0 rax 0 r8 0xffff800015a02030 r9 0x1 r10 0 r11 0xbe7f4bb7430ad70f r12 0x3000000008 r13 0xffff800015a02080 r14 0x100 r15 0x1 rip 0xffffffff819ea5f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a02060 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=455581 stat=onproc flags process=1008 proc=2000 pri=60, usrpri=60, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8c60,0xffffffff822d48e0 process=0xffff8000ffff7b10 user=0xffff8000159fd000, vmspace=0xfffffd803f014bb0 estcpu=10, cpticks=7, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 87427 398428 77115 0 2 0 syz-executor.0 87427 29177 77115 0 3 0x4000080 fsleep syz-executor.0 64733 227602 87526 0 3 0x82 nanosleep syz-executor.1 77115 266621 87526 0 3 0x82 nanosleep syz-executor.0 87526 17288 41384 0 3 0x82 kqread syz-fuzzer 87526 520036 41384 0 3 0x4000082 thrsleep syz-fuzzer 87526 214221 41384 0 3 0x4000082 thrsleep syz-fuzzer 87526 267307 41384 0 3 0x4000082 thrsleep syz-fuzzer 87526 74589 41384 0 3 0x4000082 thrsleep syz-fuzzer 87526 523068 41384 0 3 0x4000082 thrsleep syz-fuzzer 87526 203916 41384 0 3 0x4000082 thrsleep syz-fuzzer 41384 397152 46171 0 3 0x10008a pause ksh 46171 485026 72599 0 3 0x92 select sshd 81848 404200 1 0 3 0x100083 ttyin getty 72599 472972 1 0 3 0x80 select sshd 57294 251162 11604 73 3 0x100090 kqread syslogd 11604 252014 1 0 3 0x100082 netio syslogd 46109 22225 1 77 3 0x100090 poll dhclient 94892 340869 1 0 3 0x80 poll dhclient 2359 161122 0 0 3 0x14200 pgzero zerothread 81508 276388 0 0 3 0x14200 aiodoned aiodoned 31199 98402 0 0 3 0x14200 syncer update 24457 6445 0 0 3 0x14200 cleaner cleaner 15552 393219 0 0 3 0x14200 reaper reaper 88943 401198 0 0 3 0x14200 pgdaemon pagedaemon 66966 177412 0 0 3 0x14200 bored crynlk 90270 167932 0 0 3 0x14200 bored crypto 75991 465743 0 0 3 0x40014200 acpi0 acpi0 89246 35356 0 0 3 0x14200 bored softnet 81634 477074 0 0 3 0x14200 bored systqmp 31463 454617 0 0 3 0x14200 bored systq 72030 290224 0 0 3 0x40014200 bored softclock 6886 482964 0 0 3 0x40014200 idle0 34080 219510 0 0 3 0x14200 bored smr 1 196864 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 9441 6312K 6569K 78643K 10583 0 0 pcb 23 9K 9K 78643K 57 0 0 rtable 105 3K 3K 78643K 198 0 0 ifaddr 34 9K 10K 78643K 37 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 17 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 76K 78643K 1236 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 0K 0K 78643K 2 0 0 sem 6 0K 0K 78643K 6 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 53 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 44 38K 54K 78643K 355 0 0 subproc 32 2K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 33 2K 2K 78643K 33 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 30 132K 132K 78643K 30 0 0 exec 0 0K 1K 78643K 184 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 81 20K 20K 78643K 938 0 0 UVM aobj 2 2K 2K 78643K 4 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 9 0K 0K 78643K 10 0 0 temp 82 2708K 2772K 78643K 3085 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 40 0 33 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 897 0 897 1 0 1 1 0 8 1 tcpcb 544 18 0 14 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 4 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 2 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1476 0 53 47 0 47 47 0 8 0 ffsino 240 1476 0 53 84 0 84 84 0 8 0 nchpl 144 1730 0 90 61 0 61 61 0 8 0 uvmvnodes 72 1529 0 0 28 0 28 28 0 8 0 vnodes 200 1529 0 0 81 0 81 81 0 8 0 namei 1024 4286 0 4286 3 2 1 1 0 8 1 scxspl 192 4233 0 4233 8 7 1 6 0 8 1 plimitpl 152 14 0 7 1 0 1 1 0 8 0 sigapl 432 224 0 210 2 0 2 2 0 8 0 futexpl 56 404 0 403 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 104 2 0 0 1 0 1 1 0 8 0 pipepl 112 146 0 127 2 1 1 1 0 8 0 fdescpl 424 225 0 211 2 0 2 2 0 8 0 filepl 120 1076 0 980 4 0 4 4 0 8 1 lockfpl 104 10 0 10 2 1 1 1 0 8 1 lockfspl 48 5 0 5 2 1 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 66 0 59 1 0 1 1 0 8 0 zombiepl 144 211 0 210 3 2 1 1 0 8 0 processpl 864 239 0 210 4 0 4 4 0 8 0 procpl 632 267 0 231 4 0 4 4 0 8 0 sockpl 384 84 0 67 3 0 3 3 0 8 1 mcl8k 8192 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 9 0 9 3 2 1 1 0 8 1 mcl2k 2048 50429 0 50384 24 10 14 21 0 8 7 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 79878 0 79806 18 6 12 12 0 8 3 bufpl 256 5640 0 1199 278 0 278 278 0 8 0 anonpl 16 32186 0 21911 45 3 42 42 0 62 0 amapchunkpl 152 1096 0 1003 8 2 6 6 0 158 1 amappl16 192 745 0 188 29 0 29 29 0 8 0 amappl15 184 3 0 2 1 0 1 1 0 8 0 amappl14 176 56 0 51 1 0 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 19 0 14 2 1 1 1 0 8 0 amappl11 152 52 0 41 1 0 1 1 0 8 0 amappl10 144 68 0 66 2 1 1 1 0 8 0 amappl9 136 435 0 430 1 0 1 1 0 8 0 amappl8 128 137 0 121 1 0 1 1 0 8 0 amappl7 120 30 0 27 1 0 1 1 0 8 0 amappl6 112 55 0 48 1 0 1 1 0 8 0 amappl5 104 410 0 398 1 0 1 1 0 8 0 amappl4 96 438 0 412 1 0 1 1 0 8 0 amappl3 88 164 0 154 1 0 1 1 0 8 0 amappl2 80 986 0 907 4 2 2 3 0 8 0 amappl1 72 13685 0 13257 27 17 10 19 0 8 1 amappl 80 495 0 458 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 3 0 2 1 0 1 1 0 8 0 uaddrrnd 24 225 0 210 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 225 0 210 1 0 1 1 0 8 0 vmmpekpl 168 5818 0 5797 2 0 2 2 0 8 0 vmmpepl 168 33832 0 32129 130 20 110 110 0 357 35 vmsppl 272 224 0 210 2 0 2 2 0 8 1 pdppl 4096 456 0 420 6 0 6 6 0 8 1 pvpl 32 115353 0 102052 121 10 111 111 0 265 2 pmappl 200 224 0 210 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 438 0 22 12 0 12 12 0 8 0