Re: [PATCH v2][next] RDMA/core: Fix multiple -Warray-bounds warnings

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

 



On Tue, 21 Mar 2023 17:47:03 -0600, Gustavo A. R. Silva wrote:
> GCC-13 (and Clang)[1] does not like to access a partially allocated
> object, since it cannot reason about it for bounds checking.
> 
> In this case 140 bytes are allocated for an object of type struct
> ib_umad_packet:
> 
>         packet = kzalloc(sizeof(*packet) + IB_MGMT_RMPP_HDR, GFP_KERNEL);
> 
> [...]

Applied, thanks!

[1/1] RDMA/core: Fix multiple -Warray-bounds warnings
      https://git.kernel.org/rdma/rdma/c/aa4d540b415005

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