[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <C3050A4DBA34F345975765E43127F10F8B77159A@dggemm511-mbs.china.huawei.com>
Date: Fri, 4 May 2018 07:07:30 +0000
From: Caizhiyong <caizhiyong@...ilicon.com>
To: Wang YanQing <udknight@...il.com>,
"axboe@...nel.dk" <axboe@...nel.dk>
CC: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"pombredanne@...b.com" <pombredanne@...b.com>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"linux-block@...r.kernel.org" <linux-block@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Jiangheng <jiangheng@...ilicon.com>
Subject: RE: [PATCH] block: add verifier for cmdline partition
> -----Original Message-----
> From: Wang YanQing [mailto:udknight@...il.com]
> Sent: Thursday, May 03, 2018 7:18 PM
> To: axboe@...nel.dk
> Cc: gregkh@...uxfoundation.org; pombredanne@...b.com;
> tglx@...utronix.de; Caizhiyong <caizhiyong@...ilicon.com>; linux-
> block@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: [PATCH] block: add verifier for cmdline partition
>
> I meet strange filesystem corruption issue recently, the reason
> is there are overlaps partitions in cmdline partition argument.
>
> This patch add verifier for cmdline partition, then if there are
> overlaps partitions, cmdline_partition will return error and log
> a error message.
>
Partition overlap was intentionally designed in this cmdline partition.
some time, the cmdline partition save raw data(not filesystem), the overlap makes data access very convenient.
reference http://lists.infradead.org/pipermail/linux-mtd/2013-August/048092.html
> Signed-off-by: Wang YanQing <udknight@...il.com>
> ---
> block/partitions/cmdline.c | 63
> +++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 62 insertions(+), 1 deletion(-)
>
Powered by blists - more mailing lists