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

From: Leon Romanovsky
Date: Thu Mar 23 2023 - 06:20:50 EST



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>