Sudeep Holla
8a7d95f95c
drivers/base: cacheinfo: validate device node for all the caches
...
On architectures that depend on DT for obtaining cache hierarcy, we need
to validate the device node for all the cache indices, failing to do so
might result in wrong information being exposed to the userspace.
This is quite possible on initial/incomplete versions of the device
trees. In such cases, it's better to bail out if all the required device
nodes are not present.
This patch adds checks for the validation of device node for all the
caches and doesn't initialise the cacheinfo if there's any error.
Reported-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Cc: stable <stable@vger.kernel.org> # 4.0
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-25 14:38:41 +01:00
..
power
Merge branches 'pm-domains' and 'pm-cpufreq'
2015-03-06 01:29:31 +01:00
regmap
Merge remote-tracking branches 'regmap/fix/irq', 'regmap/fix/rbtree' and 'regmap/fix/sync' into regmap-linus
2015-03-07 16:18:08 +00:00
attribute_container.c
attribute_container: fix missing blank lines after declarations
2015-03-25 14:35:09 +01:00
base.h
bus.c
driver core: bus: Goto appropriate labels on failure in bus_add_device
2015-03-25 13:40:31 +01:00
cacheinfo.c
drivers/base: cacheinfo: validate device node for all the caches
2015-03-25 14:38:41 +01:00
class.c
drivers: base: class: Add a blank line after declarations
2015-03-25 14:36:19 +01:00
component.c
container.c
core.c
driver core: Delete an unnecessary check before the function call "put_device"
2015-03-25 13:52:35 +01:00
cpu.c
drivers/base: use %*pb[l] to print bitmaps including cpumasks and nodemasks
2015-02-13 21:21:38 -08:00
dd.c
driver core: use *switch* statement in really_probe()
2015-03-25 13:40:31 +01:00
devcoredump.c
devcoredump: provide a one-way disable function
2014-11-26 19:40:12 -08:00
devres.c
devres: Improve devm_kasprintf()/kvasprintf() support
2014-09-23 23:32:50 -07:00
devtmpfs.c
dma-coherent.c
drivers: dma-coherent: add initialization from device tree
2014-10-14 02:18:12 +02:00
dma-contiguous.c
drivers: of: add return value to of_reserved_mem_device_init()
2014-10-29 16:33:14 -07:00
dma-mapping.c
drivers: base: dma-mapping: Erase blank space after pointer
2015-03-25 14:36:19 +01:00
driver.c
driver core: add missing blank line after declaration
2015-03-25 14:36:30 +01:00
firmware.c
firmware_class.c
firmware_class: Fix whitespace and indentation
2015-03-25 14:36:19 +01:00
hypervisor.c
init.c
isa.c
Kconfig
cma: make default CMA area size zero for x86
2014-12-10 17:41:06 -08:00
Makefile
Driver core patches for 3.19-rc1
2014-12-14 16:10:09 -08:00
map.c
drivers: base: map: Use kmalloc_array instead of kmalloc
2015-03-25 14:35:08 +01:00
memory.c
drivers: base: memory: Use tabs instead of spaces
2015-03-25 14:36:20 +01:00
module.c
node.c
drivers: base: node: Delete space after pointer declaration
2015-03-25 14:36:20 +01:00
pinctrl.c
platform.c
Driver core patches for 3.19-rc1
2014-12-14 16:10:09 -08:00
property.c
Driver core: Fix missing whitespace in function argument
2015-03-25 14:35:08 +01:00
soc.c
drivers/base: use tabs where possible in code indentation
2015-03-25 14:37:35 +01:00
syscore.c
genirq: Simplify wakeup mechanism
2014-09-01 13:48:59 +02:00
topology.c
topology: replace custom attribute macros with standard DEVICE_ATTR*
2014-11-07 11:45:00 -08:00
transport_class.c