On Mon, Oct 30, 2017 at 10:46:36AM -0400, Zi Yan wrote:
> From: Zi Yan <[email protected]>
> 
> We need to deposit pre-allocated PTE page table when a PMD migration
> entry is copied in copy_huge_pmd(). Otherwise, we will leak the
> pre-allocated page and cause a NULL pointer dereference later
> in zap_huge_pmd().
> 
> The missing counters during PMD migration entry copy process are added
> as well.
> 
> The bug report is here: https://lkml.org/lkml/2017/10/29/214
> 
> Fixes: 84c3fc4e9c563 ("mm: thp: check pmd migration entry in common path")
> Reported-by: Fengguang Wu <[email protected]>
> Signed-off-by: Zi Yan <[email protected]>
> Cc: Kirill A. Shutemov <[email protected]>

Acked-by: Kirill A. Shutemov <[email protected]>

-- 
 Kirill A. Shutemov

Reply via email to