Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757398AbaJ2UU3 (ORCPT ); Wed, 29 Oct 2014 16:20:29 -0400 Received: from e38.co.us.ibm.com ([32.97.110.159]:42397 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757111AbaJ2UU0 (ORCPT ); Wed, 29 Oct 2014 16:20:26 -0400 Message-ID: <1414614013.5330.90.camel@dhcp-9-2-203-236.watson.ibm.com> Subject: Re: [GIT PULL] Fix for Integrity subsystem null pointer deref From: Mimi Zohar To: Andy Lutomirski Cc: Dan Carpenter , "linux-kernel@vger.kernel.org" , LSM List , Linus Torvalds , "security@kernel.org" , James Morris Date: Wed, 29 Oct 2014 16:20:13 -0400 In-Reply-To: References: <1414587599.5330.50.camel@dhcp-9-2-203-236.watson.ibm.com> <20141029183612.GI6890@mwanda> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 (3.6.4-3.fc18) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14102920-0029-0000-0000-000005400450 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2014-10-29 at 11:51 -0700, Andy Lutomirski wrote: > On Wed, Oct 29, 2014 at 11:36 AM, Dan Carpenter > wrote: > > On Wed, Oct 29, 2014 at 09:23:45AM -0700, Andy Lutomirski wrote: > >> I have no idea what the semantics are. All I'm saying is that it > >> looks like the code still accesses memory past the end of the buffer. > >> The buffer isn't a null pointer, so the symptom is different, but it > >> may still be a security bug. > >> > >> --Andy > > > > It only reads one byte into the struct "xattr_data->type" so checking > > for non-zero is sufficient and the patch is fine. > > Indeed. Still... eww. I don't like code that, upon local inspection, > is apparently wrong, even though it's coincidentally correct due to > some other far away condition. No, the code may be incomplete, but definitely not wrong. Mimi -- 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/