lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 21 Mar 2022 08:26:31 -0700
From:   Kees Cook <keescook@...omium.org>
To:     Linus Torvalds <torvalds@...ux-foundation.org>
Cc:     linux-kernel@...r.kernel.org,
        Anton Ivanov <anton.ivanov@...bridgegreys.com>,
        Arnd Bergmann <arnd@...db.de>,
        Daniel Latypov <dlatypov@...gle.com>,
        David Gow <davidgow@...gle.com>,
        "Gustavo A. R. Silva" <gustavoars@...nel.org>,
        Jason Gunthorpe <jgg@...pe.ca>, Jeff Dike <jdike@...toit.com>,
        Kees Cook <keescook@...omium.org>,
        Keith Busch <kbusch@...nel.org>, Len Baker <len.baker@....com>,
        Leon Romanovsky <leon@...nel.org>,
        linux-kbuild@...r.kernel.org,
        Masahiro Yamada <masahiroy@...nel.org>,
        Nathan Chancellor <nathan@...nel.org>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Rasmus Villemoes <linux@...musvillemoes.dk>,
        Richard Weinberger <richard@....at>,
        Vitor Massaru Iha <vitor@...saru.org>
Subject: [GIT PULL] overflow updates for v5.18-rc1

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ