From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mail-bw0-f46.google.com ([209.85.214.46]:50334 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180Ab1FGJv2 (ORCPT ); Tue, 7 Jun 2011 05:51:28 -0400 Received: by bwz15 with SMTP id 15so4026750bwz.19 for ; Tue, 07 Jun 2011 02:51:26 -0700 (PDT) From: Marek Otahal To: util-linux@vger.kernel.org Subject: mount: if mount -a crashes on one partition, remaining should be probed Date: Tue, 7 Jun 2011 11:51:17 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3339142.tSm9uVZoZZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Message-Id: <201106071151.18570.markotahal@gmail.com> Sender: util-linux-owner@vger.kernel.org List-ID: --nextPart3339142.tSm9uVZoZZ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,=20 I reported this bug on my distribution (Archlinux) but as we just call moun= t -a , I'm sending it upstream. (orig bug: https://bugs.archlinux.org/task/= 24598 ) Description:=20 with 2.6.39 kernel I can get in conditions when mounting a btrfs partition = segfaults (I already reported upstream - http://article.gmane.org/gmane.com= p.file-systems.btrfs/11135 ). After this, the boot process continues, the issue is: after the crash, othe= r partitions from fstab don't get mounted. Though there's no error on them = and I can flawlessly mount them manually.=20 What I think happens: the mount process stops (crashes?) What should happen: mounting the corrupted partition should fail (/home in = my case), but other partitions should be probed normally (/var /tmp ...) Steps to reproduce: during boot, ensure mounting one partition crashes :P, then other parts are= not mounted. Thanks, Mark=20 PS sorry if double post, i got mail delivery failure.=20 dmesg follows:=20 [ 56.994241] loop: module loaded [ 57.172283] Btrfs loaded [ 57.191655] device label store devid 1 transid 26106 /dev/dm-3 [ 57.218783] device label home devid 1 transid 450932 /dev/dm-2 [ 57.459448] scsi 4:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANS= I: 0 CCS [ 57.460293] sd 4:0:0:0: Attached scsi generic sg1 type 0 [ 57.467030] sd 4:0:0:0: [sdb] Attached SCSI removable disk [ 61.585618] EXT4-fs (sda4): warning: checktime reached, running e2fsck is = recommended [ 61.671534] EXT4-fs (sda4): re-mounted. Opts: (null) [ 62.211037] device label home devid 1 transid 450932 /dev/mapper/homeDevice [ 62.212058] btrfs: force lzo compression [ 65.335194] ------------[ cut here ]------------ [ 65.335308] kernel BUG at fs/btrfs/inode.c:4676! [ 65.335406] invalid opcode: 0000 [#1] PREEMPT SMP=20 [ 65.335532] last sysfs file: /sys/devices/virtual/bdi/btrfs-1/uevent [ 65.337833] Modules linked in: btrfs zlib_deflate crc32c libcrc32c loop ua= s ums_realtek uvcvideo usb_storage msr videodev media btusb bluetooth sbs s= bshc arc4 ecb b43 mac80211 joydev cfg80211 ssb mmc_core pcmcia sg fuse tg3 = uhci_hcd ideapad_laptop evdev sparse_keymap psmouse pcspkr snd_hda_codec_re= altek iTCO_wdt iTCO_vendor_support rfkill serio_raw ehci_hcd snd_hda_intel = pcmcia_core i2c_i801 libphy usbcore ac wmi battery thermal snd_hda_codec sn= d_hwdep snd_pcm snd_timer snd soundcore snd_page_alloc acpi_cpufreq freq_ta= ble processor mperf sha256_generic sha512_generic ext4 mbcache jbd2 crc16 c= ryptd aes_i586 aes_generic xts gf128mul dm_crypt dm_mod sd_mod ata_piix lib= ata scsi_mod i915 drm_kms_helper drm i2c_algo_bit button i2c_core video int= el_agp intel_gtt agpgart [ 65.337833]=20 [ 65.337833] Pid: 883, comm: mount Not tainted 2.6.39-ARCH #1 LENOVO 41875Q= G /Kuril=20 [ 65.337833] EIP: 0060:[] EFLAGS: 00010282 CPU: 1 [ 65.337833] EIP is at btrfs_add_link+0x172/0x200 [btrfs] [ 65.337833] EAX: ffffffef EBX: ef448908 ECX: 00000119 EDX: 00000111 [ 65.337833] ESI: 004255d9 EDI: 00000020 EBP: eec77ba4 ESP: eec77b48 [ 65.337833] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [ 65.337833] Process mount (pid: 883, ti=3Deec76000 task=3Df4c8c450 task.ti= =3Deec76000) [ 65.337833] Stack: [ 65.396712] 00000020 004255d9 00000000 eec77b87 00000001 0000e55e 00000000= f960d6f8 [ 65.396712] eec77b88 eec77b8c eec77b90 eec77b94 ef472000 f5076800 ef448ba8= 6f43c090 [ 65.396712] 000046ab 01000000 00000000 00000000 00000000 0046ab6f 00000000= eec77c0c [ 65.396712] Call Trace: [ 65.396712] [] ? btrfs_inode_ref_index+0xd8/0xe0 [btrfs] [ 65.396712] [] add_inode_ref+0x28f/0x320 [btrfs] [ 65.396712] [] replay_one_buffer+0x239/0x320 [btrfs] [ 65.396712] [] ? alloc_extent_buffer+0x77/0x3a0 [btrfs] [ 65.396712] [] walk_down_log_tree+0x1d9/0x370 [btrfs] [ 65.396712] [] walk_log_tree+0x99/0x1c0 [btrfs] [ 65.396712] [] btrfs_recover_log_trees+0x1da/0x2a0 [btrfs] [ 65.396712] [] ? replay_one_dir_item+0xb0/0xb0 [btrfs] [ 65.396712] [] open_ctree+0x1129/0x1490 [btrfs] [ 65.396712] [] ? strlcpy+0x39/0x50 [ 65.396712] [] btrfs_mount+0x4ab/0x5b0 [btrfs] [ 65.396712] [] mount_fs+0x31/0x170 [ 65.396712] [] vfs_kern_mount+0x4c/0x90 [ 65.396712] [] do_kern_mount+0x39/0xd0 [ 65.396712] [] do_mount+0x161/0x700 [ 65.396712] [] sys_mount+0x66/0xa0 [ 65.396712] [] sysenter_do_call+0x12/0x28 [ 65.396712] Code: 44 24 08 00 00 00 00 89 4c 24 0c 8b 4d 08 89 34 24 e8 73= cc fe ff 85 c0 0f 84 f0 fe ff ff 8b 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 <0= f> 0b 8b 81 d8 fe ff ff 8d 55 e3 b9 11 00 00 00 89 d7 05 03 01=20 [ 65.396712] EIP: [] btrfs_add_link+0x172/0x200 [btrfs] SS:ESP 00= 68:eec77b48 [ 65.397464] ---[ end trace 5f278c10a67bc917 ]--- [ 65.519660] Adding 2561304k swap on /dev/mapper/swapDevice. Priority:-1 ex= tents:1 across:2561304k=20 [ 67.243199] microcode: CPU0 sig=3D0x106c2, pf=3D0x4, revision=3D0x20a [ 67.292031] microcode: CPU1 sig=3D0x106c2, pf=3D0x4, revision=3D0x20a [ 67.298402] microcode: Microcode Update Driver: v2.00 , Peter Oruba [ 67.305857] microcode: CPU0 updated to revision 0x218, date =3D 2009-04-10 [ 67.315268] microcode: CPU1 updated to revision 0x218, date =3D 2009-04-10 [ 70.985116] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 71.152025] Bluetooth: RFCOMM TTY layer initialized [ 71.156497] Bluetooth: RFCOMM socket layer initialized [ 71.160691] Bluetooth: RFCOMM ver 1.11 [ 118.324105] ip_tables: (C) 2000-2006 Netfilter Core Team [ 118.574729] nf_conntrack version 0.5.0 (16384 buckets, 65536 max) =2D-=20 Marek Otahal :o) --nextPart3339142.tSm9uVZoZZ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJN7fSVAAoJEKvC5zPWx/wK9dUQAIH6CZfcWvh9Qgt3UktCi1nj U05maQyrh2uZ64fdEAAn3ABuqKEwQkkM5H6Ry12m4G63p8G0eVWclbNv/WNC326n uRqKzM4HNLkT8vJXguoybgFgFHyRZBklH6vEhnl7V6asMCjasmqBsVk4AoWL3NrN 67NTR5NkifqBTF5F7hpv+5F2167R85V3fdQZQh3pA3T/N3kBLWmCD2oYl4EPhppU WquFe4NdHIMe4sapJpgLuFA56igqcOT35xOlE9LvnVcZU4V0JKdRMzcqBHuf42lj h+puqICe8qDNvBlgq1LEyo3kZzwFNiACAcPGgaiCNk5sSYRtJDU67TKYaeIpHrA8 T/5e9VQh//nDE/e4Tn5QSmkgmEMzqpx0ePKp7qyTLdHMdky0/WsnXUvCeTHHHq4x bRnsrseuSi9KiXZ7jSHB9sSZApj0z4bVo35tsjC+VXj6haRq4oklT56dAyVpfVqF /H7helJaNvoJHcsklpZsz/Bi6xaghqlCS72QUD4rohS+4+l9pCZq9uzJ8bT5zmIO uA63MZzFTf3FD21NH4mgqkeuTLF5hMpII8nnzPfEsTbRbyTQP1GE93+YVOsrSzjy 7juV6lZt9XyV3H3P9KEbSkpgQrqL6HpFP8iiL79IQZQ0kyrvaLxm0rivL0H7lB7k lzKPRy1o65Zz6/hclLOa =AoMc -----END PGP SIGNATURE----- --nextPart3339142.tSm9uVZoZZ--