On Sat, Apr 02, 2016 at 06:37:44PM +0300, Konstantin Khlebnikov wrote:
> Khugepaged detects own VMAs by checking vm_file and vm_ops but this
> way it cannot distinguish private /dev/zero mappings from other special
> mappings like /dev/hpet which has no vm_ops and popultes PTEs in mmap.
> 
> This fixes false-positive VM_BUG_ON and prevents installing THP where
> they are not expected.
> 
> Signed-off-by: Konstantin Khlebnikov <[email protected]>
> Reported-by: Dmitry Vyukov <[email protected]>
> Link: 
> http://lkml.kernel.org/r/cact4y+zmuzmv5cjsfoexviwqdabagt7t+stkftqan9ydtge...@mail.gmail.com
> Fixes: 78f11a255749 ("mm: thp: fix /dev/zero MAP_PRIVATE and vm_flags 
> cleanups")
> Cc: stable <[email protected]>

Looks good to me.

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

-- 
 Kirill A. Shutemov

Reply via email to