[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87k0o17p6l.fsf@kernel.org>
Date: Fri, 14 May 2021 10:24:50 +0300
From: Felipe Balbi <balbi@...nel.org>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH][next] usb: gadget: s3c-hsudc: Use struct_size() in
devm_kzalloc()
"Gustavo A. R. Silva" <gustavoars@...nel.org> writes:
> Make use of the struct_size() helper instead of an open-coded version,
> in order to avoid any potential type mistakes or integer overflows
> that, in the worse scenario, could lead to heap overflows.
>
> This code was detected with the help of Coccinelle and, audited and
> fixed manually.
>
> Signed-off-by: Gustavo A. R. Silva <gustavoars@...nel.org>
Acked-by: Felipe Balbi <balbi@...nel.org>
--
balbi
Download attachment "signature.asc" of type "application/pgp-signature" (512 bytes)
Powered by blists - more mailing lists