aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-02-16 15:31:32 -0800
committerFlorian Westphal <[email protected]>2024-02-21 12:03:22 +0100
commit26f4dac11775a1ca24e2605cb30e828d4dbdea93 (patch)
tree52cacb9a443fc1fa968444b233b18d65137a4b4a /tools/perf/scripts/python/Perf-Trace-Util
parent3f801968889459ecae1eab524b039676e6eaa319 (diff)
netfilter: x_tables: Use unsafe_memcpy() for 0-sized destination
The struct xt_entry_target fake flexible array has not be converted to a true flexible array, which is mainly blocked by it being both UAPI and used in the middle of other structures. In order to properly check for 0-sized destinations in memcpy(), an exception must be made for the one place where it is still a destination. Since memcpy() was already skipping checks for 0-sized destinations, using unsafe_memcpy() is no change in behavior. Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Florian Westphal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions