[GIT PULL] hardening fixes for v6.11-rc4
From: Kees Cook
Date: Thu Aug 15 2024 - 14:08:40 EST
Hi Linus,
Please pull these various hardening fixes for v6.11-rc4.
Thanks!
-Kees
The following changes since commit de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed:
Linux 6.11-rc2 (2024-08-04 13:50:53 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/hardening-v6.11-rc4
for you to fetch changes up to fb6a421fb6153d97cf3058f9bd550b377b76a490:
kallsyms: Match symbols exactly with CONFIG_LTO_CLANG (2024-08-15 09:33:35 -0700)
----------------------------------------------------------------
hardening fixes for v6.11-rc4
- gcc-plugins: randstruct: Remove GCC 4.7 or newer requirement
(Thorsten Blum)
- kallsyms: Clean up interaction with LTO suffixes (Song Liu)
- refcount: Report UAF for refcount_sub_and_test(0) when counter==0
(Petr Pavlu)
- kunit/overflow: Avoid misallocation of driver name (Ivan Orlov)
----------------------------------------------------------------
Ivan Orlov (1):
kunit/overflow: Fix UB in overflow_allocation_test
Petr Pavlu (1):
refcount: Report UAF for refcount_sub_and_test(0) when counter==0
Song Liu (2):
kallsyms: Do not cleanup .llvm.<hash> suffix before sorting symbols
kallsyms: Match symbols exactly with CONFIG_LTO_CLANG
Thorsten Blum (1):
gcc-plugins: randstruct: Remove GCC 4.7 or newer requirement
drivers/misc/lkdtm/refcount.c | 16 ++++++++
include/linux/refcount.h | 4 +-
kernel/kallsyms.c | 55 +++------------------------
kernel/kallsyms_selftest.c | 22 +----------
lib/overflow_kunit.c | 3 +-
scripts/gcc-plugins/randomize_layout_plugin.c | 4 --
scripts/kallsyms.c | 31 +--------------
scripts/link-vmlinux.sh | 4 --
8 files changed, 28 insertions(+), 111 deletions(-)
--
Kees Cook