panic: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bd0f8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83076404,ffffffff8304895b,bc,ffffffff82ffb8e3) at __assert+0x29 unveil_destroy(ffff8000ffff7378) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376191d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376191d8,ffff80002a49d690,ffff80002a49d5e0) at sys_exit+0x1a syscall(ffff80002a49d690) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x752f7803fb20, 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 *cpu0: kernel diagnostic assertion "ps->ps_uvncount == 0" failed: file "/syzkaller/managers/main/kernel/sys/kern/kern_unveil.c", line 188 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bd0f8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83076404,ffffffff8304895b,bc,ffffffff82ffb8e3) at __assert+0x29 unveil_destroy(ffff8000ffff7378) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376191d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376191d8,ffff80002a49d690,ffff80002a49d5e0) at sys_exit+0x1a syscall(ffff80002a49d690) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x752f7803fb20, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a49d3e0 rbx 0xffff8000ffff7378 rdx 0 rcx 0 rax 0xffff8000376191d8 r8 0 r9 0x8080808080808080 r10 0xc48c8092a52b192d r11 0x3062cb8346c15608 r12 0 r13 0x3 r14 0 r15 0x1 rip 0xffffffff822483c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a49d3d0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=503898 pid=5740 tcnt=0 stat=onproc flags process=1001008 proc=2000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000376191d8 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4b0298,0xffff80002a4b07b8 process=0xffff8000ffff7378 user=0xffff80002a498000, vmspace=0xfffffd80702abb08 estcpu=36, cpticks=24, pctcpu=0.23, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 59886 467885 56783 0 2 0 syz-executor 59886 343937 56783 0 3 0x4000080 fsleep syz-executor 18798 523007 39920 0 2 0 syz-executor 18798 505362 39920 0 3 0x4000080 fsleep syz-executor 18798 194540 39920 0 2 0x4000000 syz-executor 56819 81189 84128 0 2 0 syz-executor 56819 282411 84128 0 2 0x4000000 syz-executor 56819 199314 84128 0 3 0x4000080 fsleep syz-executor 56819 141363 84128 0 3 0x4000080 fsleep syz-executor 22874 449130 87656 0 2 0x82000 syz-executor 22874 247578 87656 0 2 0x4082000 syz-executor 22874 270240 87656 0 3 0x4002000 suspend syz-executor 22874 233067 87656 0 2 0x4082000 syz-executor 73126 517297 79645 0 2 0x1 syz-executor 73126 508865 79645 0 3 0x4000080 fsleep syz-executor 48786 217822 12927 0 2 0x1 syz-executor 48786 229966 12927 0 3 0x4000080 kqread syz-executor 48786 212365 12927 0 3 0x4000080 fsleep syz-executor 48786 23913 12927 0 3 0x4000080 fsleep syz-executor 84076 461093 80715 0 2 0x1 syz-executor 84076 230426 80715 0 3 0x4000080 fsleep syz-executor 84076 325317 80715 0 3 0x4000080 fsleep syz-executor 56273 368252 1 0 3 0x100083 ttyin getty 80715 376825 74970 0 2 0x482 syz-executor 87656 161050 74970 0 2 0x482 syz-executor 17983 138718 0 0 3 0x14280 nfsidl nfsio 26083 277898 0 0 3 0x14280 nfsidl nfsio 80738 410466 0 0 3 0x14280 nfsidl nfsio 71318 167595 0 0 3 0x14280 nfsidl nfsio 36888 314545 0 0 3 0x14280 nfsidl nfsio 70234 517036 0 0 3 0x14280 nfsidl nfsio 87193 100063 0 0 3 0x14280 nfsidl nfsio 3449 280963 0 0 3 0x14280 nfsidl nfsio 63987 415356 0 0 3 0x14280 nfsidl nfsio 11201 512921 0 0 3 0x14280 nfsidl nfsio 40073 132009 0 0 3 0x14280 nfsidl nfsio 9017 110117 0 0 3 0x14280 nfsidl nfsio 7424 204053 0 0 3 0x14280 nfsidl nfsio 9324 193318 0 0 3 0x14280 nfsidl nfsio 30148 145370 0 0 3 0x14280 nfsidl nfsio 71605 484925 0 0 3 0x14280 nfsidl nfsio 90357 162460 0 0 3 0x14280 nfsidl nfsio 3628 395973 0 0 3 0x14280 nfsidl nfsio 96812 157944 0 0 3 0x14280 nfsidl nfsio 53784 40380 0 0 3 0x14280 nfsidl nfsio 39920 280456 74970 0 2 0x482 syz-executor 84128 176903 74970 0 2 0x482 syz-executor 56783 176930 74970 0 2 0x482 syz-executor 427 341077 0 0 3 0x14200 bored sosplice 79645 115986 74970 0 2 0x482 syz-executor 53785 27078 74970 0 2 0x482 syz-executor 12927 470738 74970 0 2 0x482 syz-executor 74970 464513 8920 0 3 0x82 kqread syz-executor 8920 117527 38146 0 3 0x10008a sigsusp ksh 38146 154376 69300 0 3 0x98 kqread sshd-session 69300 417594 84304 0 3 0x92 kqread sshd-session 84304 46644 1 0 3 0x88 kqread sshd 51629 173992 33175 73 3 0x1100090 kqread syslogd 33175 516097 1 0 3 0x100082 sbwait syslogd 49260 260793 1 0 3 0x100080 kqread resolvd 92808 332140 50517 77 3 0x100092 kqread dhcpleased 66141 455100 50517 77 3 0x100092 kqread dhcpleased 50517 99465 1 0 3 0x80 kqread dhcpleased 45214 81122 0 0 3 0x14200 bored smr 96391 444902 0 0 2 0x14200 zerothread 28609 64634 0 0 3 0x14200 aiodoned aiodoned 41405 472114 0 0 3 0x14200 syncer update 77947 72017 0 0 3 0x14200 cleaner cleaner 27669 6423 0 0 2 0x14200 reaper 75089 90343 0 0 3 0x14200 pgdaemon pagedaemon 69656 342487 0 0 3 0x14200 bored viomb 24869 28277 0 0 3 0x40014200 acpi0 acpi0 27877 449046 0 0 3 0x14200 bored softnet3 65207 344364 0 0 3 0x14200 bored softnet2 35270 195881 0 0 3 0x14200 bored softnet1 64533 298220 0 0 3 0x14200 bored softnet0 38427 452564 0 0 3 0x14200 bored systqmp 4227 125898 0 0 3 0x14200 bored systq 58378 376789 0 0 2 0x40014200 softclock 25271 242685 0 0 3 0x40014200 idle0 1 11940 0 0 3 0x80082 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 devbuf 10209 11122K 11639K 166960K 14367 0 pcb 17 20K 22K 166960K 696 0 rtable 135 7K 9K 166960K 1126 0 pf 37 14K 271K 166960K 254 0 ifaddr 27 4K 7K 166960K 106 0 ifgroup 46 2K 2K 166960K 136 0 sysctl 4 1K 5K 166960K 6 0 counters 29 17K 17K 166960K 56 0 ioctlops 0 0K 4K 166960K 534 0 iov 0 0K 25K 166960K 274 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1548 97K 98K 166960K 3486 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 10K 166960K 43 0 VM map 2 1K 1K 166960K 2 0 sem 25 21K 21K 166960K 273 0 dirhash 12 2K 2K 166960K 60 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 2207 0 sigio 0 0K 0K 166960K 125 0 proc 64 75K 116K 166960K 816 0 subproc 104 6K 6K 166960K 182 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 645 0 in_multi 44 3K 7K 166960K 256 0 ether_multi 1 0K 0K 166960K 17 0 mrt 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 724 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 243 72K 88K 166960K 21863 0 UVM aobj 65 7K 8K 166960K 73 0 pinsyscall 39 78K 98K 166960K 3403 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 95 0 NDP 10 0K 2K 166960K 74 0 temp 77 6820K 6948K 166960K 75678 0 kqueue 15 24K 30K 166960K 408 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 214 0 211 2 0 2 2 0 8 1 rtentry 112 419 0 368 4 0 4 4 0 8 0 unpcb 144 2249 0 2232 14 5 9 9 0 8 8 syncache 336 8 0 8 2 1 1 1 0 8 1 tcpqe 32 3 0 3 2 1 1 1 0 8 1 tcpcb 808 773 0 766 14 6 8 8 0 8 7 arp 88 107 0 91 1 0 1 1 0 8 0 ipq 40 8 0 8 1 0 1 1 0 8 1 ipqe 40 100 0 100 1 0 1 1 0 8 1 inpcb 336 3170 0 3159 23 13 10 13 0 8 8 nd6 104 45 0 38 1 0 1 1 0 8 0 pkpcb 40 27 0 27 2 1 1 1 0 8 1 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1072 12 0 12 2 1 1 1 0 8 1 pfstscr 40 6 0 6 2 1 1 1 0 8 1 pfrktable 1344 5 0 1 1 0 1 1 0 8 0 pfanchor 1288 7 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 85 0 80 1 0 1 1 0 8 0 pfstate 344 45 0 42 1 0 1 1 0 8 0 pfrule 1344 25 0 19 1 0 1 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1003 0 760 30 5 25 29 0 8 1 art_table 32 1006 0 760 4 0 4 4 0 8 0 art_node 16 414 0 369 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 264 0 241 1 0 1 1 0 8 0 shmpl 112 70 0 8 2 0 2 2 0 8 0 dirhash 1024 50 0 33 3 0 3 3 0 8 0 dino2pl 256 5353 0 3853 95 0 95 95 0 8 0 ffsino 240 5353 0 3853 90 1 89 90 0 8 0 nchpl 144 8610 0 8054 63 40 23 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 30934 0 30933 4 2 2 2 0 8 1 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 74 0 54 2 0 2 2 0 8 0 scsiplug 72 16 0 16 2 1 1 1 0 8 1 scxspl 216 24754 0 24754 10 7 3 8 1 8 3 plimitpl 152 529 0 511 1 0 1 1 0 8 0 sigapl 424 2502 0 2435 8 0 8 8 0 8 0 futexpl 64 32074 0 32064 1 0 1 1 0 8 0 knotepl 120 84084 0 84032 39 27 12 17 0 8 8 kqueuepl 184 612 0 600 3 2 1 3 0 8 0 pipepl 288 596 0 569 9 4 5 7 0 8 2 fdescpl 432 2462 0 2433 5 1 4 5 0 8 0 filepl 120 19028 0 18771 19 4 15 15 0 8 4 lockfpl 104 665 0 663 1 0 1 1 0 8 0 lockfspl 48 253 0 251 1 0 1 1 0 8 0 sessionpl 144 33 0 25 1 0 1 1 0 8 0 pgrppl 48 62 0 46 1 0 1 1 0 8 0 ucredpl 104 3394 0 3382 1 0 1 1 0 8 0 zombiepl 144 3000 0 2999 1 0 1 1 0 8 0 processpl 1096 2502 0 2435 5 0 5 5 0 8 0 procpl 648 5743 0 5660 9 0 9 9 0 8 1 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 504 5817 0 5787 98 86 12 30 0 8 7 mcl64k 65536 37 0 37 2 1 1 1 0 8 1 mcl16k 16384 6 0 6 2 1 1 1 0 8 1 mcl12k 12288 4 0 4 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 1 1 0 1 0 8 0 mcl8k 8192 20 0 20 2 1 1 1 0 8 1 mcl4k 4096 5537 0 5485 16 8 8 16 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 2695 0 2690 5 1 4 4 0 8 2 mtagpl 96 118 0 63 2 0 2 2 0 8 0 mbufpl 256 29726 0 29572 85 61 24 75 0 8 8 bufpl 280 8845 0 2598 447 0 447 447 0 8 0 anonpl 24 363669 0 360296 89 43 46 69 0 187 19 amapchunkpl 152 74156 0 73615 53 18 35 38 0 158 13 amappl16 200 8749 0 8719 55 43 12 27 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 131 0 121 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 3171 0 3140 3 1 2 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 102 0 102 1 1 0 1 0 8 0 amappl8 136 28 0 27 1 0 1 1 0 8 0 amappl7 128 129 0 119 1 0 1 1 0 8 0 amappl6 120 219 0 217 1 0 1 1 0 8 0 amappl5 112 162 0 153 1 0 1 1 0 8 0 amappl4 104 316 0 300 1 0 1 1 0 8 0 amappl3 96 13455 0 13352 3 0 3 3 0 8 0 amappl2 88 2783 0 2702 2 0 2 2 0 8 0 amappl1 80 14255 0 13734 13 1 12 13 0 8 0 amappl 88 21292 0 21103 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma8192 8192 2 0 2 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 2 0 2 2 1 1 1 0 8 1 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma256 256 9 0 9 2 1 1 1 0 8 1 dma128 128 260 0 260 2 1 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 72 0 8 2 0 2 2 0 8 0 uaddrrnd 24 2462 0 2432 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2462 0 2432 1 0 1 1 0 8 0 vmmpekpl 168 19434 0 19380 4 0 4 4 0 8 1 vmmpepl 168 153627 0 151806 107 17 90 96 0 357 10 vmsppl 352 2461 0 2432 4 1 3 4 0 8 0 rwobjpl 24 46897 0 40027 43 0 43 43 0 8 0 pdppl 4096 4930 0 4864 128 62 66 82 0 8 0 pvpl 32 1002768 0 993872 170 57 113 141 0 265 28 pmappl 216 2461 0 2432 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 619 0 258 13 2 11 13 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bd0f8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83076404,ffffffff8304895b,bc,ffffffff82ffb8e3) at __assert+0x29 unveil_destroy(ffff8000ffff7378) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376191d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376191d8,ffff80002a49d690,ffff80002a49d5e0) at sys_exit+0x1a syscall(ffff80002a49d690) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x752f7803fb20, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830bd0f8) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff83076404,ffffffff8304895b,bc,ffffffff82ffb8e3) at __assert+0x29 unveil_destroy(ffff8000ffff7378) at unveil_destroy+0x1dd sys/kern/kern_unveil.c:188 exit1(ffff8000376191d8,0,0,1) at exit1+0x60f sys/kern/kern_exit.c:233 sys_exit(ffff8000376191d8,ffff80002a49d690,ffff80002a49d5e0) at sys_exit+0x1a syscall(ffff80002a49d690) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x752f7803fb20, count: -8