The patch titled Subject: mm/memcg: avoid page count check for zone device has been added to the -mm tree. Its filename is mm-memcg-avoid-page-count-check-for-zone-device.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memcg-avoid-page-count-check-for-zone-device.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memcg-avoid-page-count-check-for-zone-device.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: Jérôme Glisse <jglisse@xxxxxxxxxx> Subject: mm/memcg: avoid page count check for zone device Fix for 4.14, zone device page always have an elevated refcount of one and thus page count sanity check in uncharge_page() is inappropriate for them. Link: http://lkml.kernel.org/r/20170914190011.5217-1-jglisse@xxxxxxxxxx Signed-off-by: Jérôme Glisse <jglisse@xxxxxxxxxx> Reported-by: Evgeny Baskakov <ebaskakov@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxxxx> Cc: Vladimir Davydov <vdavydov.dev@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN mm/memcontrol.c~mm-memcg-avoid-page-count-check-for-zone-device mm/memcontrol.c --- a/mm/memcontrol.c~mm-memcg-avoid-page-count-check-for-zone-device +++ a/mm/memcontrol.c @@ -5658,7 +5658,8 @@ static void uncharge_batch(const struct static void uncharge_page(struct page *page, struct uncharge_gather *ug) { VM_BUG_ON_PAGE(PageLRU(page), page); - VM_BUG_ON_PAGE(!PageHWPoison(page) && page_count(page), page); + VM_BUG_ON_PAGE(!PageHWPoison(page) && !is_zone_device_page(page) && + page_count(page), page); if (!page->mem_cgroup) return; _ Patches currently in -mm which might be from jglisse@xxxxxxxxxx are mm-memcg-avoid-page-count-check-for-zone-device.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html