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]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux