From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752750AbaIJOW3 (ORCPT ); Wed, 10 Sep 2014 10:22:29 -0400 Received: from qmta09.emeryville.ca.mail.comcast.net ([76.96.30.96]:52877 "EHLO qmta09.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbaIJOW0 (ORCPT ); Wed, 10 Sep 2014 10:22:26 -0400 Date: Wed, 10 Sep 2014 09:22:23 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Jiri Kosina cc: Andrew Morton , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Dan Carpenter , "Theodore Ts'o" Subject: Re: [PATCH] mm/sl[aou]b: make kfree() aware of error pointers In-Reply-To: Message-ID: References: <20140909162114.44b3e98cf925f125e84a8a06@linux-foundation.org> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Sep 2014, Jiri Kosina wrote: > We obviously don't, as such code will be causing explosions. This is meant > as a prevention of problems such as the one that has just been fixed in > ext4. So we actually think that it is okay to pass an error pointer to kfree and silently ignore that? Are we thinking about just accepting any pointer in kfree and ignore invalid ones?