Messages in this thread | | | From | "Martin K. Petersen" <> | Subject | Re: [PATCH][next] scsi: target: tcmu: Use struct_size() helper in kmalloc() | Date | Tue, 12 Oct 2021 16:35:10 -0400 |
| |
On Mon, 27 Sep 2021 17:43:44 -0500, Gustavo A. R. Silva wrote:
> 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 worst scenario, could lead to heap overflows. > >
Applied to 5.16/scsi-queue, thanks!
[1/1] scsi: target: tcmu: Use struct_size() helper in kmalloc() https://git.kernel.org/mkp/scsi/c/c20bda341946
-- Martin K. Petersen Oracle Linux Engineering
| |