New: Kernel 2.6.36 Bug during quotaon on reiserfs
https://bugzilla.kernel.org/show_bug.cgi?id=21092
Summary: Kernel 2.6.36 Bug during quotaon on reiserfs
Product: File System
Version: 2.5
Kernel Version: 2.6.36
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: ReiserFS
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: Yes
I get this bug during boot at enabling usrquta for a reiser(3)fs since 2.6.36. The kernel is a x86_64 smp. The reiserfs reisdes on a dm raid level 5. The same setup worked with kernel version 2.6.35.7, of course there was no other configuratrion change between 2.6.35.7 and 2.6.36.
REISERFS warning (device dm-4): reiserfs-2500 finish_unfinished: cannot turn on journaled quota: error -3
------------[ cut here ]------------ kernel BUG at fs/reiserfs/lock.c:43! invalid opcode: 0000 [#1] SMP last sysfs file: /sys/devices/virtual/vc/vcsa12/uevent CPU 5 Modules linked in: snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq
snd_seq_device snd_pcm_oss snd_mixer_oss quota_v2 quota_tree snd_hda_codec_atihdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_pcm psmouse snd_timer evdev firewire_ohci snd pcspkr soundcore processor firewire_core thermal snd_page_alloc button crc_itu_t i5k_amb scsi_transport_iscsi tg3 libphy fuse nfs auth_rpcgss fscache lockd sunrpc dm_crypt dm_mirror dm_region_hash dm_log scsi_wait_scan uhci_hcd usb_storage ehci_hcd sr_mod cdrom sg
Pid: 3916, comm: quotaon Not tainted 2.6.36_hope3-xw6600 #1 0A9Ch/HP xw6600 Workstation
RIP: 0010:[<ffffffff811581a3>] [<ffffffff811581a3>] reiserfs_write_unlock+0x43/0x50 RSP: 0018:ffff880127a5dd78 EFLAGS: 00010203 RAX: ffff880129cef3e0 RBX: ffff8801298115d0 RCX: 000000000000006e RDX: ffff88012090c540 RSI: 0000000000000000 RDI: ffff88012a838000 RBP: ffff880127a5dd78 R08: 000000000000000b R09: ffff8801298115d0 R10: 00007f5abe320580 R11: 0000000000000246 R12: ffff880129811540 R13: ffff880129811680 R14: ffff88012adc3400 R15: 0000000000001000 FS: 00007f5abd54c700(0000) GS:ffff880001940000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5abd5924c5 CR3: 000000012a741000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process quotaon (pid: 3916, threadinfo ffff880127a5c000, task ffff880129cef3e0) Stack: ffff880127a5ddc8 ffffffff81155d6f ffff880127a5dda8 ffffffff810d505c <0> 0000000000000002 ffff880127a5de28 ffff88012adc3400 0000000000000000 <0> 0000000000000002 ffff88012adc3400 ffff880127a5de68 ffffffff81141071 Call Trace: [<ffffffff81155d6f>] reiserfs_unpack+0x6f/0x160 [<ffffffff810d505c>] ? path_put+0x2c/0x40 [<ffffffff81141071>] reiserfs_quota_on+0x171/0x1d0 [<ffffffff810d8056>] ? do_path_lookup+0x36/0x60 [<ffffffff81237245>] ? strncpy_from_user+0x45/0x90 [<ffffffff81119ac5>] do_quotactl+0x4d5/0x520 [<ffffffff810d505c>] ? path_put+0x2c/0x40 [<ffffffff8142b181>] ? down_read+0x11/0x30 [<ffffffff81119bbe>] sys_quotactl+0xae/0x120 [<ffffffff81002d2b>] system_call_fastpath+0x16/0x1b Code: 75 29 8b 47 50 ff c8 89 47 50 83 f8 ff 74 09 c9 c3 0f 1f 80 00 00 00 00
48 c7 47 48 00 00 00 00 48 83 c7 28 e8 5f 26 2d 00 c9 c3 <0f> 0b eb fe 66 0f 1f 84 00 00 00 00 00 55 83 fe ff 48 89 e5 74
RIP [<ffffffff811581a3>] reiserfs_write_unlock+0x43/0x50
RSP <ffff880127a5dd78>
---[ end trace 488c3fb0de5127fd ]---
Despite the bug the fs in question is accessible, quota of course dont'work. Any susequent try to enable quota result in a stalled quotaon command without any output on console or dmesg.
Thank you, Markus
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
https://bugzilla.kernel.org/show_bug.cgi?id=21092
Rafael J. Wysocki <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected], | |[email protected] Blocks| |16444
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
Jan Kara <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Jan Kara <[email protected]> 2010-10-27 21:55:24 --- This looks like a fallout of the BKL conversion in reiserfs. After the conversion, it is expected that reiserfs_unpack will be called with write_lock held but that's not the case for the call from reiserfs_quota_on.
The easiest is probably to just acquire write_lock before calling reiserfs_unpack. The attached patch does this and don't see the BUG with it.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
--- Comment #2 from Jan Kara <[email protected]> 2010-10-27 21:58:36 --- Created an attachment (id=35292)
--> (https://bugzilla.kernel.org/attachment.cgi?id=35292)
Patch fixing locking in reiserfs_quota_on()
Could you please try whether this patch fixes the issue? Thanks.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
--- Comment #3 from [email protected] 2010-10-27 23:04:04 --- @Jan Kara:
Your patch fixes the issue for me. Thank you very much!
Markus
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
Florian Mickler <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |PATCH_ALREADY_AVAILABLE--- Comment #4 from Florian Mickler <[email protected]> 2010-10-29 06:52:37 ---
Patch: https://bugzilla.kernel.org/attachment.cgi?id=35292
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
--- Comment #5 from Rafael J. Wysocki <[email protected]> 2010-11-18 23:46:06 ---
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
--- Comment #6 from Rafael J. Wysocki <[email protected]> 2011-01-06 15:39:25 ---
Quoted 12 lines · Jan Kara
Hi,
Quoted 7 lines · Rafael J. Wysocki
This message has been generated automatically as a part of a report of regressions introduced between 2.6.35 and 2.6.36.
The following bug entry is on the current list of known regressions introduced between 2.6.35 and 2.6.36. Please verify if it still should be listed and let the tracking team know (either way).
As far as I know, the problem has been fixed by commit
da905873effecd1c0166e578bc4b5006f041b18bin the end.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 21092] Kernel 2.6.36 Bug during quotaon on reiserfs
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=21092
Rafael J. Wysocki <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
Resolution|PATCH_ALREADY_AVAILABLE |CODE_FIXSignature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.