summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-09-27 17:43:44 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2021-10-04 23:29:38 -0400
commitc20bda341946c8ee77baec3bec7c5cd615ddf869 (patch)
tree681d29954125775089b7b2ecff93741db47f975b /tools/perf/scripts/python/bin
parent5384ee089d1f79b027bb62b0cfa729890ca71f8b (diff)
downloadlinux-c20bda341946c8ee77baec3bec7c5cd615ddf869.tar.gz
linux-c20bda341946c8ee77baec3bec7c5cd615ddf869.zip
scsi: target: tcmu: Use struct_size() helper in kmalloc()
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. Link: https://github.com/KSPP/linux/issues/160 Link: https://lore.kernel.org/r/20210927224344.GA190701@embeddedor Reviewed-by: Bodo Stroesser <bostroesser@gmail.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions