Re: [PATCH v4.19] dm: limit the number of targets and parameter size area

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 06, 2024 at 03:34:35PM +0530, Srish Srinivasan wrote:
> From: Mikulas Patocka <mpatocka@xxxxxxxxxx>
> 
> commit bd504bcfec41a503b32054da5472904b404341a4 upstream.
> 
> The kvmalloc function fails with a warning if the size is larger than
> INT_MAX. The warning was triggered by a syscall testing robot.
> 
> In order to avoid the warning, this commit limits the number of targets to
> 1048576 and the size of the parameter area to 1073741824.
> 
> Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx>
> Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
> Signed-off-by: He Gao <hegao@xxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> [srish: Apply to stable branch linux-4.19.y]
> Signed-off-by: Srish Srinivasan <srish.srinivasan@xxxxxxxxxxxx>
> ---
>  drivers/md/dm-core.h  | 2 ++
>  drivers/md/dm-ioctl.c | 3 ++-
>  drivers/md/dm-table.c | 9 +++++++--
>  3 files changed, 11 insertions(+), 3 deletions(-)
> 

Now queued up, thanks.

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux