Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760631AbYBZLh2 (ORCPT ); Tue, 26 Feb 2008 06:37:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754198AbYBZLhU (ORCPT ); Tue, 26 Feb 2008 06:37:20 -0500 Received: from styx.suse.cz ([82.119.242.94]:60209 "EHLO mail.suse.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753696AbYBZLhS (ORCPT ); Tue, 26 Feb 2008 06:37:18 -0500 Date: Tue, 26 Feb 2008 12:37:17 +0100 (CET) From: Jiri Kosina To: Ingo Molnar cc: Jan Kara , Andrew Morton , Nix , Peter Osterlund , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Jan Kara Subject: Re: 2.6.24.2: 4KSTACKS + pcdrw + dm + mount -> stack overflow: ide-cd related? dm-related? In-Reply-To: <20080226112932.GB10996@elte.hu> Message-ID: References: <87wsovkth5.fsf@hades.wkstn.nix> <87skzipcpw.fsf@hades.wkstn.nix> <87oda6p9st.fsf@hades.wkstn.nix> <20080225123041.401da103.akpm@linux-foundation.org> <20080225224807.GA15700@atrey.karlin.mff.cuni.cz> <20080226112932.GB10996@elte.hu> 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: 886 Lines: 32 On Tue, 26 Feb 2008, Ingo Molnar wrote: > > + name = kmalloc(sizeof(char) * UDF_NAME_LEN, GFP_KERNEL); > > + fname = kmalloc(sizeof(char) * UDF_NAME_LEN, GFP_KERNEL); > > + > > + if (!name || !fname) { > > + *err = -ENOMEM; > > + return NULL; > > + } > > + > > if (dentry) { > > if (!dentry->d_name.len) { > > *err = -EINVAL; > this bit is missing i think: > if (name) > kfree(name); > if (fname) > kfree(fname); Ergh, of course, stupid me, sorry, it should be freed on all exit paths. I am not sending updated patch, as Jan is probably working on complete removal of one of those fields ... ? Thanks, -- Jiri Kosina -- 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/