From: Willy Tarreau <w@1wt.eu>
To: Roland Kletzing <devzero@web.de>
Cc: linux-kernel@vger.kernel.org, adrian.hunter@intel.com,
Artem.Bityutskiy@nokia.com
Subject: Re: [BUG] Re: mtd_stresstest module bricked my dockstar
Date: Mon, 24 Oct 2011 22:09:27 +0200 [thread overview]
Message-ID: <20111024200927.GH5632@1wt.eu> (raw)
In-Reply-To: <B10F15EA8AB74E698DC0D94563A30BE7@samsungnetbook>
Hello Roland,
On Mon, Oct 24, 2011 at 09:32:42PM +0200, Roland Kletzing wrote:
> Yes, i think accidentally insmodding "mtd_stresstest" has just wiped it,
> not killed.
> The problem is, that it is important stuff for booting and you can`t pull
> it out and
> re-write externally, like a disk. Sorry, i that was probably not clearly
> stated.
>
> Anyway - what would people think if linux had a kernel module which wipes
> /dev/sda1 when loaded ? :)
I totally agree. And on some machines, you might have mtd0 mapped to a
real block device.
> >I got one Iomega Iconnect with a faulty flash that I got replaced for a
> >good one, so it's more likely the case here.
>
> Yes, i could give debricking with JTAG a try. But what about the cost for
> the JTAG
> and the work to be spent with it? I could buy another Dockstar for that.....
it's cheap, download openocd and make a Wiggler cable. It requires very
little hardware. I don't see why it wouldn't work, I've done that to try
to port Linux to a miniature ARM platform a few years ago (it was pretty
funny). You just need one rainy sunday afternoon.
> static int dev; <-!
> module_param(dev, int, S_IRUGO);
> MODULE_PARM_DESC(dev, "MTD device number to use");
...
> My kernel log showed:
>
> mtd_stresstest: MTD device: 0
> mtd_stresstest: MTD device size 1048576 etc...
Ooops.
> So, apparenly the module accidentally picked mtd0 instead of exiting
> cleanly (as
> i did not pass a device number)
>
> I`m not a programmer, but doesn`t look that like an "unitialized variable"
> issue ?
You're pretty right indeed ! I think the code has only be tested with
devices that ought to be killed, otherwise the author would have noticed
it quickly.
> If yes, then i would call my Dockstar "victim of a bug".
One more reason to try to resurrect it ;-)
Cheers,
Willy
next prev parent reply other threads:[~2011-10-24 20:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-23 18:37 mtd_stresstest module bricked my dockstar Roland Kletzing
2011-10-24 5:57 ` Willy Tarreau
2011-10-24 19:32 ` [BUG] " Roland Kletzing
2011-10-24 19:53 ` Wolfram Sang
2011-10-24 21:04 ` Artem Bityutskiy
2011-10-24 21:24 ` Wolfram Sang
2011-10-24 22:16 ` Artem Bityutskiy
2011-10-24 20:09 ` Willy Tarreau [this message]
2011-10-24 21:08 ` Artem Bityutskiy
-- strict thread matches above, loose matches on Subject: below --
2011-10-24 21:31 Roland Kletzing
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=20111024200927.GH5632@1wt.eu \
--to=w@1wt.eu \
--cc=Artem.Bityutskiy@nokia.com \
--cc=adrian.hunter@intel.com \
--cc=devzero@web.de \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).