From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754750Ab2INUyk (ORCPT ); Fri, 14 Sep 2012 16:54:40 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:49869 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753516Ab2INUyi (ORCPT ); Fri, 14 Sep 2012 16:54:38 -0400 Date: Fri, 14 Sep 2012 13:54:34 -0700 From: Tejun Heo To: Sasha Levin Cc: aris@redhat.com, dan.carpenter@oracle.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] xattr: prevent NULL ptr deref warnings in __simple_xattr_set Message-ID: <20120914205434.GS17747@google.com> References: <1347651354-16289-1-git-send-email-levinsasha928@gmail.com> <1347651354-16289-2-git-send-email-levinsasha928@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347651354-16289-2-git-send-email-levinsasha928@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 14, 2012 at 09:35:54PM +0200, Sasha Levin wrote: > Prevent warnings generated by smatch due to unchecked dereference of > 'new_xattr' in __simple_xattr_set(). Isn't this an actual bug w/ or w/o smatch? Remove request (NULL @value) w/o XATTR_REPLACE for an non-existent node would end up calling list_add() on NULL, right? If so, please collapse these two patches and mention the actual bug instead of smatch warning. Thanks. -- tejun