From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759960Ab1IKDcs (ORCPT ); Sat, 10 Sep 2011 23:32:48 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:38228 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009Ab1IKDcq (ORCPT ); Sat, 10 Sep 2011 23:32:46 -0400 MIME-Version: 1.0 In-Reply-To: <20110908162303.GA18435@ubuntu-NB505> References: <20110907175952.GC23829@thinkpad-t410> <1315451581.92826.YahooMailClassic@web29509.mail.ird.yahoo.com> <20110908162303.GA18435@ubuntu-NB505> From: Pavel Ivanov Date: Sat, 10 Sep 2011 23:32:15 -0400 Message-ID: Subject: Re: Kernel 3.1.0-rc4 oops when connecting iPod To: Hin-Tak Leung , Christoph Hellwig , Pavel Ivanov , linux-fsdevel@vger.kernel.org, linux-kernel , Seth Forshee Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 8, 2011 at 12:23 PM, Seth Forshee wrote: > On Thu, Sep 08, 2011 at 04:13:01AM +0100, Hin-Tak Leung wrote: >> --- On Wed, 7/9/11, Seth Forshee wrote: >> >> > Yes, that was definitely just an oversight. Has anyone >> > provided a patch >> > yet? If not I've pasted a patch below. Seems like a fix >> > should be >> > applied ASAP. >> > >> > >> > From d27825b880028e9a45ba640d86c9e8101db0606b Mon Sep 17 >> > 00:00:00 2001 >> > From: Seth Forshee >> > Date: Wed, 7 Sep 2011 10:38:35 -0700 >> > Subject: [PATCH] hfsplus: Fix kfree of wrong pointers in >> > hfsplus_fill_super() error path >> > >> > Commit 6596528 (hfsplus: ensure bio requests are not >> > smaller than >> > the hardware sectors) changed the pointers used for volume >> > header >> > allocations but failed to change the pointer freed in the >> > error >> > path of hfsplus_fill_super(). This patch fixes the >> > problem. >> > >> > Reported-by: Pavel Ivanov >> > Signed-off-by: Seth Forshee >> > Cc: >> >> Acked-by: Hin-Tak Leung >> >> Please go ahead and submit the patch. > > That was my patch submission :) > > Christoph, does that work for you, or would you like me to send the > patch in a separate email? Seth, Christoph, I've just found another wrong pointers freeing. The following patch should fix it. Subject: [PATCH] hfsplus: Fix kfree of wrong pointers in hfsplus_read_wrapper() error path Commit 6596528 (hfsplus: ensure bio requests are not smaller than the hardware sectors) changed the pointers used for volume header allocations but failed to change the pointer freed in the error path of hfsplus_read_wrapper(). This patch fixes the problem. Signed-off-by: Pavel Ivanov Cc: --- diff --git a/fs/hfsplus/wrapper.c b/fs/hfsplus/wrapper.c index 10e515a..7daf4b8 100644 --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrapper.c @@ -272,9 +272,9 @@ reread: return 0; out_free_backup_vhdr: - kfree(sbi->s_backup_vhdr); + kfree(sbi->s_backup_vhdr_buf); out_free_vhdr: - kfree(sbi->s_vhdr); + kfree(sbi->s_vhdr_buf); out: return error; } -- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Ivanov Subject: Re: Kernel 3.1.0-rc4 oops when connecting iPod Date: Sat, 10 Sep 2011 23:32:15 -0400 Message-ID: References: <20110907175952.GC23829@thinkpad-t410> <1315451581.92826.YahooMailClassic@web29509.mail.ird.yahoo.com> <20110908162303.GA18435@ubuntu-NB505> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: Hin-Tak Leung , Christoph Hellwig , Pavel Ivanov , linux-fsdevel@vger.kernel.org, linux-kernel Received: from mail-ey0-f174.google.com ([209.85.215.174]:38228 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009Ab1IKDcq (ORCPT ); Sat, 10 Sep 2011 23:32:46 -0400 In-Reply-To: <20110908162303.GA18435@ubuntu-NB505> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Sep 8, 2011 at 12:23 PM, Seth Forshee wrote: > On Thu, Sep 08, 2011 at 04:13:01AM +0100, Hin-Tak Leung wrote: >> --- On Wed, 7/9/11, Seth Forshee wrote: >> >> > Yes, that was definitely just an oversight. Has anyone >> > provided a patch >> > yet? If not I've pasted a patch below. Seems like a fix >> > should be >> > applied ASAP. >> > >> > >> > From d27825b880028e9a45ba640d86c9e8101db0606b Mon Sep 17 >> > 00:00:00 2001 >> > From: Seth Forshee >> > Date: Wed, 7 Sep 2011 10:38:35 -0700 >> > Subject: [PATCH] hfsplus: Fix kfree of wrong pointers in >> > hfsplus_fill_super() error path >> > >> > Commit 6596528 (hfsplus: ensure bio requests are not >> > smaller than >> > the hardware sectors) changed the pointers used for volume >> > header >> > allocations but failed to change the pointer freed in the >> > error >> > path of hfsplus_fill_super(). This patch fixes the >> > problem. >> > >> > Reported-by: Pavel Ivanov >> > Signed-off-by: Seth Forshee >> > Cc: >> >> Acked-by: Hin-Tak Leung >> >> Please go ahead and submit the patch. > > That was my patch submission :) > > Christoph, does that work for you, or would you like me to send the > patch in a separate email? Seth, Christoph, I've just found another wrong pointers freeing. The following patch should fix it. Subject: [PATCH] hfsplus: Fix kfree of wrong pointers in hfsplus_read_wrapper() error path Commit 6596528 (hfsplus: ensure bio requests are not smaller than the hardware sectors) changed the pointers used for volume header allocations but failed to change the pointer freed in the error path of hfsplus_read_wrapper(). This patch fixes the problem. Signed-off-by: Pavel Ivanov Cc: --- diff --git a/fs/hfsplus/wrapper.c b/fs/hfsplus/wrapper.c index 10e515a..7daf4b8 100644 --- a/fs/hfsplus/wrapper.c +++ b/fs/hfsplus/wrapper.c @@ -272,9 +272,9 @@ reread: return 0; out_free_backup_vhdr: - kfree(sbi->s_backup_vhdr); + kfree(sbi->s_backup_vhdr_buf); out_free_vhdr: - kfree(sbi->s_vhdr); + kfree(sbi->s_vhdr_buf); out: return error; } --