From: "Brian T" <btuch@usa.net>
To: "David Woodhouse" <dwmw2@infradead.org>,
"Jon Ringle" <JRingle@vertical.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Clobbered file after jffs2 mount
Date: Sat, 22 Sep 2007 09:43:23 -0500 [thread overview]
Message-ID: <03f301c7fd26$edcd5570$0260a8c0@p4p800> (raw)
In-Reply-To: 1190425861.7150.212.camel@pmac.infradead.org
Been reading this thread, and I was wondering what kind of hardware this is running on? I
remember running into something like this a few years ago on my companies own embedded
hardware, and the cause turned out to be a problem with an internal Multitech modem's
firmware on the same bus which was interfering with reading the jffs2 file system.
I would see many ( but not all ) of the sym links on the file system pointing to garbage
links like syslogd -> /m/m/m/m/m/m/m/s/s/s/s/e/e/e/ and also other programs on the system
would not run properly. After a reboot they would be fine for days to weeks.
Thought I would offer that up.
-Brian
> On Fri, 2007-09-21 at 21:35 -0400, Jon Ringle wrote:
>> I tried init=/bin/sh on a first boot after reflash and the md5sum of
>> sshd was correct. I then rebooted again normally and the ssh keys were
>> generated. When I logged in, the md5sum of sshd was wrong. The
>> corruption that I observe is always the same incorrect md5sum.
>
> But there's no corruption on the _flash_ -- if you boot with
> init=/bin/sh again after the keys are generated, you again get the
> _correct_ md5sum? I'm fairly certain of that, since the failure mode
> you'll get if you manage to scribble on the flash is that the data CRC
> will fail and you'll get zeroes where the offending nodes go missing.
>
> It's going to be something scribbling on the RAM pages after the file is
> read from the file system. Be thankful it looks fairly repeatable. Can
> you put a hardware watchpoint on the offending page in the page cache,
> after it's read? And can you disable _everything_ in the system which
> uses DMA, one at a time?
>
next prev parent reply other threads:[~2007-09-22 14:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 17:23 Clobbered file after jffs2 mount Jon Ringle
2007-09-21 23:38 ` David Woodhouse
2007-09-22 1:35 ` Jon Ringle
2007-09-22 1:51 ` David Woodhouse
2007-09-22 14:43 ` Brian T [this message]
2007-09-23 22:20 ` Jon Ringle
2007-09-24 14:26 ` Brian T
2007-09-25 15:57 ` Jon Ringle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='03f301c7fd26$edcd5570$0260a8c0@p4p800' \
--to=btuch@usa.net \
--cc=JRingle@vertical.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox