Files
linux/drivers/base
Nicolai Stange 2b91a52e15 driver core: platform: Don't read past the end of "driver_override" buffer
commit bf563b01c2 upstream.

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 4efe874aac ("PCI: Don't read past the
end of sysfs "driver_override" buffer") from Sasha Levin.

Fixes: 3d713e0e38 ("driver core: platform: add device binding path 'driver_override'")
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-12 11:27:32 +02:00
..
2015-09-17 06:06:54 -07:00
2014-07-04 18:05:05 +01:00
2017-07-21 07:44:58 +02:00
2015-10-04 19:42:22 +01:00
2014-09-01 13:48:59 +02:00