Nicolai Stange
bf563b01c2
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 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'")
Cc: stable@vger.kernel.org # v3.17+
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 17:16:47 +02:00
..
power
Merge branch 'pm-sleep'
2017-09-04 00:06:02 +02:00
regmap
regmap: regmap-w1: Fix build troubles
2017-07-17 15:53:00 +01:00
test
arch_topology.c
base: arch_topology: fix section mismatch build warnings
2017-09-18 17:05:07 +02:00
attribute_container.c
base.h
driver core: make device_{add|remove}_groups() public
2017-07-22 11:59:23 +02:00
bus.c
driver core: bus: Fix a potential double free
2017-08-31 18:57:30 +02:00
cacheinfo.c
class.c
component.c
container.c
core.c
Do not disable driver and bus shutdown hook when class shutdown hook is set.
2017-08-28 18:02:46 +02:00
cpu.c
treewide: make "nr_cpu_ids" unsigned
2017-09-08 18:26:48 -07:00
dd.c
initcall_debug: add deferred probe times
2017-08-03 17:48:49 -07:00
devcoredump.c
devres.c
devtmpfs.c
dma-coherent.c
dma-coherent: fix dma_declare_coherent_memory() logic error
2017-09-05 13:23:11 +02:00
dma-contiguous.c
dma-mapping.c
dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags
2017-09-01 11:59:17 +02:00
driver.c
firmware.c
firmware_class.c
Revert "firmware: add sanity check on shutdown/suspend"
2017-09-10 21:19:06 -07:00
hypervisor.c
init.c
isa.c
Kconfig
firmware: Restore support for built-in firmware
2017-09-16 10:58:48 -07:00
Makefile
map.c
memory.c
mm, memory_hotplug: remove zone restrictions
2017-09-06 17:27:25 -07:00
module.c
node.c
mm: change the call sites of numa statistics items
2017-09-08 18:26:47 -07:00
pinctrl.c
platform-msi.c
platform.c
driver core: platform: Don't read past the end of "driver_override" buffer
2017-09-18 17:16:47 +02:00
property.c
device property: Introduce fwnode_property_get_reference_args
2017-07-22 00:04:51 +02:00
soc.c
syscore.c
topology.c
base: topology: constify attribute_group structures.
2017-08-28 17:49:22 +02:00
transport_class.c