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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 27 Feb 2022 10:45:10 -0800 From: Kees Cook <keescook@...omium.org> To: Kees Cook <keescook@...omium.org> Cc: "Gustavo A. R. Silva" <gustavoars@...nel.org>, Nathan Chancellor <nathan@...nel.org>, Nick Desaulniers <ndesaulniers@...gle.com>, Rasmus Villemoes <linux@...musvillemoes.dk>, Vitor Massaru Iha <vitor@...saru.org>, Daniel Latypov <dlatypov@...gle.com>, David Gow <davidgow@...gle.com>, Anton Ivanov <anton.ivanov@...bridgegreys.com>, Jeff Dike <jdike@...toit.com>, Richard Weinberger <richard@....at>, Masahiro Yamada <masahiroy@...nel.org>, Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org, linux-um@...ts.infradead.org, linux-kbuild@...r.kernel.org, kunit-dev@...glegroups.com, llvm@...ts.linux.dev, x86@...nel.org, linux-hardening@...r.kernel.org Subject: [PATCH v3 0/7] Convert overflow and stackinit to KUnit Hi, These changes all build on each other, so I'm sending this as a series to hopefully reduce confusion. I chose "v3" because it seemed the least confusing of various options. The um changes are needed to get Clang building with um to test the stackinit KUnit test more easily (i.e. needing neither GCC 12 nor QEMU). -Kees David Gow (2): um: Cleanup syscall_handler_t definition/cast, fix warning um: Remove unused timeval_to_ns() function Kees Cook (5): overflow: Provide constant expression struct_size lib: overflow: Convert to Kunit um: Allow builds with Clang lib: stackinit: Convert to KUnit UAPI: Introduce KUnit userspace compatibility arch/um/os-Linux/execvp.c | 1 + arch/um/os-Linux/time.c | 6 - arch/x86/um/shared/sysdep/syscalls_64.h | 5 +- arch/x86/um/user-offsets.c | 9 +- include/linux/overflow.h | 10 +- include/uapi/misc/kunit.h | 181 +++++++ lib/Kconfig.debug | 38 +- lib/Makefile | 6 +- lib/{test_overflow.c => overflow_kunit.c} | 562 +++++++++----------- lib/{test_stackinit.c => stackinit_kunit.c} | 268 ++++------ scripts/Makefile.clang | 1 + 11 files changed, 593 insertions(+), 494 deletions(-) create mode 100644 include/uapi/misc/kunit.h rename lib/{test_overflow.c => overflow_kunit.c} (54%) rename lib/{test_stackinit.c => stackinit_kunit.c} (67%) -- 2.32.0
Powered by blists - more mailing lists