From: Kees Cook <keescook@chromium.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Anton Ivanov <anton.ivanov@cambridgegreys.com>,
Arnd Bergmann <arnd@arndb.de>,
Daniel Latypov <dlatypov@google.com>,
David Gow <davidgow@google.com>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Jason Gunthorpe <jgg@ziepe.ca>, Jeff Dike <jdike@addtoit.com>,
Kees Cook <keescook@chromium.org>,
Keith Busch <kbusch@kernel.org>, Len Baker <len.baker@gmx.com>,
Leon Romanovsky <leon@kernel.org>,
linux-kbuild@vger.kernel.org,
Masahiro Yamada <masahiroy@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Nick Desaulniers <ndesaulniers@google.com>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Richard Weinberger <richard@nod.at>,
Vitor Massaru Iha <vitor@massaru.org>
Subject: [GIT PULL] overflow updates for v5.18-rc1
Date: Mon, 21 Mar 2022 08:26:31 -0700 [thread overview]
Message-ID: <202203210821.9E5FDCA863@keescook> (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%)
--
Kees Cook
next reply other threads:[~2022-03-21 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 15:26 Kees Cook [this message]
2022-03-22 3:06 ` [GIT PULL] overflow updates for v5.18-rc1 pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202203210821.9E5FDCA863@keescook \
--to=keescook@chromium.org \
--cc=anton.ivanov@cambridgegreys.com \
--cc=arnd@arndb.de \
--cc=davidgow@google.com \
--cc=dlatypov@google.com \
--cc=gustavoars@kernel.org \
--cc=jdike@addtoit.com \
--cc=jgg@ziepe.ca \
--cc=kbusch@kernel.org \
--cc=len.baker@gmx.com \
--cc=leon@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=richard@nod.at \
--cc=torvalds@linux-foundation.org \
--cc=vitor@massaru.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.