summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2023-09-15 22:16:26 +0300
committerDavid S. Miller <davem@davemloft.net>2023-09-18 11:38:32 +0300
commit2506a91734754de690869824fb0d1ac592ec1266 (patch)
tree3a6ef8a7c7f2792e405cc3a34460366469f51f92 /tools/perf/scripts/python/task-analyzer.py
parenta2713257ee2be22827d7bc248302d408c91bfb95 (diff)
downloadlinux-2506a91734754de690869824fb0d1ac592ec1266.tar.xz
tipc: Use size_add() in calls to struct_size()
If, for any reason, the open-coded arithmetic causes a wraparound, the protection that `struct_size()` adds against potential integer overflows is defeated. Fix this by hardening call to `struct_size()` with `size_add()`. Fixes: e034c6d23bc4 ("tipc: Use struct_size() helper") Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions