lkml.org 
[lkml]   [2023]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2][next] RDMA/core: Fix multiple -Warray-bounds warnings
Date

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@kernel.org>

\
 
 \ /
  Last update: 2023-03-27 01:13    [W:0.035 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site