OpenCloudOS-Kernel/drivers/thermal/intel/int340x_thermal
Kees Cook d0f6cfb2bd thermal: int340x: Fix attr.show callback prototype
Control Flow Integrity (CFI) instrumentation of the kernel noticed that
the caller, dev_attr_show(), and the callback, odvp_show(), did not have
matching function prototypes, which would cause a CFI exception to be
raised. Correct the prototype by using struct device_attribute instead
of struct kobj_attribute.

Reported-and-tested-by: Joao Moreira <joao@overdrivepizza.com>
Link: https://lore.kernel.org/lkml/067ce8bd4c3968054509831fa2347f4f@overdrivepizza.com/
Fixes: 006f006f1e ("thermal/int340x_thermal: Export OEM vendor variables")
Cc: 5.8+ <stable@vger.kernel.org> # 5.8+
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-04-21 20:13:47 +02:00
..
Kconfig thermal: int340x: Limit Kconfig to 64-bit 2021-11-16 20:16:35 +01:00
Makefile thermal/drivers/int340x/processor_thermal: Add PCI MMIO based thermal driver 2021-07-04 18:28:04 +02:00
acpi_thermal_rel.c thermal: Replace acpi_bus_get_device() 2022-02-04 19:33:18 +01:00
acpi_thermal_rel.h thermal: int340x: Use struct_group() for memcpy() region 2021-11-24 14:31:56 +01:00
int340x_thermal_zone.c thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID 2021-05-14 09:37:27 +02:00
int340x_thermal_zone.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
int3400_thermal.c thermal: int340x: Fix attr.show callback prototype 2022-04-21 20:13:47 +02:00
int3401_thermal.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
int3402_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
int3403_thermal.c thermal: int340x: Support Raptor Lake 2022-01-17 19:48:07 +01:00
int3406_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
processor_thermal_device.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
processor_thermal_device.h thermal: int340x: Add Raptor Lake PCI device id 2022-01-17 19:48:07 +01:00
processor_thermal_device_pci.c thermal: int340x: Add Raptor Lake PCI device id 2022-01-17 19:48:07 +01:00
processor_thermal_device_pci_legacy.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +02:00
processor_thermal_mbox.c thermal/drivers/int340x: Fix RFIM mailbox write commands 2021-12-30 16:42:53 +01:00
processor_thermal_rapl.c thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
processor_thermal_rfim.c thermal/drivers/int340x: Fix RFIM mailbox write commands 2021-12-30 16:42:53 +01:00