Re: [PATCH v2] powerpc: kvm: powerpc: fix information leak to userland

2010-10-30 Thread Alexander Graf
On 30.10.2010, at 11:55, Vasiliy Kulikov wrote: > Structure kvm_ppc_pvinfo is copied to userland with "flags" and "pad" > fields unitialized. It leads to leaking of contents of kernel stack > memory. We have to initialize them to zero. > > In patch v1 Jan Kiszka suggested to fill reserved fiel

[PATCH v2] powerpc: kvm: powerpc: fix information leak to userland

2010-10-30 Thread Vasiliy Kulikov
Structure kvm_ppc_pvinfo is copied to userland with "flags" and "pad" fields unitialized. It leads to leaking of contents of kernel stack memory. We have to initialize them to zero. In patch v1 Jan Kiszka suggested to fill reserved fields with zeros instead of memset'ting the whole struct. It m