From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750893AbdAXL12 (ORCPT ); Tue, 24 Jan 2017 06:27:28 -0500 Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:33356 "EHLO outbound-smtp04.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbdAXL10 (ORCPT ); Tue, 24 Jan 2017 06:27:26 -0500 Date: Tue, 24 Jan 2017 11:27:23 +0000 From: Mel Gorman To: Andrew Morton Cc: Linux Kernel , Linux-MM , Hillf Danton , Vlastimil Babka , Jesper Dangaard Brouer Subject: [PATCH] mm, page_alloc: Split buffered_rmqueue -fix Message-ID: <20170124112723.mshmgwq2ihxku2um@techsingularity.net> References: <20170123153906.3122-1-mgorman@techsingularity.net> <20170123153906.3122-2-mgorman@techsingularity.net> <8808c88d-3404-a3b5-b395-06936bbaa2ed@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <8808c88d-3404-a3b5-b395-06936bbaa2ed@suse.cz> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vlastimil Babka pointed out that a failed per-cpu refill on a kernel with CONFIG_DEBUG_VM may blow up on a VM_BUG_ON_PAGE. This patch is a fix to the mmotm patch mm-page_alloc-split-buffered_rmqueue.patch Signed-off-by: Mel Gorman diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c075831c3a1a..5a04636ccc05 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2697,7 +2697,7 @@ struct page *rmqueue(struct zone *preferred_zone, local_irq_restore(flags); out: - VM_BUG_ON_PAGE(bad_range(zone, page), page); + VM_BUG_ON_PAGE(page && bad_range(zone, page), page); return page; failed: