lkml.org 
[lkml]   [2018]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] block: add verifier for cmdline partition
Date
> -----Original Message-----
> From: Wang YanQing [mailto:udknight@gmail.com]
> Sent: Thursday, May 03, 2018 7:18 PM
> To: axboe@kernel.dk
> Cc: gregkh@linuxfoundation.org; pombredanne@nexb.com;
> tglx@linutronix.de; Caizhiyong <caizhiyong@hisilicon.com>; linux-
> block@vger.kernel.org; linux-kernel@vger.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@gmail.com>
> ---
> block/partitions/cmdline.c | 63
> +++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 62 insertions(+), 1 deletion(-)
>

\
 
 \ /
  Last update: 2018-05-04 09:08    [W:0.051 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site