Re: [PATCH] RDMA/mlx: prevent shift wrapping in set_user_sq_size()

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

 



On Tue, 07 Mar 2023 12:51:27 +0300, Dan Carpenter wrote:
> The ucmd->log_sq_bb_count variable is controlled by the user so this
> shift can wrap.  Fix it by using check_shl_overflow() in the same way
> that it was done in commit 515f60004ed9 ("RDMA/hns: Prevent undefined
> behavior in hns_roce_set_user_sq_size()").
> 
> 

Applied, thanks!

[1/1] RDMA/mlx: prevent shift wrapping in set_user_sq_size()
      https://git.kernel.org/rdma/rdma/c/9b88b0fcab7461

Best regards,
-- 
Leon Romanovsky <leon@xxxxxxxxxx>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux