All of lore.kernel.org
 help / color / mirror / Atom feed
* securely wipe sensitive data from mtd?
@ 2019-02-24  8:04 coreassumption
  2019-02-24  9:20 ` Richard Weinberger
  0 siblings, 1 reply; 2+ messages in thread
From: coreassumption @ 2019-02-24  8:04 UTC (permalink / raw)
  To: linux-mtd

What is the proper way to clean a mtd of any sensitive data that may be located on them (NOR and NAND)?

Would flashing a new image via uBoot be enough?  Or would the wear leveling mechanism prevent this from clearing everything?

Would writing 0's from a running OS's be sufficient?  Or is the device 'smart' and not write zero streams?

Are multiple passes of writing suggested or is this just a holdover from myths of magnetic mediums?

Thanks for any insights.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: securely wipe sensitive data from mtd?
  2019-02-24  8:04 securely wipe sensitive data from mtd? coreassumption
@ 2019-02-24  9:20 ` Richard Weinberger
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Weinberger @ 2019-02-24  9:20 UTC (permalink / raw)
  To: coreassumption; +Cc: linux-mtd

On Sun, Feb 24, 2019 at 9:04 AM coreassumption
<coreassumption@protonmail.com> wrote:
>
> What is the proper way to clean a mtd of any sensitive data that may be located on them (NOR and NAND)?
>
> Would flashing a new image via uBoot be enough?  Or would the wear leveling mechanism prevent this from clearing everything?
>
> Would writing 0's from a running OS's be sufficient?  Or is the device 'smart' and not write zero streams?

This is not how flash works. You cannot overwrite anything.

> Are multiple passes of writing suggested or is this just a holdover from myths of magnetic mediums?

Well, if you do a block erase the data should be gone. But you can
never be sure that the flash chip really does.
So, like for any other storage type, encrypt the data and throw the
key away. :-)

-- 
Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-24  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-24  8:04 securely wipe sensitive data from mtd? coreassumption
2019-02-24  9:20 ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.