public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: [BUG] Re: mtd_stresstest module bricked my dockstar
@ 2011-10-24 21:31 Roland Kletzing
  0 siblings, 0 replies; 5+ messages in thread
From: Roland Kletzing @ 2011-10-24 21:31 UTC (permalink / raw)
  To: Wolfram Sang, dedekind1
  Cc: linux-kernel, linux-mtd, Willy Tarreau, adrian.hunter

>> > Anyway - what would people think if linux had a kernel module which wipes
>> > /dev/sda1 when loaded ? :)
>
>Yeah, the tests are destructive and they start erasing and torturing
>your MTD device without preserving your data.
>
>And the bad thing is - if you do not pass any parameter, they will
>torture your mtd0.
>
>I am sorry that you bricked your device and I hope you will be able to
>resurrect it.

That will be an exercise....

>This was an oversight. The tests were written for
>validating new drivers and making sure they are robust. So we always
>assumed people run them on a development HW, not on a production HW.
>That was a false implicit assumption.

No problem, i think it will not beggar me. I was a little bit disappointed at 
first, but when re-thinking i think it`s just a result of some carelessnes 
of me (as the user) and also of you developers of that modules (as nobody
expected that it could be accidentally loaded or even exist because of some
foreign kernel .config). nice to see the positive reaction on my report.

>Yes, we should use -1 as the default value, and print a scary warning
>message when the module is inserted without a parameter. We should
>probably also put word "destructive" or something like this to the
>module description.

Great! That sounds good. I think i will happily test if a fix is working, but
most likely not on my other Dockstar. Maybe block2mtd on top of a file-backed
loopdevice will provide a safe test-environment on my x86 box..... :)

regards
Roland


___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <69501156.1798237.1319395066798.JavaMail.fmail@mwmweb003>]

end of thread, other threads:[~2011-10-24 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-24 21:31 [BUG] Re: mtd_stresstest module bricked my dockstar Roland Kletzing
     [not found] <69501156.1798237.1319395066798.JavaMail.fmail@mwmweb003>
     [not found] ` <20111024055705.GA4020@1wt.eu>
     [not found]   ` <B10F15EA8AB74E698DC0D94563A30BE7@samsungnetbook>
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox