Re: [PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-22 Thread Rafael J. Wysocki
On Friday, June 12, 2020 6:51:50 AM CEST Nathan Chancellor wrote: > When running a kernel with Clang's Control Flow Integrity implemented, > there is a violation that happens when accessing > /sys/firmware/acpi/pm_profile: > > $ cat /sys/firmware/acpi/pm_profile > 0 > > $ dmesg > ... > [

Re: [PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-12 Thread Nathan Chancellor
On Thu, Jun 11, 2020 at 11:17:14PM -0700, Kees Cook wrote: > On Thu, Jun 11, 2020 at 09:51:50PM -0700, Nathan Chancellor wrote: > > When running a kernel with Clang's Control Flow Integrity implemented, > > there is a violation that happens when accessing > > /sys/firmware/acpi/pm_profile: > > >

Re: [PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-12 Thread Kees Cook
On Thu, Jun 11, 2020 at 09:51:50PM -0700, Nathan Chancellor wrote: > When running a kernel with Clang's Control Flow Integrity implemented, > there is a violation that happens when accessing > /sys/firmware/acpi/pm_profile: > > $ cat /sys/firmware/acpi/pm_profile > 0 > > $ dmesg > ... > [

[PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-11 Thread Nathan Chancellor
When running a kernel with Clang's Control Flow Integrity implemented, there is a violation that happens when accessing /sys/firmware/acpi/pm_profile: $ cat /sys/firmware/acpi/pm_profile 0 $ dmesg ... [ 17.352564] [ cut here ] [ 17.352568] CFI failure (target: