[PATCH] mm: Clear PG_active on MADV_PAGEOUT

From: Minchan Kim
Date: Fri Aug 02 2019 - 15:54:02 EST


shrink_page_list expects every pages as argument should be no active
LRU pages so we need to clear PG_active.

Reported-by: syzbot+8e6326965378936537c3@xxxxxxxxxxxxxxxxxxxxxxxxx
Fixes: 06a833a1167e ("mm: introduce MADV_PAGEOUT")
Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx>
---
mm/vmscan.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 47aa2158cfac2..e2a8d3f5bbe48 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2181,6 +2181,7 @@ unsigned long reclaim_pages(struct list_head *page_list)
}

if (nid == page_to_nid(page)) {
+ ClearPageActive(page);
list_move(&page->lru, &node_page_list);
continue;
}
--
2.22.0.770.g0f2c4a37fd-goog