aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2020-11-02 14:20:00 +0000
committerGreg Kroah-Hartman <[email protected]>2020-11-03 10:12:10 +0100
commite8f50d4bfc8deff61adc74146f130860c4fe356f (patch)
treee9080c1c4cb86d70c8e00bbfab7a6c92758ae673 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentc78c95f919539cad0308e7de0d5d0d656e4a8e98 (diff)
misc: c2port: core: Make copying name from userspace more secure
Currently the 'c2dev' device data is not initialised when it's allocated. There maybe an issue when using strncpy() to populate the 'name' attribute since a NUL terminator may not be provided in all use-cases. To prevent such a failing, let's ensure the 'c2dev' device data area is fully zeroed out on allocation. Cc: Rodolfo Giometti <[email protected]> Cc: "Eurotech S.p.A" <[email protected]> Cc: David Laight <[email protected]> Reported-by: Geert Uytterhoeven <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions