Skip to contentSkip to conversation

overflow updates for v5.18-rc1

GIT PULL Merged Kees Cook 2 participants 2 messages Mar 21, 2022 – Mar 22, 2022 Kbuild

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

Hi Linus,

Please pull these overflow updates for v5.18-rc1. These changes come in roughly two halves: support of Gustavo A. R. Silva's struct_size() work via additional helpers for catching overflow allocation size calculations, and conversions of selftests to KUnit (which includes some tweaks for UML + Clang).

Thanks!

-Kees

The following changes since commit dfd42facf1e4ada021b939b4e19c935dcdd55566:

Linux 5.17-rc3 (2022-02-06 12:20:50 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/overflow-v5.18-rc1

for you to fetch changes up to 02788ebcf521fe78c24eb221fd1ed7f86792c330:

lib: stackinit: Convert to KUnit (2022-03-21 08:13:04 -0700)

----------------------------------------------------------------
overflow updates for v5.18-rc1

- Convert overflow selftest to KUnit
- Convert stackinit selftest to KUnit
- Implement size_t saturating arithmetic helpers
- Allow struct_size() to be used in initializers

----------------------------------------------------------------
Kees Cook (6):
test_overflow: Regularize test reporting output
overflow: Implement size_t saturating arithmetic helpers
overflow: Provide constant expression struct_size
lib: overflow: Convert to Kunit
um: Allow builds with Clang
lib: stackinit: Convert to KUnit

 Documentation/process/deprecated.rst        |  20 +-
 arch/um/os-Linux/execvp.c                   |   1 +
 arch/x86/um/user-offsets.c                  |   9 +-
 include/linux/overflow.h                    | 114 +++---
 lib/Kconfig.debug                           |  38 +-
 lib/Makefile                                |   6 +-
 lib/{test_overflow.c => overflow_kunit.c}   | 518 +++++++++++++++-------------
 lib/{test_stackinit.c => stackinit_kunit.c} | 269 ++++++---------
 scripts/Makefile.clang                      |   1 +
 9 files changed, 518 insertions(+), 458 deletions(-)
 rename lib/{test_overflow.c => overflow_kunit.c} (54%)
 rename lib/{test_stackinit.c => stackinit_kunit.c} (66%)
Signature · 1 line
Kees Cook
merge bot Merged
#1 lore raw
The pull request you sent on Mon, 21 Mar 2022 08:26:31 -0700:

The pull request you sent on Mon, 21 Mar 2022 08:26:31 -0700:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/overflow-v5.18-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/d0858cbdef50d973ca6b38c0ed0cce54cb2b6182

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html