From: Artem Bityutskiy <dedekind1@gmail.com>
To: Michal Suchanek <hramrach@gmail.com>,
Richard Weinberger <richard@nod.at>
Cc: Tim Harvey <tharvey@gateworks.com>,
Adrian Hunter <adrian.hunter@intel.com>,
MTD Maling List <linux-mtd@lists.infradead.org>
Subject: Re: UBIFS corruption after power cut - possibly unstable bits issue?
Date: Tue, 03 Nov 2015 12:43:11 +0200 [thread overview]
Message-ID: <1446547391.6126.145.camel@gmail.com> (raw)
In-Reply-To: <CAOMqctQz=MnPMw2Dq-SFGwa1g7tPw7jG25Rh9=W4xkw-__HXDg@mail.gmail.com>
On Tue, 2015-11-03 at 11:06 +0100, Michal Suchanek wrote:
> it has been pointed out that this assumption on the part of UBI that
> erased pages are composed of 0xff bytes is just wrong.
>
> Here it is wrong in the sense that the pages are not bit-perfect but
> there are other reasons why it may go wrong.
>
> - if the nand controller uses randomization layer the pages are 0xff
> bytes transformed by the randomization layer
>
> - if MTD grows full-disk encryption then reading a page of 0xff bytes
> will yield what this page decrypts to using current encryption scheme
>
> The layering is wrong here. The MTD core should provide a function to
> check if a physical page is empty and the driver should provide
> driver-specific implementation if needed.
Yes, this was discussed, and the missing part is patches. The reason I
am replying to you is that I find the wording you are using to be
inaccurate.
The assumptions were not wrong when this stuff was designed,
implemented, tested and used in production. And for that hardware they
are not wrong.
Nowadays the situation is different, the HW is different. It is not the
same as the HW UBIFS was implemented and tested for. UBIFS needs to be
adjusted in order to support that hardware. "Wrong wrong wrong" is
incorrect wording, please do not use it. Please, use "needs more work",
"needs extending", "needs to support bit-flips in empty space", etc.
And layering is not wrong. We do not implement useless MTD methods for
something which does not exist in the Linux kernel. Please, introduce
the encryption support, introduce that driver with that method, and
then refactor the code. Please, do not use word "wrong", because it is
not the correct word for this situation, and it is unnecessarily
negative.
Thank you!
prev parent reply other threads:[~2015-11-03 10:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 19:37 UBIFS corruption after power cut - possibly unstable bits issue? Tim Harvey
2015-10-26 20:01 ` Richard Weinberger
2015-10-26 20:31 ` Tim Harvey
2015-10-26 21:41 ` Richard Weinberger
2015-10-27 19:01 ` Tim Harvey
2015-10-27 19:52 ` Richard Weinberger
2015-11-02 20:27 ` Tim Harvey
2015-11-02 20:31 ` Tim Harvey
2015-11-02 21:31 ` Richard Weinberger
2015-11-02 22:11 ` Brian Norris
2015-11-03 13:38 ` Boris Brezillon
2015-11-16 15:01 ` Tim Harvey
2015-11-30 21:58 ` Tim Harvey
2015-12-01 9:12 ` Boris Brezillon
2015-11-03 9:10 ` Artem Bityutskiy
2015-11-03 10:06 ` Michal Suchanek
2015-11-03 10:18 ` Ricard Wanderlof
2015-11-03 10:43 ` Artem Bityutskiy [this message]
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=1446547391.6126.145.camel@gmail.com \
--to=dedekind1@gmail.com \
--cc=adrian.hunter@intel.com \
--cc=hramrach@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=richard@nod.at \
--cc=tharvey@gateworks.com \
/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).