aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNicolai Stange <[email protected]>2017-09-11 07:45:42 +0000
committerGreg Kroah-Hartman <[email protected]>2017-09-18 15:16:47 +0000
commitbf563b01c2895a4bfd1a29cc5abc67fe706ecffd (patch)
treea056ace162f3bde309cd5e763a1cd11aa8c3cc13 /tools/perf/scripts/python/event_analyzing_sample.py
parentbase: arch_topology: fix section mismatch build warnings (diff)
downloadkernel-bf563b01c2895a4bfd1a29cc5abc67fe706ecffd.tar.gz
kernel-bf563b01c2895a4bfd1a29cc5abc67fe706ecffd.zip
driver core: platform: Don't read past the end of "driver_override" buffer
When printing the driver_override parameter when it is 4095 and 4094 bytes long, the printing code would access invalid memory because we need count+1 bytes for printing. Reject driver_override values of these lengths in driver_override_store(). This is in close analogy to commit 4efe874aace5 ("PCI: Don't read past the end of sysfs "driver_override" buffer") from Sasha Levin. Fixes: 3d713e0e382e ("driver core: platform: add device binding path 'driver_override'") Cc: [email protected] # v3.17+ Signed-off-by: Nicolai Stange <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions