diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-09-29 23:17:18 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-10-01 03:27:03 +0300 |
commit | 129291980f4901ae68ee3ba4344bdc38cf5f800d (patch) | |
tree | d2f1074bfe1592582b38b3757e741067eaf82b4f /tools/perf/scripts/python | |
parent | dd9a887b35b01d7027f974f5e7936f1410ab51ca (diff) | |
download | linux-129291980f4901ae68ee3ba4344bdc38cf5f800d.tar.xz |
net: sched: Use struct_size() helper in kvmalloc()
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
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210929201718.GA342296@embeddedor
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions