From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f175.google.com (mail-pf0-f175.google.com [209.85.192.175]) by kanga.kvack.org (Postfix) with ESMTP id ADAA46B0268 for ; Mon, 4 Apr 2016 07:25:09 -0400 (EDT) Received: by mail-pf0-f175.google.com with SMTP id n1so37981542pfn.2 for ; Mon, 04 Apr 2016 04:25:09 -0700 (PDT) Received: from e28smtp07.in.ibm.com (e28smtp07.in.ibm.com. [125.16.236.7]) by mx.google.com with ESMTPS id b90si21073443pfd.128.2016.04.04.04.25.08 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 04 Apr 2016 04:25:08 -0700 (PDT) Received: from localhost by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Apr 2016 16:55:06 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay05.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u34BO9kx59768996 for ; Mon, 4 Apr 2016 16:54:09 +0530 Received: from d28av05.in.ibm.com (localhost [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u34BOtV3020120 for ; Mon, 4 Apr 2016 16:54:56 +0530 Date: Mon, 4 Apr 2016 21:24:33 +1000 From: Gavin Shan Subject: Re: [RFC] mm: Fix memory corruption caused by deferred page initialization Message-ID: <20160404112433.GA9567@gwshan> Reply-To: Gavin Shan References: <1458921929-15264-1-git-send-email-gwshan@linux.vnet.ibm.com> <3qXFh60DRNz9sDH@ozlabs.org> <20160326133708.GA382@gwshan> <20160327134827.GA24644@gwshan> <20160331022734.GA12552@gwshan> <20160404083939.GC21128@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160404083939.GC21128@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Gavin Shan , Michael Ellerman , linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, zhlcindy@linux.vnet.ibm.com On Mon, Apr 04, 2016 at 09:39:39AM +0100, Mel Gorman wrote: >On Thu, Mar 31, 2016 at 01:27:34PM +1100, Gavin Shan wrote: >> >So the issue is only existing when CONFIG_NO_BOOTMEM=n. The alternative fix would >> >be similar to what we have on !CONFIG_NO_BOOTMEM: In early stage, all page structs >> >for bootmem reserved pages are initialized and mark them with PG_reserved. I'm >> >not sure it's worthy to fix it as we won't support bootmem as Michael mentioned. >> > >> >> Mel, could you please confirm if we need a fix on !CONFIG_NO_BOOTMEM? If we need, >> I'll respin and send a patch for review. >> > >Given that CONFIG_NO_BOOTMEM is not supported and bootmem is meant to be >slowly retiring, I would suggest instead making deferred memory init >depend on NO_BOOTMEM. > Thanks for confirm, Mel. It would be the best strategy to have simplest fix for this issue. I'll send a followup patch to address it. Thanks, Gavin >-- >Mel Gorman >SUSE Labs > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org