Sami Tolvanen
d8a936fab6
FROMGIT: driver core: platform: use the correct callback type for bus_find_device
...
platform_find_device_by_driver calls bus_find_device and passes
platform_match as the callback function. Casting the function to a
mismatching type trips indirect call Control-Flow Integrity (CFI) checking.
This change adds a callback function with the correct type and instead
of casting the function, explicitly casts the second parameter to struct
device_driver* as expected by platform_match.
Bug: 145210207
Change-Id: Idef667974d3c54ebd79f0813531cf2523d651dfe
(cherry picked from commit 492c88720d36eb662f9f10c1633f7726fbb07fc4
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
driver-core-next)
Fixes: 36f3313d6b ("platform: Add platform_find_device_by_driver() helper")
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191112214156.3430-1-samitolvanen@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-27 12:49:10 -08:00
..
firmware_loader
FROMGIT: firmware_class: make firmware caching configurable
2019-11-26 17:18:17 +00:00
power
Linux 5.4-rc5
2019-10-28 13:11:46 +01:00
regmap
regmap: Updates for v5.4
2019-09-16 13:57:02 -07:00
test
drivers: base: test: add proper SPDX identifier to Makefile
2019-04-04 20:03:40 +02:00
arch_topology.c
ANDROID: cpufreq: arch_topology: implement max frequency capping
2019-10-01 10:36:33 +01:00
attribute_container.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
base.h
driver/core: Convert to use built-in RCU list checking
2019-08-13 14:28:47 -07:00
bus.c
drivers: Introduce device lookup variants by name
2019-07-30 13:07:41 +02:00
cacheinfo.c
Driver Core and debugfs changes for 5.3-rc1
2019-07-12 12:24:03 -07:00
class.c
driver core: move device->knode_class to device_private
2019-01-18 16:55:48 +01:00
component.c
drivers/component: kerneldoc polish
2019-02-19 13:20:35 +01:00
container.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
core.c
FROMGIT: driver core: Allow device link operations inside sync_state()
2019-11-15 11:43:15 -08:00
cpu.c
x86/bugs: Add ITLB_MULTIHIT bug infrastructure
2019-11-04 12:22:01 +01:00
dd.c
Revert "driver core: Add edit_links() callback for drivers"
2019-08-27 21:41:06 +02:00
devcon.c
Merge generic_lookup_helpers into usb-next
2019-09-03 17:11:07 +02:00
devcoredump.c
devcoredump: fix typo in comment
2019-08-15 17:38:11 +02:00
devres.c
drivers/base/devres: introduce devm_release_action()
2019-06-13 17:34:56 -10:00
devtmpfs.c
vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount API
2019-09-12 21:05:34 -04:00
driver.c
driver_find_device: Unify the match function with class_find_device()
2019-06-24 05:22:31 +02:00
firmware.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
hypervisor.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
init.c
base: fix order of OF initialization
2018-07-07 17:54:29 +02:00
isa.c
Merge 4.15-rc3 into driver-core-next
2017-12-11 08:50:05 +01:00
Kconfig
base: arch_topology: update Kconfig help description
2019-07-22 09:36:44 -07:00
Makefile
drivers: base: Introducing software nodes to the firmware node framework
2018-11-26 18:19:11 +01:00
map.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
memory.c
mm/memory_hotplug: fix try_offline_node()
2019-11-15 18:34:00 -08:00
module.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
node.c
FROMLIST: scs: add accounting
2019-11-27 12:49:09 -08:00
pinctrl.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00
platform-msi.c
platform-msi: Free descriptors in platform_msi_domain_free()
2018-12-13 09:35:31 +00:00
platform.c
FROMGIT: driver core: platform: use the correct callback type for bus_find_device
2019-11-27 12:49:10 -08:00
property.c
device property: Introduce fwnode_find_reference()
2019-06-03 10:55:38 +02:00
soc.c
UPSTREAM: base: soc: Handle custom soc information sysfs entries
2019-10-17 13:15:53 -07:00
swnode.c
software node: Initialize the return value in software_node_find_by_name()
2019-09-11 19:10:12 +02:00
syscore.c
Linux 5.2-rc1
2019-05-20 20:17:24 +02:00
topology.c
topology: Create core_cpus and die_cpus sysfs attributes
2019-05-23 10:08:34 +02:00
transport_class.c
driver core: Remove redundant license text
2017-12-07 18:36:44 +01:00