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(ffffffff81f7eab5,ffffffff81f2c8cb,c4,ffffffff81f40cc0) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff84b8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000ffff84b8,ffff800015a0f060,ffff800015a0f0d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a0f140) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd03d4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd03a0, 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(ffffffff81f7eab5,ffffffff81f2c8cb,c4,ffffffff81f40cc0) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff7078) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff8000ffff84b8,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff8000ffff84b8,ffff800015a0f060,ffff800015a0f0d0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a0f140) at syscall+0x511 Xsyscall(6,1,0,1,0,7f7ffffd03d4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd03a0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015a0ee60 rbx 0xffff800015a0ef10 rdx 0x2 rcx 0 rax 0 r8 0xffff800015a0ee20 r9 0x1 r10 0 r11 0x44b5184e30d188dd r12 0x3000000008 r13 0xffff800015a0ee70 r14 0x100 r15 0x1 rip 0xffffffff81585c18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a0ee50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=245756 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4718,0xffffffff822d06f0 process=0xffff8000ffff7078 user=0xffff800015a0a000, vmspace=0xfffffd803f00ca50 estcpu=36, cpticks=27, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 13190 117905 1 0 3 0x100083 ttyin getty 15374 445029 0 0 3 0x14200 bored sosplice 30246 32141 1623 0 3 0x82 nanosleep syz-executor.0 11510 281435 1623 0 3 0x82 piperd syz-executor.1 1623 164203 69688 0 3 0x82 thrsleep syz-fuzzer 1623 94193 69688 0 3 0x4000082 thrsleep syz-fuzzer 1623 285016 69688 0 3 0x4000082 thrsleep syz-fuzzer 1623 10549 69688 0 3 0x4000082 thrsleep syz-fuzzer 1623 522991 69688 0 3 0x4000082 thrsleep syz-fuzzer 1623 306944 69688 0 3 0x4000082 kqread syz-fuzzer 1623 185773 69688 0 3 0x4000082 thrsleep syz-fuzzer 69688 503986 158 0 3 0x10008a pause ksh 158 96052 84675 0 3 0x92 select sshd 84675 265038 1 0 3 0x80 select sshd 59338 159630 32364 73 3 0x100090 kqread syslogd 32364 8201 1 0 3 0x100082 netio syslogd 59957 471864 1 77 3 0x100090 poll dhclient 73296 412357 1 0 3 0x80 poll dhclient 75796 426145 0 0 3 0x14200 pgzero zerothread 91451 121124 0 0 3 0x14200 aiodoned aiodoned 39319 423387 0 0 3 0x14200 syncer update 88222 186111 0 0 3 0x14200 cleaner cleaner 71570 26193 0 0 3 0x14200 reaper reaper 84728 100608 0 0 3 0x14200 pgdaemon pagedaemon 12087 89808 0 0 3 0x14200 bored crynlk 92094 77145 0 0 3 0x14200 bored crypto 40491 289985 0 0 3 0x40014200 acpi0 acpi0 85275 51417 0 0 3 0x14200 bored softnet 15446 280061 0 0 3 0x14200 bored systqmp 39068 110084 0 0 3 0x14200 bored systq 69437 171160 0 0 3 0x40014200 bored softclock 76519 412118 0 0 3 0x40014200 idle0 59033 413887 0 0 3 0x14200 bored smr 1 427939 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 9480 6349K 6861K 78643K 12820 0 0 pcb 23 9K 10K 78643K 565 0 0 rtable 114 4K 4K 78643K 413 0 0 ifaddr 49 12K 13K 78643K 158 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 56 0 0 iov 0 0K 24K 78643K 126 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 2140 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 9 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 66 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 4 9K 25K 78643K 1058 0 0 sigio 0 0K 0K 78643K 14 0 0 proc 44 38K 54K 78643K 387 0 0 subproc 32 2K 2K 78643K 36 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 71 0 0 in_multi 33 2K 2K 78643K 66 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 255 0 0 pfkey data 0 0K 4K 78643K 2 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 29K 78643K 3326 0 0 UVM aobj 45 2K 2K 78643K 51 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 35 0 0 NDP 9 0K 0K 78643K 42 0 0 temp 152 2715K 2842K 78643K 6230 0 0 kqueue 0 0K 0K 78643K 5 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 472 0 465 1 0 1 1 0 8 0 plimitpl 152 42 0 35 1 0 1 1 0 8 0 rtentry 112 49 0 3 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 148 0 144 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 25 0 25 4 3 1 1 0 8 1 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 46 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 6 1 0 1 1 0 8 0 semapl 112 64 0 54 1 0 1 1 0 8 0 shmpl 112 49 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3153 0 1740 46 0 46 46 0 8 0 ffsino 240 3153 0 1740 84 0 84 84 0 8 0 nchpl 144 4807 0 3174 61 0 61 61 0 8 0 uvmvnodes 72 3742 0 0 69 0 69 69 0 8 0 vnodes 200 3742 0 0 197 0 197 197 0 8 0 namei 1024 14082 0 14082 2 1 1 1 0 8 1 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 13934 0 13934 10 7 3 5 0 8 3 sigapl 432 1230 0 1217 2 0 2 2 0 8 0 futexpl 56 16172 0 16172 1 0 1 1 0 8 1 knotepl 112 266 0 247 1 0 1 1 0 8 0 kqueuepl 104 262 0 260 1 0 1 1 0 8 0 pipepl 112 720 0 701 5 3 2 2 0 8 1 fdescpl 424 1231 0 1218 2 0 2 2 0 8 0 filepl 120 7281 0 7187 5 1 4 5 0 8 1 lockfpl 104 317 0 317 2 1 1 1 0 8 1 lockfspl 48 109 0 109 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 30 0 20 1 0 1 1 0 8 0 ucredpl 96 1559 0 1552 1 0 1 1 0 8 0 zombiepl 144 1218 0 1217 2 1 1 1 0 8 0 processpl 840 1246 0 1217 4 0 4 4 0 8 0 procpl 600 2588 0 2553 4 0 4 4 0 8 1 sosppl 128 18 0 18 5 4 1 1 0 8 1 sockpl 384 958 0 941 3 0 3 3 0 8 1 mcl64k 65536 33 0 33 5 4 1 1 0 8 1 mcl16k 16384 3 0 3 3 3 0 1 0 8 0 mcl12k 12288 20 0 20 5 4 1 1 0 8 1 mcl9k 9216 15 0 15 5 4 1 1 0 8 1 mcl8k 8192 13 0 13 4 3 1 1 0 8 1 mcl4k 4096 54 0 54 3 2 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 55531 0 55489 13 7 6 10 0 8 0 mtagpl 80 6 0 4 3 2 1 1 0 8 0 mbufpl 256 95638 0 95548 12 4 8 9 0 8 0 bufpl 256 8076 0 3598 280 0 280 280 0 8 0 anonpl 16 116521 0 106416 59 15 44 58 0 62 3 amapchunkpl 152 4867 0 4770 10 5 5 7 0 158 0 amappl16 192 6384 0 5834 55 25 30 40 0 8 2 amappl14 176 567 0 563 2 1 1 1 0 8 0 amappl13 168 502 0 500 2 1 1 1 0 8 0 amappl12 160 9 0 8 2 1 1 1 0 8 0 amappl11 152 47 0 33 1 0 1 1 0 8 0 amappl10 144 63 0 62 1 0 1 1 0 8 0 amappl9 136 531 0 527 1 0 1 1 0 8 0 amappl8 128 142 0 124 1 0 1 1 0 8 0 amappl7 120 32 0 28 1 0 1 1 0 8 0 amappl6 112 52 0 46 1 0 1 1 0 8 0 amappl5 104 172 0 161 1 0 1 1 0 8 0 amappl4 96 1361 0 1338 1 0 1 1 0 8 0 amappl3 88 732 0 721 1 0 1 1 0 8 0 amappl2 80 9067 0 9002 4 2 2 3 0 8 0 amappl1 72 30716 0 30298 25 16 9 19 0 8 0 amappl 80 2830 0 2791 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 50 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1231 0 1217 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1231 0 1217 1 0 1 1 0 8 0 vmmpekpl 168 11584 0 11562 2 0 2 2 0 8 0 vmmpepl 168 129799 0 128265 125 53 72 99 0 357 1 vmsppl 264 1230 0 1217 2 1 1 2 0 8 0 pdppl 4096 2469 0 2434 6 1 5 6 0 8 0 pvpl 32 339846 0 326318 151 28 123 144 0 265 13 pmappl 200 1230 0 1217 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 431 0 27 12 0 12 12 0 8 0