Re: [PATCH 1/3] media: dvb-usb-v2: lmedm04: Fix firmware macro definitions

2025-10-07 Thread Hans Verkuil
On 08/10/2025 05:59, Kees Cook wrote: > The firmware filename macros incorrectly included semicolons in their > string literal definitions. Right now, this wasn't causing any real > problem, but coming changes to the MODULE_INFO() macro make this more > sensitive. Specifically, when used with MODUL

[PATCH 3/3] module: Add compile-time check for embedded NUL characters

2025-10-07 Thread Kees Cook
Long ago, the kernel module license checks were bypassed by embedding a NUL character in the MODULE_LICENSE() string[1]. By using a string like "GPL\0proprietary text", the kernel would only read "GPL" due to C string termination at the NUL byte, allowing proprietary modules to avoid kernel taintin

[PATCH 1/3] media: dvb-usb-v2: lmedm04: Fix firmware macro definitions

2025-10-07 Thread Kees Cook
The firmware filename macros incorrectly included semicolons in their string literal definitions. Right now, this wasn't causing any real problem, but coming changes to the MODULE_INFO() macro make this more sensitive. Specifically, when used with MODULE_FIRMWARE(), this created syntax errors durin

Re: [PATCH][next] scsi: isci: Avoid -Wflex-array-member-not-at-end warning

2025-10-07 Thread Gustavo A. R. Silva
Hi all, Friendly ping: who can take this, please? Thanks! -Gustavo On 9/19/25 12:24, Gustavo A. R. Silva wrote: -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Move the conflicting declaration (which happens to be in a union, so we're