From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p8CBFHUa251609 for ; Mon, 12 Sep 2011 06:15:17 -0500 Received: from mail-fx0-f53.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 8DC171F0D7C7 for ; Mon, 12 Sep 2011 04:15:15 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by cuda.sgi.com with ESMTP id LGGk10nf8bEegAxk for ; Mon, 12 Sep 2011 04:15:15 -0700 (PDT) Received: by fxh2 with SMTP id 2so1420977fxh.26 for ; Mon, 12 Sep 2011 04:15:15 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20110910183028.GA23537@infradead.org> Date: Mon, 12 Sep 2011 16:45:15 +0530 Message-ID: Subject: Re: XFS: Observed Crash followed by deadlock of khubd/sync/XFS From: Amit Sahrawat List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Christoph Hellwig Cc: xfs@oss.sgi.com Kernel Version: Linux version 3.0.3 (root@localhost.localdomain) (gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC) ) #5 SMP Fri Sep 9 11:00:53 IST 2011 Target: x86 XFS (sdb3): Mounting Filesystem XFS (sdb3): Ending clean mount usb 2-6: USB disconnect, device number 3 XFS (sdb3): I/O error occurred: meta-data dev sdb3 block 0x56f159 ("xlog_iodone") error 5 buf count 1024 XFS (sdb3): xfs_do_force_shutdown(0x2) called from line 891 of file fs/xfs/xfs_log.c. Return address =3D 0xf7b20ae1 XFS (sdb3): Log I/O Error Detected. Shutting down filesystem XFS (sdb3): Please umount the filesystem and rectify the problem(s) XFS (sdb3): Unable to update superblock counters. Freespace may not be correct on next mount. XFS (=80): xfs_trans_ail_delete_bulk: attempting to delete a log item that is not in the AIL XFS (=80): xfs_do_force_shutdown(0x8) called from line 740 of file fs/xfs/xfs_trans_ail.c. Return address =3D 0xf7b2dc7a BUG: unable to handle kernel NULL pointer dereference at 00000208 IP: [] xfs_log_force_umount+0x1d/0x1b5 [xfs] *pde =3D 00000000 Oops: 0000 [#1] SMP Modules linked in: vfat fat usb_storage xfs exportfs fuse sunrpc cpufreq_ondemand acpi_cpufreq mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput r8169 microcode snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep i2c_i801 snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc mii ppdev parport_pc parport iTCO_wdt iTCO_vendor_support pcspkr i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] Pid: 2233, comm: umount Not tainted 3.0.3 #5 Hewlett-Packard HP dx2480 MT(KL969AV)/0B08h EIP: 0060:[] EFLAGS: 00210202 CPU: 1 EIP is at xfs_log_force_umount+0x1d/0x1b5 [xfs] EAX: f2a1b380 EBX: 000001f4 ECX: f3ccdd5c EDX: 00000000 ESI: f2a1b380 EDI: 00000000 EBP: f3ccdd98 ESP: f3ccdd80 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Process umount (pid: 2233, ti=3Df3ccc000 task=3Df1f957f0 task.ti=3Df3ccc000) Stack: f7b32547 f2a1b380 00000000 f2a1b380 00000008 00000000 f3ccddb0 f7b32564 00000000 f2a1b000 f2a1b380 00000000 f3ccddec f7b2dc7a 000002e4 f2a1b380 00000004 f7b48bbf f7b42efc f7b2364d 00000001 f3ccddf4 f2a1b004 00000000 Call Trace: [] ? xfs_do_force_shutdown+0x39/0xd6 [xfs] [] xfs_do_force_shutdown+0x56/0xd6 [xfs] [] xfs_trans_ail_delete_bulk+0x83/0xfa [xfs] [] ? xlog_cil_push+0x2d1/0x2f6 [xfs] [] ? xfs_buf_iodone_work+0x14/0x23 [xfs] [] xfs_buf_iodone+0x31/0x3d [xfs] [] xfs_buf_do_callbacks+0x24/0x31 [xfs] [] xfs_buf_iodone_callbacks+0x16f/0x1a2 [xfs] [] xfs_buf_iodone_work+0x14/0x23 [xfs] [] xfs_buf_ioend+0x95/0xa5 [xfs] [] ? xfs_bioerror+0x34/0x3c [xfs] [] ? xfs_flush_buftarg+0x9e/0xe9 [xfs] [] xfs_bioerror+0x34/0x3c [xfs] [] xfs_bdstrat_cb+0x5f/0x6f [xfs] [] xfs_flush_buftarg+0x9e/0xe9 [xfs] [] xfs_free_buftarg+0x22/0x45 [xfs] [] xfs_close_devices+0x55/0x59 [xfs] [] xfs_fs_put_super+0x50/0x61 [xfs] [] generic_shutdown_super+0x52/0xb0 [] kill_block_super+0x22/0x5e [] deactivate_locked_super+0x1f/0x40 [] deactivate_super+0x37/0x3c [] mntput_no_expire+0x114/0x11a [] sys_umount+0x26e/0x295 [] sys_oldumount+0x12/0x14 [] sysenter_do_call+0x12/0x28 Code: 05 b8 05 00 00 00 83 c4 10 5b 5e 5f 5d c3 55 89 e5 57 56 53 83 ec 0c 3e 8d 74 26 00 89 55 f0 8b 98 18 01 00 00 89 c6 85 db 74 06 43 14 02 74 27 8b 86 e0 00 00 00 31 ff 83 8e cc 01 00 00 10 EIP: [] xfs_log_force_umount+0x1d/0x1b5 [xfs] SS:ESP 0068:f3ccdd80 CR2: 0000000000000208 ---[ end trace f3af361b30e84114 ]--- ------------[ cut here ]------------ WARNING: at kernel/exit.c:909 do_exit+0x37/0x621() Hardware name: HP dx2480 MT(KL969AV) Modules linked in: vfat fat usb_storage xfs exportfs fuse sunrpc cpufreq_ondemand acpi_cpufreq mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput r8169 microcode snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep i2c_i801 snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc mii ppdev parport_pc parport iTCO_wdt iTCO_vendor_support pcspkr i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] Pid: 2233, comm: umount Tainted: G D 3.0.3 #5 Call Trace: [] warn_slowpath_common+0x6a/0x7f [] ? do_exit+0x37/0x621 [] warn_slowpath_null+0x14/0x18 [] do_exit+0x37/0x621 [] ? kmsg_dump+0x3a/0xb3 [] oops_end+0x9d/0xa5 [] no_context+0x115/0x11f [] __bad_area_nosemaphore+0xf4/0xfc [] bad_area+0x3a/0x40 [] do_page_fault+0x227/0x376 [] ? spurious_fault+0xba/0xba [] error_code+0x67/0x6c [] ? xfs_log_force_umount+0x1d/0x1b5 [xfs] [] ? xfs_do_force_shutdown+0x39/0xd6 [xfs] [] xfs_do_force_shutdown+0x56/0xd6 [xfs] [] xfs_trans_ail_delete_bulk+0x83/0xfa [xfs] [] ? xlog_cil_push+0x2d1/0x2f6 [xfs] [] ? xfs_buf_iodone_work+0x14/0x23 [xfs] [] xfs_buf_iodone+0x31/0x3d [xfs] [] xfs_buf_do_callbacks+0x24/0x31 [xfs] [] xfs_buf_iodone_callbacks+0x16f/0x1a2 [xfs] [] xfs_buf_iodone_work+0x14/0x23 [xfs] [] xfs_buf_ioend+0x95/0xa5 [xfs] [] ? xfs_bioerror+0x34/0x3c [xfs] [] ? xfs_flush_buftarg+0x9e/0xe9 [xfs] [] xfs_bioerror+0x34/0x3c [xfs] [] xfs_bdstrat_cb+0x5f/0x6f [xfs] [] xfs_flush_buftarg+0x9e/0xe9 [xfs] [] xfs_free_buftarg+0x22/0x45 [xfs] [] xfs_close_devices+0x55/0x59 [xfs] [] xfs_fs_put_super+0x50/0x61 [xfs] [] generic_shutdown_super+0x52/0xb0 [] kill_block_super+0x22/0x5e [] deactivate_locked_super+0x1f/0x40 [] deactivate_super+0x37/0x3c [] mntput_no_expire+0x114/0x11a [] sys_umount+0x26e/0x295 [] sys_oldumount+0x12/0x14 [] sysenter_do_call+0x12/0x28 ---[ end trace f3af361b30e84115 ]--- On Mon, Sep 12, 2011 at 4:36 PM, Amit Sahrawat wrote: > Please ignore previous message, there is formatting issue with the > back trace. I will post again. > > On Sun, Sep 11, 2011 at 10:16 PM, Amit Sahrawat > wrote: >> Yes, the patch is applied and the crash is still appearing easily. >> >> On Sun, Sep 11, 2011 at 12:00 AM, Christoph Hellwig = wrote: >>> On Thu, Sep 08, 2011 at 04:35:28PM +0530, Amit Sahrawat wrote: >>>> Kernel Version: 2.6.39.4 >>>> Target: ARM >>>> >>>> Observed while doing: >>>> Copy some file (any size, I tried with 10MB, 100MB) to XFS partition >>>> After Copy do???sync??? >>>> Now immediately, unplug the device. >>> >>> Does this still happen with the patch below applied? >>> >>> >> > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs