[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <167956684067.1736808.5456264646526617079.b4-ty@kernel.org>
Date: Thu, 23 Mar 2023 12:20:40 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Jason Gunthorpe <jgg@...pe.ca>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2][next] RDMA/core: Fix multiple -Warray-bounds warnings
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@...nel.org>
Powered by blists - more mailing lists