mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
hardening fixes for v6.7-rc4
- 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) -----BEGIN PGP SIGNATURE----- iQJKBAABCgA0FiEEpcP2jyKd1g9yPm4TiXL039xtwCYFAmVpAJwWHGtlZXNjb29r QGNocm9taXVtLm9yZwAKCRCJcvTf3G3AJqQ1EACjnOtE8DZiGqdnp1L3pWBOdY5Q doj52RCF1OfRrNlkivIFipuI4mo2TdoXVaDlkfYdk+iPZfSX3SnwRX65g6WF4IYh OKi2JTLVH0BoyevnPbFzAtq2BABKc0Vy6kTtWHKXLDSYVRiVHG8Wth31Q+U5k751 H+xMsdtMQVokxy9Yx9n4ZjNmFFTlhFIypqL0iDh0qTQkbm+kIvdyMwgPhzzr0KLz 53buhPx6243x/BF+TCipLg2/YgANm8GR2SQQaAUE0qhFUzhkUmg3dBI8dXLh03a3 n31fnCDcgpjKn9HtENz7ZoUZyQpO1X1NMW90WoVgJSaPAgayLZ0jCmq8LUjNw/Hm FARXi0EAHdl2TvqqHPN825KM+GbNLytiEu06C7mLTzcimg2g4YwJYtqCDav7rnRo kp2pgddilVNQrIr1M0BhrN3iFP2CZQ5vMajZVEZ4/BdLVhunUz8aKVu4uei0+ElH pMwaQwiBD/vZBjqNAWrhhpnv0W9F19ERL+KL5LlpCtpCDmOZUXG3f7hP2PANRbfi 8wQvy4LIBzFIQBfoZ/HWuY98ieMRJ4CL8sYjDp28VWODbN5gkPjTGjNUVHWPjnX6 gWJYgkuhjbsZ2Wl66VSIKxbP1yWdboS08IXuTmAkvrA9HoxbboD3qvJWKKvkYlTT 3TRgysJGbfStO9ZprQ== =P/c0 -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
994d5c58e5
@ -5076,7 +5076,6 @@ CLANG CONTROL FLOW INTEGRITY SUPPORT
|
|||||||
M: Sami Tolvanen <samitolvanen@google.com>
|
M: Sami Tolvanen <samitolvanen@google.com>
|
||||||
M: Kees Cook <keescook@chromium.org>
|
M: Kees Cook <keescook@chromium.org>
|
||||||
R: Nathan Chancellor <nathan@kernel.org>
|
R: Nathan Chancellor <nathan@kernel.org>
|
||||||
R: Nick Desaulniers <ndesaulniers@google.com>
|
|
||||||
L: llvm@lists.linux.dev
|
L: llvm@lists.linux.dev
|
||||||
S: Supported
|
S: Supported
|
||||||
B: https://github.com/ClangBuiltLinux/linux/issues
|
B: https://github.com/ClangBuiltLinux/linux/issues
|
||||||
@ -5091,8 +5090,9 @@ F: .clang-format
|
|||||||
|
|
||||||
CLANG/LLVM BUILD SUPPORT
|
CLANG/LLVM BUILD SUPPORT
|
||||||
M: Nathan Chancellor <nathan@kernel.org>
|
M: Nathan Chancellor <nathan@kernel.org>
|
||||||
M: Nick Desaulniers <ndesaulniers@google.com>
|
R: Nick Desaulniers <ndesaulniers@google.com>
|
||||||
R: Tom Rix <trix@redhat.com>
|
R: Bill Wendling <morbo@google.com>
|
||||||
|
R: Justin Stitt <justinstitt@google.com>
|
||||||
L: llvm@lists.linux.dev
|
L: llvm@lists.linux.dev
|
||||||
S: Supported
|
S: Supported
|
||||||
W: https://clangbuiltlinux.github.io/
|
W: https://clangbuiltlinux.github.io/
|
||||||
@ -5242,7 +5242,6 @@ F: drivers/platform/x86/compal-laptop.c
|
|||||||
|
|
||||||
COMPILER ATTRIBUTES
|
COMPILER ATTRIBUTES
|
||||||
M: Miguel Ojeda <ojeda@kernel.org>
|
M: Miguel Ojeda <ojeda@kernel.org>
|
||||||
R: Nick Desaulniers <ndesaulniers@google.com>
|
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: include/linux/compiler_attributes.h
|
F: include/linux/compiler_attributes.h
|
||||||
|
|
||||||
@ -11516,7 +11515,6 @@ F: fs/autofs/
|
|||||||
KERNEL BUILD + files below scripts/ (unless maintained elsewhere)
|
KERNEL BUILD + files below scripts/ (unless maintained elsewhere)
|
||||||
M: Masahiro Yamada <masahiroy@kernel.org>
|
M: Masahiro Yamada <masahiroy@kernel.org>
|
||||||
R: Nathan Chancellor <nathan@kernel.org>
|
R: Nathan Chancellor <nathan@kernel.org>
|
||||||
R: Nick Desaulniers <ndesaulniers@google.com>
|
|
||||||
R: Nicolas Schier <nicolas@fjasle.eu>
|
R: Nicolas Schier <nicolas@fjasle.eu>
|
||||||
L: linux-kbuild@vger.kernel.org
|
L: linux-kbuild@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
union { \
|
union { \
|
||||||
struct { MEMBERS } ATTRS; \
|
struct { MEMBERS } ATTRS; \
|
||||||
struct TAG { MEMBERS } ATTRS NAME; \
|
struct TAG { MEMBERS } ATTRS NAME; \
|
||||||
}
|
} ATTRS
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
/* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */
|
/* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */
|
||||||
|
@ -339,8 +339,7 @@ static int relayout_struct(tree type)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* enforce that we don't randomize the layout of the last
|
* enforce that we don't randomize the layout of the last
|
||||||
* element of a struct if it's a 0 or 1-length array
|
* element of a struct if it's a proper flexible array
|
||||||
* or a proper flexible array
|
|
||||||
*/
|
*/
|
||||||
if (is_flexible_array(newtree[num_fields - 1])) {
|
if (is_flexible_array(newtree[num_fields - 1])) {
|
||||||
has_flexarray = true;
|
has_flexarray = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user