The patch titled
     Subject: mm/balloon_compaction: ignore anonymous pages
has been added to the -mm tree.  Its filename is
     mm-balloon_compaction-ignore-anonymous-pages.patch

This patch should soon appear at
    
http://ozlabs.org/~akpm/mmots/broken-out/mm-balloon_compaction-ignore-anonymous-pages.patch
and later at
    
http://ozlabs.org/~akpm/mmotm/broken-out/mm-balloon_compaction-ignore-anonymous-pages.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Konstantin Khlebnikov <[email protected]>
Subject: mm/balloon_compaction: ignore anonymous pages

Sasha Levin reported KASAN splash inside isolate_migratepages_range(). 
Problem is in function __is_movable_balloon_page() which tests
AS_BALLOON_MAP in page->mapping->flags.  This function has no protection
against anonymous pages.  As result it tried to check address space flags
in inside anon-vma.

See http://lkml.kernel.org/p/[email protected].

Signed-off-by: Konstantin Khlebnikov <[email protected]>
Reported-by: Sasha Levin <[email protected]>
Acked-by: Rafael Aquini <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: <[email protected]>    [v3.8+]
Signed-off-by: Andrew Morton <[email protected]>
---

 include/linux/balloon_compaction.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
include/linux/balloon_compaction.h~mm-balloon_compaction-ignore-anonymous-pages 
include/linux/balloon_compaction.h
--- 
a/include/linux/balloon_compaction.h~mm-balloon_compaction-ignore-anonymous-pages
+++ a/include/linux/balloon_compaction.h
@@ -128,7 +128,7 @@ static inline bool page_flags_cleared(st
 static inline bool __is_movable_balloon_page(struct page *page)
 {
        struct address_space *mapping = page->mapping;
-       return mapping_balloon(mapping);
+       return !PageAnon(page) && mapping_balloon(mapping);
 }
 
 /*
_

Patches currently in -mm which might be from [email protected] are

mm-balloon_compaction-ignore-anonymous-pages.patch
mm-balloon_compaction-keep-ballooned-pages-away-from-normal-migration-path.patch
mm-balloon_compaction-isolate-balloon-pages-without-lru_lock.patch
mm-introduce-common-page-state-for-ballooned-memory.patch
mm-balloon_compaction-use-common-page-ballooning.patch
mm-balloon_compaction-general-cleanup.patch

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to