Re: [PATCH] mm/shmem: Zero out unused vma fields in shmem_pseudo_vma_init()

From: Hugh Dickins
Date: Thu May 31 2018 - 19:37:32 EST


On Thu, 31 May 2018, Andrew Morton wrote:
> On Thu, 31 May 2018 16:56:02 +0300 "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> wrote:
>
> > shmem/tmpfs uses pseudo vma to allocate page with correct NUMA policy.
> >
> > The pseudo vma doesn't have vm_page_prot set. We are going to encode
> > encryption KeyID in vm_page_prot. Having garbage there causes problems.
> >
> > Zero out all unused fields in the pseudo vma.
> >
>
> So there are no known problems in the current mainline kernel?

Correct - if we limit ourselves to the area of the shmem pseudo-vma :)

Hugh