linux/drivers/thermal/intel/int340x_thermal
Kees Cook 764cedc563 thermal: int340x: Use struct_group() for memcpy() region
In preparation for FORTIFY_SOURCE performing compile-time and
run-time field bounds checking for memcpy(), avoid intentionally
writing across neighboring fields.

Use struct_group() in struct art around members weight, and
ac[0-9]_max, so they can be referenced together. This will allow
memcpy() and sizeof() to more easily reason about sizes, improve
readability, and avoid future warnings about writing beyond the
end of weight.

"pahole" shows no size nor member offset changes to struct art.
"objdump -d" shows no meaningful object code changes (i.e. only
source line number induced differences).

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2021-11-24 14:31:56 +01:00
..
acpi_thermal_rel.c thermal: int340x: Use struct_group() for memcpy() region 2021-11-24 14:31:56 +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: delete bogus length check 2021-10-05 16:46:27 +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 Alder Lake 2020-12-17 15:29:30 +01:00
int3406_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +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
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_device_pci.c thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume 2021-10-21 11:46:24 +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/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses 2021-11-04 19:56:52 +01:00
processor_thermal_mbox.c thermal: int340x: fix build on 32-bit targets 2021-11-12 10:56:25 -08: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: processor_thermal: Suppot 64 bit RFIM responses 2021-11-04 19:56:52 +01:00