KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Replace 1-element array in drivers/acpi/acpica/amlresrc.h #248

Closed PauloMigAlmeida closed 6 months ago

PauloMigAlmeida commented 1 year ago

Replace one-element array with flexible-array member:

259 struct aml_resource_extended_irq {
260         AML_RESOURCE_LARGE_HEADER_COMMON u8 flags;
261         u8 interrupt_count;
262         u32 interrupts[1];
263         /* res_source_index, res_source optional fields follow */
264 };
265
PauloMigAlmeida commented 1 year ago

This header file seems to be generated by a script that lives outside of the Linux kernel code base so according to this chat on the LKML, if one wants to change anything, it should be done on the ACPICA repository instead

https://lore.kernel.org/lkml/1AE640813FDE7649BE1B193DEA596E8802632E24@SHSMSX101.ccr.corp.intel.com/

PauloMigAlmeida commented 1 year ago

There are some related conversations going on here:

PauloMigAlmeida commented 1 year ago

As @kees has already opened a PR to fix this and other stuff, I will keep this open (in case I can be of any help).

kees commented 6 months ago

Fixed in commit 376b0fb3ad621ca507c1bdf5636232959bf827e6.