[dm-devel] dm-integrity: fix the maximum number of arguments

Mike Snitzer snitzer at redhat.com
Tue Jan 12 20:04:17 UTC 2021


On Tue, Jan 12 2021 at  2:54pm -0500,
Mikulas Patocka <mpatocka at redhat.com> wrote:

> Advance the maximum number of arguments to 15.
> 
> Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>
> Cc: stable at vger.kernel.org	# v4.19+
> 
> ---
>  drivers/md/dm-integrity.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-2.6/drivers/md/dm-integrity.c
> ===================================================================
> --- linux-2.6.orig/drivers/md/dm-integrity.c	2021-01-12 20:45:23.000000000 +0100
> +++ linux-2.6/drivers/md/dm-integrity.c	2021-01-12 20:46:15.000000000 +0100
> @@ -3792,7 +3792,7 @@ static int dm_integrity_ctr(struct dm_ta
>  	unsigned extra_args;
>  	struct dm_arg_set as;
>  	static const struct dm_arg _args[] = {
> -		{0, 9, "Invalid number of feature args"},
> +		{0, 15, "Invalid number of feature args"},
>  	};
>  	unsigned journal_sectors, interleave_sectors, buffer_sectors, journal_watermark, sync_msec;
>  	bool should_write_sb;

Can you please expand on which args weren't accounted for?
Which commit introduced the problem? (I'd like a "Fixes:" reference)

Thanks,
Mike




More information about the dm-devel mailing list