From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753664Ab1ICDJL (ORCPT ); Fri, 2 Sep 2011 23:09:11 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:62747 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753314Ab1ICDJI (ORCPT ); Fri, 2 Sep 2011 23:09:08 -0400 MIME-Version: 1.0 From: Pavel Ivanov Date: Fri, 2 Sep 2011 23:08:36 -0400 Message-ID: Subject: Kernel 3.1.0-rc4 oops when connecting iPod To: linux-fsdevel@vger.kernel.org Cc: linux-kernel 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 Hi, With kernel 3.1.0-rc4 any attempt to connect iPod to USB leads to kernel oops. I'd say that stacktrace of the oops is pretty much random and not related to HFS. But I was able to get useful info from it when I recompiled with CONFIG_SLUB_DEBUG_ON=y. In this case I don't get oops but the following instead: [ 81.508807] hfs: filesystem size too large. [ 81.559295] ============================================================================= [ 81.656965] BUG kmalloc-4096: Invalid object pointer 0xffff880136160400 [ 81.735947] ----------------------------------------------------------------------------- [ 81.735948] [ 81.851359] INFO: Slab 0xffffea0004d85800 objects=7 used=7 fp=0x (null) flags=0x2000000000004081 [ 81.965628] Pid: 2086, comm: ipod-set-info Not tainted 3.1.0-rc4+ #2 [ 81.965629] Call Trace: [ 81.965636] [] slab_err+0xaf/0xd0 [ 81.965640] [] ? slab_pad_check+0xaf/0x1a0 [ 81.965644] [] free_debug_processing+0x1ef/0x310 [ 81.965647] [] __slab_free+0x1fa/0x490 [ 81.965653] [] ? hfsplus_fill_super+0x2ed/0x610 [hfsplus] [ 81.965656] [] kfree+0x12c/0x150 [ 81.965660] [] hfsplus_fill_super+0x2ed/0x610 [hfsplus] [ 81.965665] [] ? ioctl_internal_command.clone.4+0x61/0x1b0 [ 81.965671] [] ? _raw_spin_unlock+0xe/0x40 [ 81.965675] [] ? deactivate_slab+0x578/0x750 [ 81.965679] [] ? sget+0xab/0x480 [ 81.965683] [] ? put_dec+0x59/0x60 [ 81.965685] [] ? number.clone.2+0x311/0x350 [ 81.965690] [] ? pcpu_alloc_area+0x10b/0x2c0 [ 81.965693] [] ? vsnprintf+0x471/0x610 [ 81.965696] [] ? pcpu_alloc+0x399/0x9e0 [ 81.965699] [] ? snprintf+0x34/0x40 [ 81.965702] [] ? strlcpy+0x46/0x60 [ 81.965707] [] ? register_shrinker+0x52/0x60 [ 81.965710] [] mount_bdev+0x1c6/0x210 [ 81.965714] [] ? hfsplus_iget+0x240/0x240 [hfsplus] [ 81.965718] [] hfsplus_mount+0x15/0x20 [hfsplus] [ 81.965720] [] mount_fs+0x47/0x1c0 [ 81.965723] [] ? __alloc_percpu+0x10/0x20 [ 81.965727] [] vfs_kern_mount+0x63/0xd0 [ 81.965731] [] do_kern_mount+0x54/0x110 [ 81.965734] [] do_mount+0x502/0x7e0 [ 81.965736] [] ? strndup_user+0x5b/0x80 [ 81.965739] [] sys_mount+0x90/0xe0 [ 81.965744] [] system_call_fastpath+0x16/0x1b [ 81.965746] FIX kmalloc-4096: Object at 0xffff880136160400 not freed Following by 2 other bugs with the same stack trace. (BTW, before oops first message "hfs: filesystem size too large" always appears twice.) Another question: is hfsplus supposed to work at all? I see it's marked as "Orphaned" in MAINTAINERS and on attempt to connect iPod with kernel 2.6.38.11 (standard kernel in Ubuntu 11.04) I still don't get it working. Although without oops I get the following messages: [ 65.479360] usb 2-3: new high speed USB device using ehci_hcd and address 4 [ 65.686470] usbcore: registered new interface driver uas [ 65.706455] Initializing USB Mass Storage driver... [ 65.706901] scsi4 : usb-storage 2-3:1.0 [ 65.707251] usbcore: registered new interface driver usb-storage [ 65.707254] USB Mass Storage support registered. [ 66.702320] scsi 4:0:0:0: Direct-Access Apple iPod 1.62 PQ: 0 ANSI: 0 [ 66.704537] sd 4:0:0:0: Attached scsi generic sg2 type 0 [ 66.809047] sd 4:0:0:0: [sdb] 1946049 4096-byte logical blocks: (7.97 GB/7.42 GiB) [ 66.809930] sd 4:0:0:0: [sdb] Write Protect is off [ 66.809935] sd 4:0:0:0: [sdb] Mode Sense: 68 00 00 08 [ 66.809938] sd 4:0:0:0: [sdb] Assuming drive cache: write through [ 66.885037] sd 4:0:0:0: [sdb] 1946049 4096-byte logical blocks: (7.97 GB/7.42 GiB) [ 66.885933] sd 4:0:0:0: [sdb] Assuming drive cache: write through [ 66.979400] sdb: [mac] sdb1 sdb2 [ 66.981940] sd 4:0:0:0: [sdb] 1946049 4096-byte logical blocks: (7.97 GB/7.42 GiB) [ 66.982834] sd 4:0:0:0: [sdb] Assuming drive cache: write through [ 67.055808] sd 4:0:0:0: [sdb] Attached SCSI removable disk [ 67.299357] sd 4:0:0:0: [sdb] Bad block number requested [ 67.362982] hfs: unable to find HFS+ superblock [ 67.499457] sd 4:0:0:0: [sdb] Bad block number requested [ 67.563085] hfs: unable to find HFS+ superblock Thank you, Pavel