From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751245AbaIJGhK (ORCPT ); Wed, 10 Sep 2014 02:37:10 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:36330 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbaIJGhI (ORCPT ); Wed, 10 Sep 2014 02:37:08 -0400 Date: Wed, 10 Sep 2014 09:36:30 +0300 From: Dan Carpenter To: Andrew Morton Cc: Jiri Kosina , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Theodore Ts'o" Subject: Re: [PATCH] mm/sl[aou]b: make kfree() aware of error pointers Message-ID: <20140910063630.GM6549@mwanda> References: <20140909162114.44b3e98cf925f125e84a8a06@linux-foundation.org> <20140909221138.2587d864.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140909221138.2587d864.akpm@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 09, 2014 at 10:11:38PM -0700, Andrew Morton wrote: > On Wed, 10 Sep 2014 07:05:40 +0200 (CEST) Jiri Kosina wrote: > This is the sort of error which a static checker could find. I wonder > if any of them do so. Yes. Ted asked me to add this to Smatch and that's how we found the problems in ext4. I'll push it out later this week. It won't find every single bug. We have fixed the 8 bugs that Smatch found. regards, dan carpenter