[Bug 611760] New: mount -o remount,barrier on ext4 filesystems causes kernel oops
http://bugzilla.novell.com/show_bug.cgi?id=611760 http://bugzilla.novell.com/show_bug.cgi?id=611760#c0 Summary: mount -o remount,barrier on ext4 filesystems causes kernel oops Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 The 'mount' manpage clearly states that 'barrier=1' and 'barrier' are the same (ditto 'barrier=0' and 'nobarrier'). However, 'barrier' does not work. To test: place 'barrier' in /etc/fstab for the relevant filesystem options. execute: mount -o remount,barrier /filesystem Watch oops. But wait! There is more! Now, remove the 'barrier' option from /etc/fstab and try the interactive mount command again. Now we don't get a kernel oops, mount itself HANGS! echo t > /proc/sysrq-trigger gives us this for mount: [1605200.729882] mount D 0000000000000000 0 24425 3601 0x00000000 [1605200.729882] ffff8800a2aa3db8 0000000000000082 ffff8800a2aa3d78 0000000000013a00 [1605200.729882] ffff88008a488c28 0000000000013a00 0000000000013a00 0000000000013a00 [1605200.729882] 0000000000013a00 ffff88008a488c28 0000000000013a00 0000000000013a00 [1605200.729882] Call Trace: [1605200.729882] [<ffffffff815580cd>] __down_write_nested+0xbd/0x130 [1605200.729882] [<ffffffff8155815e>] __down_write+0x1e/0x40 [1605200.729882] [<ffffffff8155729c>] down_write+0x1c/0x40 [1605200.729882] [<ffffffff81179178>] do_remount+0xc8/0x170 [1605200.729882] [<ffffffff8117c3e2>] do_mount+0x1f2/0x240 [1605200.729882] [<ffffffff8117c4ce>] sys_mount+0x9e/0x100 [1605200.729882] [<ffffffff8100c602>] system_call_fastpath+0x16/0x1b [1605200.729882] [<00007f01e246f65a>] 0x7f01e246f65a The mount process is un-killable (even kill -9) and now the box has to be rebooted. Kernel: Linux turnip 2.6.31.12-0.2-default #1 SMP 2010-03-16 21:25:39 +0100 x86_64 x86_64 x86_64 GNU/Linux Other potentially useful information: Jun 4 10:02:55 turnip kernel: [1604888.335304] BUG: unable to handle kernel NULL pointer dereference at (null) Jun 4 10:02:55 turnip kernel: [1604888.335327] IP: [<ffffffff8129e7a0>] memcpy_c+0x10/0x20 Jun 4 10:02:55 turnip kernel: [1604888.335353] PGD 11885067 PUD b3c4a067 PMD 0 Jun 4 10:02:55 turnip kernel: [1604888.335369] Oops: 0000 [#1] SMP Jun 4 10:02:55 turnip kernel: [1604888.335381] last sysfs file: /sys/devices/system/cpu/cpu3/cache/index2/shared_cpu_map Jun 4 10:02:55 turnip kernel: [1604888.335403] CPU 1 Jun 4 10:02:55 turnip kernel: [1604888.335410] Modules linked in: md5 btrfs zlib_deflate cryptomgr aead pcompress crypto_blkcipher crc32c libcrc32c crypto_hash crypto_algapi ipt_MASQUERADE ipt_REDIRECT xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit xt_mark iptable_nat nf_nat iptable_mangle xt_MARK af_packet nfs nfsd fscache lockd nfs_acl auth_rpcgss sunrpc exportfs cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 xt_NOTRACK ipt_REJECT xt_state iptable_raw iptable_filter nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables tcp_westwood fuse nls_utf8 ext4 jbd2 crc16 raid10 loop_fish2 loop ide_pci_generic atiixp ide_core ata_generic i2c_piix4 shpchp r8169 pata_atiixp tg3 pci_hotplug pcspkr amd64_edac_mod edac_core sg wmi button raid456 raid6_pq async_xor async_memcpy async_tx xor raid1 raid0 dm_mirror dm_region_hash dm_log dm_mod edd fan thermal processor thermal_sys Jun 4 10:02:55 turnip kernel: [1604888.335615] Pid: 24312, comm: mount Not tainted 2.6.31.12-0.2-default #1 TA790GX XE Jun 4 10:02:55 turnip kernel: [1604888.335634] RIP: 0010:[<ffffffff8129e7a0>] [<ffffffff8129e7a0>] memcpy_c+0x10/0x20 Jun 4 10:02:55 turnip kernel: [1604888.335662] RSP: 0018:ffff8800a2bcbc00 EFLAGS: 00010202 Jun 4 10:02:55 turnip kernel: [1604888.335671] RAX: ffff8800b0ccd760 RBX: ffff8800a2bcbcc8 RCX: 0000000000000001 Jun 4 10:02:55 turnip kernel: [1604888.335694] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff8800b0ccd760 Jun 4 10:02:55 turnip kernel: [1604888.335706] RBP: ffff8800a2bcbc48 R08: fffffffffffffffa R09: ffff8800b7845007 Jun 4 10:02:55 turnip kernel: [1604888.335724] R10: 000000000000002c R11: 0000000000000206 R12: ffff8800b0ccd760 Jun 4 10:02:55 turnip kernel: [1604888.335735] R13: ffff8800a2bcbcc4 R14: 0000000000000000 R15: 00000000ffffffea Jun 4 10:02:55 turnip kernel: [1604888.335757] FS: 00007fc9b14e27d0(0000) GS:ffff880001cc2000(0000) knlGS:0000000000000000 Jun 4 10:02:55 turnip kernel: [1604888.335770] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jun 4 10:02:55 turnip kernel: [1604888.335786] CR2: 0000000000000000 CR3: 0000000030ab4000 CR4: 00000000000006e0 Jun 4 10:02:55 turnip kernel: [1604888.335802] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Jun 4 10:02:55 turnip kernel: [1604888.335817] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Jun 4 10:02:55 turnip kernel: [1604888.335837] Process mount (pid: 24312, threadinfo ffff8800a2bca000, task ffff8800a03080c0) Jun 4 10:02:55 turnip kernel: [1604888.335855] Stack: Jun 4 10:02:55 turnip kernel: [1604888.335861] ffffffff8129f4cc ffff8800a2bcbcc8 0000000086253dd5 ffff88003782f400 Jun 4 10:02:55 turnip kernel: [1604888.335877] <0> ffff88003786e000 ffff8800b7845000 ffff8800a2bcbcb0 ffff88003782f400 Jun 4 10:02:55 turnip kernel: [1604888.335900] <0> ffff8800a2bcbcc8 ffff8800a2bcbc68 ffffffff8129f5ce ffff8800b7845000 Jun 4 10:02:55 turnip kernel: [1604888.335928] Call Trace: Jun 4 10:02:55 turnip kernel: [1604888.335955] [<ffffffff8129f4cc>] match_number+0x6c/0xd0 Jun 4 10:02:55 turnip kernel: [1604888.335979] [<ffffffff8129f5ce>] match_int+0x1e/0x40 Jun 4 10:02:55 turnip kernel: [1604888.336034] [<ffffffffa0226d6b>] parse_options+0x1ab/0x8b0 [ext4] Jun 4 10:02:55 turnip kernel: [1604888.336146] [<ffffffffa022e426>] ext4_remount+0xe6/0x4d0 [ext4] Jun 4 10:02:55 turnip kernel: [1604888.336236] [<ffffffff8115c68c>] __do_remount_sb+0x7c/0x190 Jun 4 10:02:55 turnip kernel: [1604888.336257] [<ffffffff8115c7c4>] do_remount_sb+0x24/0x40 Jun 4 10:02:55 turnip kernel: [1604888.336280] [<ffffffff811791fe>] do_remount+0x14e/0x170 Jun 4 10:02:55 turnip kernel: [1604888.336301] [<ffffffff8117c3e2>] do_mount+0x1f2/0x240 Jun 4 10:02:55 turnip kernel: [1604888.336322] [<ffffffff8117c4ce>] sys_mount+0x9e/0x100 Jun 4 10:02:55 turnip kernel: [1604888.336346] [<ffffffff8100c602>] system_call_fastpath+0x16/0x1b Jun 4 10:02:55 turnip kernel: [1604888.336369] [<00007fc9b0c3a65a>] 0x7fc9b0c3a65a Jun 4 10:02:55 turnip kernel: [1604888.336381] Code: 00 48 3b 42 20 73 07 48 8b 50 f9 31 c0 c3 31 d2 48 c7 c0 f2 ff ff ff c3 90 90 90 48 89 f8 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 <f3> a4 c3 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 eb de f8 89 d1 Jun 4 10:02:55 turnip kernel: [1604888.336474] RIP [<ffffffff8129e7a0>] memcpy_c+0x10/0x20 Jun 4 10:02:55 turnip kernel: [1604888.336490] RSP <ffff8800a2bcbc00> Jun 4 10:02:55 turnip kernel: [1604888.336501] CR2: 0000000000000000 Jun 4 10:02:55 turnip kernel: [1604888.336782] ---[ end trace b3ff6512237c0a8d ]--- Jun 4 10:02:55 turnip kernel: [1604888.336793] ------------[ cut here ]------------ Jun 4 10:02:55 turnip kernel: [1604888.336810] WARNING: at /usr/src/packages/BUILD/kernel-default-2.6.31.12/linux-2.6.31/kernel/exit.c:898 do_exit+0x36a/0x370() Jun 4 10:02:55 turnip kernel: [1604888.336828] Hardware name: TA790GX XE Jun 4 10:02:55 turnip kernel: [1604888.336837] Modules linked in: md5 btrfs zlib_deflate cryptomgr aead pcompress crypto_blkcipher crc32c libcrc32c crypto_hash crypto_algapi ipt_MASQUERADE ipt_REDIRECT xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit xt_mark iptable_nat nf_nat iptable_mangle xt_MARK af_packet nfs nfsd fscache lockd nfs_acl auth_rpcgss sunrpc exportfs cpufreq_conservative cpufreq_userspace cpufreq_powersave powernow_k8 xt_NOTRACK ipt_REJECT xt_state iptable_raw iptable_filter nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables tcp_westwood fuse nls_utf8 ext4 jbd2 crc16 raid10 loop_fish2 loop ide_pci_generic atiixp ide_core ata_generic i2c_piix4 shpchp r8169 pata_atiixp tg3 pci_hotplug pcspkr amd64_edac_mod edac_core sg wmi button raid456 raid6_pq async_xor async_memcpy async_tx xor raid1 raid0 dm_mirror dm_region_hash dm_log dm_mod edd fan thermal processor thermal_sys Jun 4 10:02:55 turnip kernel: [1604888.337271] Pid: 24312, comm: mount Tainted: G D 2.6.31.12-0.2-default #1 Jun 4 10:02:55 turnip kernel: [1604888.337284] Call Trace: Jun 4 10:02:55 turnip kernel: [1604888.337305] [<ffffffff81011749>] try_stack_unwind+0x189/0x1b0 Jun 4 10:02:55 turnip kernel: [1604888.337326] [<ffffffff8101013d>] dump_trace+0x9d/0x330 Jun 4 10:02:55 turnip kernel: [1604888.337346] [<ffffffff81011254>] show_trace_log_lvl+0x64/0x90 Jun 4 10:02:55 turnip kernel: [1604888.337366] [<ffffffff810112a3>] show_trace+0x23/0x40 Jun 4 10:02:55 turnip kernel: [1604888.337386] [<ffffffff81554ebc>] dump_stack+0x81/0x9e Jun 4 10:02:55 turnip kernel: [1604888.337407] [<ffffffff8106db80>] warn_slowpath_common+0x80/0xd0 Jun 4 10:02:55 turnip kernel: [1604888.337428] [<ffffffff8106dbf2>] warn_slowpath_null+0x22/0x40 Jun 4 10:02:55 turnip kernel: [1604888.337447] [<ffffffff810730ca>] do_exit+0x36a/0x370 Jun 4 10:02:55 turnip kernel: [1604888.337466] [<ffffffff81559f23>] oops_end+0xd3/0x130 Jun 4 10:02:55 turnip kernel: [1604888.337488] [<ffffffff8104452b>] no_context+0x10b/0x1a0 Jun 4 10:02:55 turnip kernel: [1604888.337509] [<ffffffff8104473d>] __bad_area_nosemaphore+0x17d/0x230 Jun 4 10:02:55 turnip kernel: [1604888.337530] [<ffffffff8104488d>] __bad_area+0x5d/0x90 Jun 4 10:02:55 turnip kernel: [1604888.337550] [<ffffffff810448e1>] bad_area+0x21/0x40 Jun 4 10:02:55 turnip kernel: [1604888.337568] [<ffffffff8155c079>] do_page_fault+0x399/0x3b0 Jun 4 10:02:55 turnip kernel: [1604888.337587] [<ffffffff81558f95>] page_fault+0x25/0x30 Jun 4 10:02:55 turnip kernel: [1604888.337608] [<ffffffff8129e7a0>] memcpy_c+0x10/0x20 Jun 4 10:02:55 turnip kernel: [1604888.337627] [<ffffffff8129f4cc>] match_number+0x6c/0xd0 Jun 4 10:02:55 turnip kernel: [1604888.337646] [<ffffffff8129f5ce>] match_int+0x1e/0x40 Jun 4 10:02:55 turnip kernel: [1604888.337695] [<ffffffffa0226d6b>] parse_options+0x1ab/0x8b0 [ext4] Jun 4 10:02:55 turnip kernel: [1604888.337792] [<ffffffffa022e426>] ext4_remount+0xe6/0x4d0 [ext4] Jun 4 10:02:55 turnip kernel: [1604888.337871] [<ffffffff8115c68c>] __do_remount_sb+0x7c/0x190 Jun 4 10:02:55 turnip kernel: [1604888.337886] [<ffffffff8115c7c4>] do_remount_sb+0x24/0x40 Jun 4 10:02:55 turnip kernel: [1604888.337900] [<ffffffff811791fe>] do_remount+0x14e/0x170 Jun 4 10:02:55 turnip kernel: [1604888.337915] [<ffffffff8117c3e2>] do_mount+0x1f2/0x240 Jun 4 10:02:55 turnip kernel: [1604888.337929] [<ffffffff8117c4ce>] sys_mount+0x9e/0x100 Jun 4 10:02:55 turnip kernel: [1604888.337941] [<ffffffff8100c602>] system_call_fastpath+0x16/0x1b Jun 4 10:02:55 turnip kernel: [1604888.337955] [<00007fc9b0c3a65a>] 0x7fc9b0c3a65a Jun 4 10:02:55 turnip kernel: [1604888.337960] ---[ end trace b3ff6512237c0a8e ]--- Let me complicate things further: I was not able to replicate this on a (32 bit) host running: Linux goblin 2.6.31.12-0.2-default #1 SMP 2010-03-16 21:25:39 +0100 i686 i686 i386 GNU/Linux Please advise. Will fill in more data when I am able to. Reproducible: Didn't try Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c1
Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c2
Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c3
--- Comment #3 from Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c4
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c5
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c6
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c7
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c8
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c9
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c10
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=611760
http://bugzilla.novell.com/show_bug.cgi?id=611760#c11
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=611760
https://bugzilla.novell.com/show_bug.cgi?id=611760#c12
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=611760
https://bugzilla.novell.com/show_bug.cgi?id=611760#c13
--- Comment #13 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com