Re: Corrupted files after suspend to disk

From: richard -rw- weinberger
Date: Fri Mar 16 2012 - 11:19:37 EST


On Mon, Mar 12, 2012 at 10:49 PM, Dave Jones <davej@xxxxxxxxxx> wrote:
> if you compare the hexdump of the good/bad files, you find that the corruption
> happens in 8x 4 byte writes of either 0x00000000 or 0x00aaaaaa.

Yeah, it looks like the described pattern.
The attached diff shows four 8x4 byte writes of 0x00000000.

--
Thanks,
//richard
--- good.txt 2012-03-16 15:51:11.000000000 +0100
+++ bad.txt 2012-03-16 15:51:27.000000000 +0100
@@ -111020,8 +111020,8 @@
001b3fd0 85 73 01 00 00 89 3c 24 e8 d3 01 02 00 8b 8c 24 |.s....<$.......$|
001b3fe0 e0 00 00 00 8b 94 24 e4 00 00 00 8b b4 24 e0 00 |......$......$..|
001b3ff0 00 00 8b 41 24 8b 52 08 83 c6 24 8b 48 0c 89 54 |...A$.R...$.H..T|
-001b4000 24 24 85 c9 0f 85 06 01 00 00 31 c0 8b 8c 24 e4 |$$........1...$.|
-001b4010 00 00 00 89 04 24 89 4c 24 04 e8 41 e9 ff ff 85 |.....$.L$..A....|
+001b4000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+*
001b4020 ed 74 45 8b 54 24 24 8b 42 4c 8b 50 3c 85 d2 0f |.tE.T$$.BL.P<...|
001b4030 85 43 01 00 00 c7 44 24 04 00 00 00 00 89 2c 24 |.C....D$......,$|
001b4040 e8 ab a4 ef ff 8b 94 24 e4 00 00 00 c7 44 24 0c |.......$.....D$.|
@@ -111276,8 +111276,8 @@
001b4fd0 c3 25 30 0c 00 8b 50 44 f6 c2 10 0f 84 e7 00 00 |.%0...PD........|
001b4fe0 00 8d 83 6c cd fa ff 8d 7c 24 3c 89 44 24 14 8d |...l....|$<.D$..|
001b4ff0 83 54 43 f9 ff 89 44 24 0c c7 44 24 10 5e 01 00 |.TC...D$..D$.^..|
-001b5000 00 c7 44 24 08 5f 1b 00 00 c7 44 24 04 01 00 00 |..D$._....D$....|
-001b5010 00 89 3c 24 e8 4b 72 ec ff 83 ec 04 8d 54 24 38 |..<$.Kr......T$8|
+001b5000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+*
001b5020 89 14 24 89 54 24 2c 89 74 24 08 89 7c 24 04 e8 |..$.T$,.t$..|$..|
001b5030 10 2b ec ff 8d 83 8c 23 f9 ff 83 ec 04 8d 6c 24 |.+.....#......l$|
001b5040 34 89 44 24 04 c7 44 24 08 ff ff ff ff 89 2c 24 |4.D$..D$......,$|
@@ -112044,8 +112044,8 @@
001b7fd0 8b 50 08 8d 44 90 14 89 04 24 eb 83 8d 74 26 00 |.P..D....$...t&.|
001b7fe0 83 ec 5c 89 74 24 50 8b 74 24 60 89 5c 24 4c 89 |..\.t$P.t$`.\$L.|
001b7ff0 7c 24 54 89 6c 24 58 8b 46 14 e8 e8 80 ec ff 81 ||$T.l$X.F.......|
-001b8000 c3 f5 ff 0b 00 8b 50 08 39 50 0c 0f 84 ab 00 00 |......P.9P......|
-001b8010 00 8d 6c 24 20 89 74 24 04 89 2c 24 e8 9f fd ff |..l$ .t$..,$....|
+001b8000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+*
001b8020 ff 83 ec 04 8b 7c 24 20 85 ff 0f 88 a0 00 00 00 |.....|$ ........|
001b8030 8b 4c 24 24 85 c9 0f 88 94 00 00 00 8b 54 24 2c |.L$$.........T$,|
001b8040 85 d2 0f 84 88 00 00 00 8d 7c 24 3c 89 6c 24 04 |.........|$<.l$.|
@@ -112300,8 +112300,8 @@
001b8fd0 0b 00 89 6c 24 58 89 74 24 50 8b 74 24 60 89 7c |...l$X.t$P.t$`.||
001b8fe0 24 54 c7 44 24 3c 00 00 00 00 8b ab 40 27 00 00 |$T.D$<......@'..|
001b8ff0 85 ed 0f 84 30 01 00 00 8b bb 40 27 00 00 83 c7 |....0.....@'....|
-001b9000 04 74 08 f7 c7 01 00 00 00 74 35 89 f0 e8 fe f4 |.t.......t5.....|
-001b9010 ff ff 85 c0 89 44 24 3c 74 45 85 ff 74 0c f7 c7 |.....D$<tE..t...|
+001b9000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
+*
001b9020 01 00 00 00 0f 85 e6 00 00 00 8b 5c 24 4c 8b 74 |...........\$L.t|
001b9030 24 50 8b 7c 24 54 8b 6c 24 58 83 c4 5c c3 66 90 |$P.|$T.l$X..\.f.|
001b9040 89 f8 83 cf 01 83 e0 fe 89 04 24 e8 54 59 ec ff |..........$.TY..|