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(ffffffff81f7c1c1,ffffffff81f2d0c8,c4,ffffffff81f41763) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800014951080,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800014951080,ffff800015a14130,ffff800015a141a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a14210) at syscall+0x511 Xsyscall(0,1,0,1,0,7f7ffffd90c4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9090, 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(ffffffff81f7c1c1,ffffffff81f2d0c8,c4,ffffffff81f41763) at __assert+0x2e sys/kern/subr_prf.c:159 unveil_destroy(ffff8000ffff66a0) at unveil_destroy+0x19f sys/kern/kern_unveil.c:196 exit1(ffff800014951080,0,1) at exit1+0x389 sys/kern/kern_exit.c:218 sys_exit(ffff800014951080,ffff800015a14130,ffff800015a141a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a14210) at syscall+0x511 Xsyscall(0,1,0,1,0,7f7ffffd90c4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd9090, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015a13f30 rbx 0xffff800015a13fe0 rdx 0x2 rcx 0 rax 0 r8 0xffff800015a13ef0 r9 0x1 r10 0 r11 0x879e1cd76f8e3455 r12 0x3000000008 r13 0xffff800015a13f40 r14 0x100 r15 0x1 rip 0xffffffff81eb0948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a13f20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=409449 stat=onproc flags process=1008 proc=2000 pri=50, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014950270,0xffff800014950028 process=0xffff8000ffff66a0 user=0xffff800015a0f000, vmspace=0xfffffd803f00cc60 estcpu=36, cpticks=25, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 86944 386522 7530 0 2 0x480 syz-executor.1 86944 284447 7530 0 3 0x4000080 rest syz-executor.1 2437 112885 1 0 3 0x100083 ttyin getty 31827 269125 0 0 3 0x14200 bored sosplice 7530 254965 77330 0 2 0x482 syz-executor.1 16278 254580 77330 0 2 0x482 syz-executor.0 77330 92722 95508 0 3 0x82 thrsleep syz-fuzzer 77330 147415 95508 0 3 0x4000082 thrsleep syz-fuzzer 77330 37264 95508 0 3 0x4000082 thrsleep syz-fuzzer 77330 255316 95508 0 3 0x4000082 kqread syz-fuzzer 77330 228942 95508 0 3 0x4000082 thrsleep syz-fuzzer 77330 168805 95508 0 3 0x4000082 thrsleep syz-fuzzer 77330 511112 95508 0 3 0x4000082 thrsleep syz-fuzzer 95508 321919 5141 0 3 0x10008a pause ksh 5141 339375 31772 0 3 0x92 select sshd 31772 244026 1 0 3 0x80 select sshd 87946 471409 68911 73 3 0x100090 kqread syslogd 68911 223460 1 0 3 0x100082 netio syslogd 64647 372624 1 77 3 0x100090 poll dhclient 49523 38479 1 0 3 0x80 poll dhclient 35636 345426 0 0 2 0x14200 zerothread 64326 412726 0 0 3 0x14200 aiodoned aiodoned 23657 417314 0 0 3 0x14200 syncer update 28345 93834 0 0 3 0x14200 cleaner cleaner 52121 89057 0 0 3 0x14200 reaper reaper 34022 165815 0 0 3 0x14200 pgdaemon pagedaemon 51537 127561 0 0 3 0x14200 bored crynlk 63916 446804 0 0 3 0x14200 bored crypto 35229 432558 0 0 3 0x40014200 acpi0 acpi0 85503 429754 0 0 3 0x14200 bored softnet 86028 189537 0 0 3 0x14200 bored systqmp 51797 210754 0 0 3 0x14200 bored systq 4344 155628 0 0 3 0x40014200 bored softclock 59116 347744 0 0 3 0x40014200 idle0 83818 174191 0 0 3 0x14200 bored smr 1 56530 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 9507 6356K 14546K 78643K 13988 0 0 pcb 23 9K 10K 78643K 1451 0 0 rtable 114 4K 4K 78643K 683 0 0 ifaddr 57 14K 15K 78643K 323 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 117 0 0 iov 0 0K 24K 78643K 360 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 76K 78643K 3609 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 36 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 140 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 3258 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 45 38K 54K 78643K 647 0 0 subproc 32 2K 2K 78643K 40 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 302 0 0 in_multi 33 2K 2K 78643K 136 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 414 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 8414 0 0 UVM aobj 104 6K 6K 78643K 113 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 122 0 0 NDP 11 0K 0K 78643K 82 0 0 temp 164 2715K 2843K 78643K 11675 0 0 kqueue 0 0K 0K 78643K 22 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 1241 0 1234 1 0 1 1 0 8 0 plimitpl 152 72 0 65 1 0 1 1 0 8 0 rtentry 112 52 0 7 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 452 0 448 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 62 0 62 10 9 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 220 0 0 14 0 14 14 0 8 0 art_table 32 221 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 138 0 128 1 0 1 1 0 8 0 shmpl 112 111 0 9 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7749 0 6306 47 0 47 47 0 8 0 ffsino 240 7749 0 6306 85 0 85 85 0 8 0 nchpl 144 12297 0 10661 61 0 61 61 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 36390 0 36390 2 1 1 1 0 8 1 scsiplug 64 2 0 2 1 0 1 1 0 8 1 scxspl 192 36887 0 36887 25 23 2 7 0 8 2 sigapl 432 3432 0 3418 2 0 2 2 0 8 0 futexpl 56 44700 0 44700 1 0 1 1 0 8 1 knotepl 112 535 0 516 1 0 1 1 0 8 0 kqueuepl 104 606 0 604 1 0 1 1 0 8 0 pipepl 112 1760 0 1741 4 3 1 2 0 8 0 fdescpl 424 3433 0 3419 2 0 2 2 0 8 0 filepl 120 19192 0 19097 6 2 4 5 0 8 0 lockfpl 104 1996 0 1995 2 1 1 1 0 8 0 lockfspl 48 807 0 806 2 1 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 50 0 40 1 0 1 1 0 8 0 ucredpl 96 4660 0 4653 1 0 1 1 0 8 0 zombiepl 144 3419 0 3418 2 1 1 1 0 8 0 processpl 840 3448 0 3418 4 0 4 4 0 8 0 procpl 600 7588 0 7551 4 0 4 4 0 8 0 sosppl 128 33 0 33 10 10 0 1 0 8 0 sockpl 384 2519 0 2502 4 1 3 3 0 8 1 mcl64k 65536 817 0 817 101 101 0 33 0 8 0 mcl16k 16384 7 0 7 5 4 1 1 0 8 1 mcl12k 12288 49 0 49 9 9 0 1 0 8 0 mcl9k 9216 47 0 47 12 11 1 1 0 8 1 mcl8k 8192 35 0 35 13 13 0 1 0 8 0 mcl4k 4096 115 0 115 7 6 1 1 0 8 1 mcl2k2 2112 21 0 21 13 12 1 1 0 8 1 mcl2k 2048 53066 0 53025 15 9 6 11 0 8 0 mtagpl 80 6 0 6 3 2 1 1 0 8 1 mbufpl 256 102433 0 102380 51 46 5 21 0 8 0 bufpl 256 14368 0 8742 352 0 352 352 0 8 0 anonpl 16 294587 0 285628 139 91 48 53 0 62 12 amapchunkpl 152 15012 0 14920 73 62 11 14 0 158 7 amappl16 192 17074 0 16594 101 76 25 35 0 8 0 amappl14 176 1474 0 1470 2 1 1 1 0 8 0 amappl12 160 14 0 13 1 0 1 1 0 8 0 amappl11 152 1848 0 1830 1 0 1 1 0 8 0 amappl10 144 65 0 62 1 0 1 1 0 8 0 amappl9 136 554 0 550 1 0 1 1 0 8 0 amappl8 128 138 0 122 1 0 1 1 0 8 0 amappl7 120 34 0 31 1 0 1 1 0 8 0 amappl6 112 1844 0 1836 1 0 1 1 0 8 0 amappl5 104 152 0 142 1 0 1 1 0 8 0 amappl4 96 3603 0 3579 1 0 1 1 0 8 0 amappl3 88 1710 0 1699 1 0 1 1 0 8 0 amappl2 80 26661 0 26587 4 2 2 3 0 8 0 amappl1 72 66675 0 66244 24 15 9 19 0 8 0 amappl 80 7843 0 7805 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 112 0 9 2 0 2 2 0 8 0 uaddrrnd 24 3433 0 3418 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3433 0 3418 1 0 1 1 0 8 0 vmmpekpl 168 21797 0 21775 2 0 2 2 0 8 0 vmmpepl 168 345632 0 344082 140 72 68 92 0 357 0 vmsppl 264 3432 0 3418 2 1 1 2 0 8 0 pdppl 4096 6873 0 6836 6 1 5 6 0 8 0 pvpl 32 974260 0 961735 434 212 222 233 0 265 120 pmappl 200 3432 0 3418 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 658 0 183 16 1 15 15 0 8 0