[GIT PULL] kmalloc_obj fixes for v7.0-rc2

From: Kees Cook

Date: Thu Feb 26 2026 - 13:23:04 EST


Hi Linus,

Please pull these handful of collected kmalloc_obj conversion fixes
for v7.0-rc2.

Thanks!

-Kees

The following changes since commit 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f:

Linux 7.0-rc1 (2026-02-22 13:18:59 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/kmalloc_obj-v7.0-rc2

for you to fetch changes up to 795469820c638b4449f3bb90ee5e98ebccfbc480:

kcsan: test: Adjust "expect" allocation type for kmalloc_obj (2026-02-26 09:54:08 -0800)

----------------------------------------------------------------
kmalloc_obj fixes for v7.0-rc2

- Fix pointer-to-array allocation types for ubd and kcsan

- Force size overflow helpers to __always_inline

- Bump __builtin_counted_by_ref to Clang 22.1 from 22.0 (Nathan Chancellor)

----------------------------------------------------------------
Kees Cook (3):
ubd: Use pointer-to-pointers for io_thread_req arrays
overflow: Make sure size helpers are always inlined
kcsan: test: Adjust "expect" allocation type for kmalloc_obj

Nathan Chancellor (1):
init/Kconfig: Adjust fixed clang version for __builtin_counted_by_ref

init/Kconfig | 2 +-
include/linux/overflow.h | 8 ++++----
arch/um/drivers/ubd_kern.c | 10 +++++-----
kernel/kcsan/kcsan_test.c | 2 +-
4 files changed, 11 insertions(+), 11 deletions(-)

--
Kees Cook