Skip to content

Commit 994d5c5

Browse files
committed
Merge tag 'hardening-v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull hardening fixes from Kees Cook: - struct_group: propagate attributes to top-level union (Dmitry Antipov) - gcc-plugins: randstruct: Update code comment in relayout_struct (Gustavo A. R. Silva) - MAINTAINERS: refresh LLVM support (Nick Desaulniers) * tag 'hardening-v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: gcc-plugins: randstruct: Update code comment in relayout_struct() uapi: propagate __struct_group() attributes to the container union MAINTAINERS: refresh LLVM support
2 parents 47669f4 + d71f223 commit 994d5c5

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

MAINTAINERS

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5076,7 +5076,6 @@ CLANG CONTROL FLOW INTEGRITY SUPPORT
50765076
M: Sami Tolvanen <samitolvanen@google.com>
50775077
M: Kees Cook <keescook@chromium.org>
50785078
R: Nathan Chancellor <nathan@kernel.org>
5079-
R: Nick Desaulniers <ndesaulniers@google.com>
50805079
L: llvm@lists.linux.dev
50815080
S: Supported
50825081
B: https://github.com/ClangBuiltLinux/linux/issues
@@ -5091,8 +5090,9 @@ F: .clang-format
50915090

50925091
CLANG/LLVM BUILD SUPPORT
50935092
M: Nathan Chancellor <nathan@kernel.org>
5094-
M: Nick Desaulniers <ndesaulniers@google.com>
5095-
R: Tom Rix <trix@redhat.com>
5093+
R: Nick Desaulniers <ndesaulniers@google.com>
5094+
R: Bill Wendling <morbo@google.com>
5095+
R: Justin Stitt <justinstitt@google.com>
50965096
L: llvm@lists.linux.dev
50975097
S: Supported
50985098
W: https://clangbuiltlinux.github.io/
@@ -5242,7 +5242,6 @@ F: drivers/platform/x86/compal-laptop.c
52425242

52435243
COMPILER ATTRIBUTES
52445244
M: Miguel Ojeda <ojeda@kernel.org>
5245-
R: Nick Desaulniers <ndesaulniers@google.com>
52465245
S: Maintained
52475246
F: include/linux/compiler_attributes.h
52485247

@@ -11516,7 +11515,6 @@ F: fs/autofs/
1151611515
KERNEL BUILD + files below scripts/ (unless maintained elsewhere)
1151711516
M: Masahiro Yamada <masahiroy@kernel.org>
1151811517
R: Nathan Chancellor <nathan@kernel.org>
11519-
R: Nick Desaulniers <ndesaulniers@google.com>
1152011518
R: Nicolas Schier <nicolas@fjasle.eu>
1152111519
L: linux-kbuild@vger.kernel.org
1152211520
S: Maintained

include/uapi/linux/stddef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
union { \
2828
struct { MEMBERS } ATTRS; \
2929
struct TAG { MEMBERS } ATTRS NAME; \
30-
}
30+
} ATTRS
3131

3232
#ifdef __cplusplus
3333
/* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */

scripts/gcc-plugins/randomize_layout_plugin.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ static int relayout_struct(tree type)
339339

340340
/*
341341
* enforce that we don't randomize the layout of the last
342-
* element of a struct if it's a 0 or 1-length array
343-
* or a proper flexible array
342+
* element of a struct if it's a proper flexible array
344343
*/
345344
if (is_flexible_array(newtree[num_fields - 1])) {
346345
has_flexarray = true;

0 commit comments

Comments
 (0)