Skip to contentSkip to conversation

New: oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

Bug 23772 In review [email protected] 3 participants 24 messages Nov 25, 2010 – Aug 14, 2012 ext4 file system

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Summary: oops after mounting ext4 fs in 2.6.36.1 (failed to
parse options in superblock)
Product: File System
Version: 2.5
Kernel Version: 2.6.36.1
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No

Created an attachment (id=38222)
--> (https://bugzilla.kernel.org/attachment.cgi?id=38222)
output of tune2fs -l

I've just upgraded kernel to 2.6.36.1 and unfortunately some new features in ext4 are deadly for my setup.
Mounting an external usb WD disk causes at first some dmesg activity:

Nov 25 21:10:01 aquarius kernel: EXT4-fs (sdb1): Unrecognized mount option
"ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ."
or missing value
Nov 25 21:10:01 aquarius kernel: EXT4-fs (sdb1): failed to parse options in
superblock:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.
Nov 25 21:10:01 aquarius kernel: EXT4-fs (sdb1): mounted filesystem with

ordered data mode. Opts:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.; (null)

And this is how it looks like with 2.6.35.x:

Nov 17 06:43:28 aquarius kernel: EXT4-fs (sdb1): recovery complete
Nov 17 06:43:28 aquarius kernel: EXT4-fs (sdb1): mounted filesystem with

ordered data mode. Opts: data=ordered

Just after mounting kernel is generating an oops, locking my system completely (sysrq does not work!).

There are no special options passed to mount at mount time:
/dev/disk/by-label/MyBook /mnt/mybook ext4 noauto 0 0

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #1 from Fryderyk Dziarmagowski <[email protected]> 2010-11-25 21:27:35 --- Created an attachment (id=38232)
--> (https://bugzilla.kernel.org/attachment.cgi?id=38232)
kernel panic in a from a digital cam point of view

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #2 from Fryderyk Dziarmagowski <[email protected]> 2010-11-25 21:31:57 --- Just to clarify the nodelalloc on the screenshot: it was just a try to pass it mount, to see what's going on when some parameter will be passed.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Fryderyk Dziarmagowski <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #38232|kernel panic in a from a    |kernel panic from a digital
        description|digital cam point of view   |cam point of view
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Theodore Tso <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Theodore Tso <[email protected]> 2010-11-26 02:57:06 --- Hmm.... is this panic repeatable?

And can you send me the first 4k of the filesystem? i.e., do a "dd if=/dev/dsk/by-label/MyBook of=/tmp/sb.img bs=4k count=1" and then attach /tmp/sb.img to this bug?

Thanks,

-- Ted

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #4 from Fryderyk Dziarmagowski <[email protected]> 2010-11-26 14:24:23 --- Created an attachment (id=38252)
--> (https://bugzilla.kernel.org/attachment.cgi?id=38252)
first 4k of the filesystem dumped with dd

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #5 from Fryderyk Dziarmagowski <[email protected]> 2010-11-26 14:27:08 --- (In reply to comment #3)

Quoted 1 line

Hmm.... is this panic repeatable?

yes, it occurs always, just a few seconds after mount.

Quoted 3 lines

And can you send me the first 4k of the filesystem? i.e., do a "dd if=/dev/dsk/by-label/MyBook of=/tmp/sb.img bs=4k count=1" and then attach /tmp/sb.img to this bug?

uploaded

Quoted 3 lines

Thanks,

-- Ted

Thanks,
Freddy

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #6 from Theodore Tso <[email protected]> 2010-11-26 14:40:28 --- Ooops, sorry, I needed the block #1 of the file system, which means I need the
first two 4k blocks.... so could you send me:

dd if=/dev/dsk/by-label/MyBook of=/tmp/sb.img bs=4k count=2

... and send attach the revised sb.img file.

Many thanks!!

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#8 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Fryderyk Dziarmagowski <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #38252|0                           |1

is obsolete| |

--- Comment #7 from Fryderyk Dziarmagowski <[email protected]> 2010-11-26 14:45:41 --- Created an attachment (id=38262)
--> (https://bugzilla.kernel.org/attachment.cgi?id=38262)
first 2 blocks of the filesystem dumped with dd

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#9 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #8 from Fryderyk Dziarmagowski <[email protected]> 2010-11-26 14:46:15 --- (In reply to comment #6)

Quoted 6 lines

Ooops, sorry, I needed the block #1 of the file system, which means I need the
first two 4k blocks.... so could you send me:

dd if=/dev/dsk/by-label/MyBook of=/tmp/sb.img bs=4k count=2

... and send attach the revised sb.img file.

uploaded

Quoted 1 line

Many thanks!!

no problem!

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#10 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Eric Sandeen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #9 from Eric Sandeen <[email protected]> 2010-11-26 20:44:57 --- Stale data on disk being picked up as mount options after

8b67f04ab9de5d8f3a71aef72bf02c995a506db5 ext4: Add mount options in superblock

perhaps?

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#11 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #10 from Theodore Tso <[email protected]> 2010-11-26 22:12:58 --- Well, one question is how did the stale data get put there in the first place? The entire superblock is zero'ed out by mke2fs.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#12 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #12 from Fryderyk Dziarmagowski <[email protected]> 2010-11-29 19:34:30 --- I there is a way to fix it on the user space side?

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#13 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #13 from Eric Sandeen <[email protected]> 2010-11-29 19:36:41 --- I don't know for sure if there is, because I don't yet know what the problem is.

Could you provide an e2image -r (bzipped up) (in private if you like) and I can see if I can reproduce it?

-Eric

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#14 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Andreas Dilger <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |adilger.kernelbugzilla@dilg
                   |                            |er.ca

--- Comment #14 from Andreas Dilger <[email protected]> 2010-11-29 21:55:03 --- (In reply to comment #10)

Quoted 2 lines

Well, one question is how did the stale data get put there in the first place? The entire superblock is zero'ed out by mke2fs.

The s_mount_options field has the unfortunate distinction of being the first field beyond 0x200 in the superblock (i.e. second sector of 1kB superblock area). This means it could have been corrupted at some time in the past by an incomplete write or similar, and no e2fsck will have checked/fixed this.

Looking at the 'dd' output, it is clear that both the area before and after the 512-bytes of the original superblock were clobbered by 0xffff data at one time or another, and I suspect the superblock was rewritten from a backup copy but only the first sector was written to disk.

(In reply to comment #12)

Quoted 1 line

I there is a way to fix it on the user space side?

Fairly simple, for this specific case. It should overwrite the 512-byte area beyond the superblock with zeroes:

dd if=/dev/zero of=/dev/dsk/by-label/MyBook bs=512 count=1 seek=3 skip=3

That said, I don't know how common or unusual this kind of garbage data is in this area of the filesystem. It might make sense that errors parsing of the s_mount_options field is not taken as a fatal error at mount time, since this can make a system unbootable, and no e2fsck will fix it.

For e2fsck, it probably makes sense to limit the data in s_mount_opts to printable ASCII characters, and otherwise zero out any remaining data. I'm not sure what to do for the rest of the superblock, however.

Should e2fsck zero out that data if s_mount_opts is found to be bad? Should we wait until every field is defined, and then fix them on a case-by-case basis? The former is preferable because otherwise it means the kernel can never start using any of these fields without e2fsck having verified the content first, but it has the drawback that any corruption just to s_mount_opts may wipe out the rest of the superblock.

In that regard, it would have been preferable to locate the "s_first_error" and "s_last_error" fields near the end of the 1kB superblock range, instead of quickly consuming the rest of the space in the first sector (which we know will be written atomically), which is why it would be nice if such changes were discussed and reviewed on the mailing list rather than being presented as a fait-accompli in some kernel update and/or e2fsprogs release.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#15 lore raw

PATCH 1/1 annotate superblock field offsets

The s_mount_options field has the unfortunate distinction of being the first field beyond 0x200 in the superblock (i.e. second sector of 1kB superblock area).

Annotate the superblock fields with offsets so that it is easier to see these boundaries, and decode the superblock in the future.

Cheers, Andreas

fs/ext4/ext4.h +12 -12
index 889ec9d..2f7cc60 100644
@@ -997,37 +997,37 @@ struct ext4_super_block {
 	__le32	s_r_blocks_count_hi;	/* Reserved blocks count */
 	__le32	s_free_blocks_count_hi;	/* Free blocks count */
 	__le16	s_min_extra_isize;	/* All inodes have at least # bytes */
-	__le16	s_want_extra_isize; 	/* New inodes should reserve # bytes */
-	__le32	s_flags;		/* Miscellaneous flags */
+	__le16	s_want_extra_isize;	/* New inodes should reserve # bytes */
+/*160*/	__le32	s_flags;		/* Miscellaneous flags */
 	__le16  s_raid_stride;		/* RAID stride */
 	__le16  s_mmp_interval;         /* # seconds to wait in MMP checking */
 	__le64  s_mmp_block;            /* Block for multi-mount protection */
-	__le32  s_raid_stripe_width;    /* blocks on all data disks (N*stride)*/
+/*170*/	__le32  s_raid_stripe_width;    /* blocks on all data disks (N*stride)*/
 	__u8	s_log_groups_per_flex;  /* FLEX_BG group size */
 	__u8	s_reserved_char_pad;
 	__le16  s_reserved_pad;
 	__le64	s_kbytes_written;	/* nr of lifetime kilobytes written */
-	__le32	s_snapshot_inum;	/* Inode number of active snapshot */
+/*180*/	__le32	s_snapshot_inum;	/* Inode number of active snapshot */
 	__le32	s_snapshot_id;		/* sequential ID of active snapshot */
 	__le64	s_snapshot_r_blocks_count; /* reserved blocks for active
 					      snapshot's future use */
-	__le32	s_snapshot_list;	/* inode number of the head of the
+/*190*/	__le32	s_snapshot_list;	/* inode number of the head of the
 					   on-disk snapshot list */
 #define EXT4_S_ERR_START offsetof(struct ext4_super_block, s_error_count)
 	__le32	s_error_count;		/* number of fs errors */
 	__le32	s_first_error_time;	/* first time an error happened */
 	__le32	s_first_error_ino;	/* inode involved in first error */
-	__le64	s_first_error_block;	/* block involved of first error */
-	__u8	s_first_error_func[32];	/* function where the error happened */
-	__le32	s_first_error_line;	/* line number where error happened */
+/*1a0*/	__le64	s_first_error_block;	/* block involved of first error */
+/*1a8*/	__u8	s_first_error_func[32];	/* function where the error happened */
+/*1c8*/	__le32	s_first_error_line;	/* line number where error happened */
 	__le32	s_last_error_time;	/* most recent time of an error */
-	__le32	s_last_error_ino;	/* inode involved in last error */
+/*1d0*/	__le32	s_last_error_ino;	/* inode involved in last error */
 	__le32	s_last_error_line;	/* line number where error happened */
 	__le64	s_last_error_block;	/* block involved of last error */
-	__u8	s_last_error_func[32];	/* function where the error happened */
+/*1e0*/	__u8	s_last_error_func[32];	/* function where the error happened */
 #define EXT4_S_ERR_END offsetof(struct ext4_super_block, s_mount_opts)
-	__u8	s_mount_opts[64];
-	__le32	s_reserved[112];        /* Padding to the end of the block */
+/*200*/	__u8	s_mount_opts[64];
+/*240*/	__le32	s_reserved[112];        /* Padding to the end of the block */
 };
 
 #define EXT4_S_ERR_LEN (EXT4_S_ERR_END - EXT4_S_ERR_START)
#16 lore raw

Re: [PATCH] annotate superblock field offsets

Quoted 7 lines · Andreas Dilger

The s_mount_options field has the unfortunate distinction of being the first field beyond 0x200 in the superblock (i.e. second sector of 1kB superblock area).

Annotate the superblock fields with offsets so that it is easier to see these boundaries, and decode the superblock in the future.

Cheers, Andreas

thank you, I had just about done this in anger as well ;)

-Eric

#17 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #15 from Fryderyk Dziarmagowski <[email protected]> 2010-11-30 16:50:59 --- (In reply to comment #14)

Quoted 7 lines

(In reply to comment #12)

Quoted 1 line

I there is a way to fix it on the user space side?

Fairly simple, for this specific case. It should overwrite the 512-byte area beyond the superblock with zeroes:

dd if=/dev/zero of=/dev/dsk/by-label/MyBook bs=512 count=1 seek=3 skip=3

that did the trick! Many thanks Andreas!

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#18 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #16 from Fryderyk Dziarmagowski <[email protected]> 2010-11-30 17:50:52 --- It works now:

Nov 30 18:00:07 aquarius kernel: EXT4-fs (sdb1): mounted filesystem with

writeback data mode. Opts: (null)

...but after 5 min. kernel logs a nasty message:

Nov 30 18:05:07 aquarius kernel: EXT4-fs (sdb1): error count: 4294967295
Nov 30 18:05:07 aquarius kernel: EXT4-fs (sdb1): initial error at 4294967295:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ:-1: inode 4294967295: block
18446744073709551615
Nov 30 18:05:07 aquarius kernel: EXT4-fs (sdb1): last error at 4294967295:

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ:-1: inode 4294967295: block 18446744073709551615

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#19 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #17 from Eric Sandeen <[email protected]> 2010-11-30 18:07:08 --- Something is scribbling on / has scribbled on the front of your filesystem, it seems.

hexdumping the first 2 blocks you sent:

00000580 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| *

000005e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff 0f 00  |................|
000005f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000600  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000660  ff ff ff ff ff ff ff 01  00 00 00 00 00 00 00 00  |................|
00000670  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000680  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000006e0  ff ff ff ff ff ff ff ff  0f 00 00 00 00 00 00 00  |................|
00000580  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000005e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff 0f 00  |................|
000005f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000600  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000660  ff ff ff ff ff ff ff 01  00 00 00 00 00 00 00 00  |................|
00000670  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000680  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000006e0  ff ff ff ff ff ff ff ff  0f 00 00 00 00 00 00 00  |................|
000006f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000700  ff ff ff ff 7f 00 00 00  00 00 00 00 00 00 00 00  |................|
00000710  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

superblock starts at 0x400; so here we are at offset 0x180 to 0x310 in the sb.

There's a lot of "-1" (0xff) in there with a few other values. This translates into the "4294967295" values you see above.

The various error tracking bits are in this part of the superblock so you're seeing the -1/4294967295 pop out in the error reporting code:

     __le32    s_error_count;        /* number of fs errors */
     __le32    s_first_error_time;    /* first time an error happened */
     __le32    s_first_error_ino;    /* inode involved in first error */

/*1a0*/ __le64 s_first_error_block; /* block involved of first error
*/
/*1a8*/ __u8 s_first_error_func[32]; /* function where the error
happened */
/*1c8*/ __le32 s_first_error_line; /* line number where error happened
*/
__le32 s_last_error_time; /* most recent time of an error */
/*1d0*/ __le32 s_last_error_ino; /* inode involved in last error */
__le32 s_last_error_line; /* line number where error happened */
__le64 s_last_error_block; /* block involved of last error */
/*1e0*/ __u8 s_last_error_func[32]; /* function where the error
happened */

Your dd above should have zeroed this out, though, which makes me wonder how you got 1's back in here. It could be anything, though I wonder if it's possible that it's a stray bitmap....

What kind of storage is this?

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#20 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #18 from Andreas Dilger <[email protected]> 2010-11-30 20:54:18 --- (In reply to comment #17)

Quoted 2 lines

Something is scribbling on / has scribbled on the front of your filesystem, it seems.

I think/hope this is all old garbage that e2fsck has never cared about fixing.

Quoted 2 lines

The various error tracking bits are in this part of the superblock so you're seeing the -1/4294967295 pop out in the error reporting code:

Right, and while it will be annoying to get this printed every day, it doesn't actually hurt any operation of the filesystem.

Quoted 3 lines

Your dd above should have zeroed this out, though, which makes me wonder how you got 1's back in here. It could be anything, though I wonder if it's possible that it's a stray bitmap....

No, my "dd" command only zeroed out the second half of the superblock (starting at 0x600, the s_mount_opts field. It didn't touch the "error" parts of the superblock, for simplicity/safety. It should be possible to zero out these fields, even from userspace on a mounted filesystem, since the superblock is direct-mapped to the buffer. Whether you do this depends on whether the annoyance of the error message is higher than the risk that the following command might clobber your filesystem (which of course I hope it doesn't):

dd if=/dev/zero of=/dev/dsk/by-label/MyBook bs=1 seek=0x17c skip=0x17c count=0x84

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#21 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #19 from Fryderyk Dziarmagowski <[email protected]> 2010-11-30 21:16:34 --- (In reply to comment #17)

Quoted 2 lines

Something is scribbling on / has scribbled on the front of your filesystem, it seems.

"is scribbling" is the right one. After doing a dd once more, just after error msg, the file system was altered (compared visually in text editor).

Quoted 1 line

What kind of storage is this?

external usb disk by western digital:

# skdump /dev/disk/by-label/MyBook
Device: sat12:/dev/disk/by-label/MyBook
Type: 12 Byte SCSI ATA SAT Passthru
Size: 305242 MiB
Model: [WDC WD3200AAKS-00SBA0]
Serial: [WD-WCAPZ2842083]
Firmware: [12.01B01]
SMART Available: yes

Unfortunately, the oops is back. Tried to run fsck -f on the unlucky partition causes a hard lockup (only reset helps). For this time, it was something with ext4_msg, I will do a screenshot tomorrow.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#22 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

--- Comment #20 from Eric Sandeen <[email protected]> 2010-12-01 14:58:43 --- (In reply to comment #18)

Quoted 7 lines
Quoted 3 lines

Your dd above should have zeroed this out, though, which makes me wonder how you got 1's back in here. It could be anything, though I wonder if it's possible that it's a stray bitmap....

No, my "dd" command only zeroed out the second half of the superblock (starting at 0x600, the s_mount_opts field. It didn't touch the "error" parts of the superblock, for simplicity/safety.

Oh, sorry, I just assumed. Thanks for the clarification.

-Eric

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#23 lore raw

[Bug 23772] oops after mounting ext4 fs in 2.6.36.1 (failed to parse options in superblock)

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=23772

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |OBSOLETE
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.