Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031193Ab2B2PbP (ORCPT ); Wed, 29 Feb 2012 10:31:15 -0500 Received: from smtp102.prem.mail.ac4.yahoo.com ([76.13.13.41]:37271 "HELO smtp102.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1031111Ab2B2PbO (ORCPT ); Wed, 29 Feb 2012 10:31:14 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Feb 2012 10:31:13 EST X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: s4L0.CwVM1mcRpZhx1Wx8wmiTXsI5BpOnA9aAL4bJ5IeAAq 9HAjMh7TJgwruOokOoBkqfURk9DpMan8BiLVX4CCCl9ArBHKnOu6S0dL_kXH Ru.RFBgRGAqQij3jG1vhla6hPURrj4PUyjIPgptC9eYFV_dqbEY0zVA6c2N1 D5Bstd5SfLhcMwxSKnLLfobPbRkIoyBPP2FAHwpSm6_KJsZMHCGECXnYjkvg cNpTyvGe2.QxTkKdo46Eutl5Ynvfk1B1EAI8VEwXT4OtHQv9TWLh9pOTOsuR Uh.B18ep3SKK1lD7blpg5dOmmsKhBwWRCZWqnIduSUNUXGHa8.fD89mNQbkE _WKWPL7S0mZym5IMaKAXNAsQB8O7_Gqruk4.7SydjmqNRO5SN_vnsM.CdI59 WLw-- X-Yahoo-SMTP: _Dag8S.swBC1p4FJKLCXbs8NQzyse1SYSgnAbY0- Date: Wed, 29 Feb 2012 09:24:30 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Namhyung Kim cc: Pekka Enberg , Matt Mackall , Namhyung Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] slub: set PG_slab on all of slab pages In-Reply-To: <1330505674-31610-1-git-send-email-namhyung.kim@lge.com> Message-ID: References: <1330505674-31610-1-git-send-email-namhyung.kim@lge.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 674 Lines: 17 On Wed, 29 Feb 2012, Namhyung Kim wrote: > Unlike SLAB, SLUB doesn't set PG_slab on tail pages, so if a user would > call free_pages() incorrectly on a object in a tail page, she will get > confused with the undefined result. Setting the flag would help her by > emitting a warning on bad_page() in such a case. NAK You cannot free a tail page of a compound higher order page independently. You must free the whole compound. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/