summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDavid Laight <david.laight.linux@gmail.com>2026-08-29 12:58:12 +0100
committerJakub Kicinski <kuba@kernel.org>2026-08-31 20:02:36 -0700
commit81c600c26302a27852ed8b19c5f2f647ea3555c9 (patch)
tree161db08e388efe84985269b35c60db07761c2885 /tools/perf/scripts/python/bin
parentb3b76e9f4f2476f1135b2ba7743a821db4a0df4b (diff)
tipc: Dont send random pad bytes in RESET/ACTIVATE messages
The interface name is passed in a fixed length (TIPC_MAX_IF_NAME) buffer. Replace the strcpy(data, l->if_name) with memcpy() so that the pad bytes are actually written (l->if_name[] is zero padded) rather than sending random bytes from the skb to the remote system. Replace two other strcpy() with strscpy(). Fixes: e74a386d70c7 ("tipc: remove pre-allocated message header in link struct") Signed-off-by: David Laight <david.laight.linux@gmail.com> Reviewed-by: Tung Nguyen <tung.quang.nguyen@est.tech> Link: https://patch.msgid.link/20260829115813.188600-1-david.laight.linux@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions