commit d0f6cfb2bd165b0aa307750e07e03420859bd554 upstream.
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:
|
||
|---|---|---|
| .. | ||
| broadcom | ||
| intel | ||
| qcom | ||
| samsung | ||
| st | ||
| tegra | ||
| ti-soc-thermal | ||
| Kconfig | ||
| Makefile | ||
| amlogic_thermal.c | ||
| armada_thermal.c | ||
| cpufreq_cooling.c | ||
| cpuidle_cooling.c | ||
| da9062-thermal.c | ||
| db8500_thermal.c | ||
| devfreq_cooling.c | ||
| dove_thermal.c | ||
| gov_bang_bang.c | ||
| gov_fair_share.c | ||
| gov_power_allocator.c | ||
| gov_step_wise.c | ||
| gov_user_space.c | ||
| hisi_thermal.c | ||
| imx8mm_thermal.c | ||
| imx_sc_thermal.c | ||
| imx_thermal.c | ||
| k3_bandgap.c | ||
| khadas_mcu_fan.c | ||
| kirkwood_thermal.c | ||
| max77620_thermal.c | ||
| mtk_thermal.c | ||
| qoriq_thermal.c | ||
| rcar_gen3_thermal.c | ||
| rcar_thermal.c | ||
| rockchip_thermal.c | ||
| spear_thermal.c | ||
| sprd_thermal.c | ||
| sun8i_thermal.c | ||
| tango_thermal.c | ||
| thermal-generic-adc.c | ||
| thermal_core.c | ||
| thermal_core.h | ||
| thermal_helpers.c | ||
| thermal_hwmon.c | ||
| thermal_hwmon.h | ||
| thermal_mmio.c | ||
| thermal_netlink.c | ||
| thermal_netlink.h | ||
| thermal_of.c | ||
| thermal_sysfs.c | ||
| uniphier_thermal.c | ||
| zx2967_thermal.c | ||