linux-stable/scripts/gcc-plugins
Kees Cook 7975f7b2a6 randstruct: Fix gcc-plugin performance mode to stay in group
commit 381fdb73d1 upstream.

The performance mode of the gcc-plugin randstruct was shuffling struct
members outside of the cache-line groups. Limit the range to the
specified group indexes.

Cc: linux-hardening@vger.kernel.org
Cc: stable@vger.kernel.org
Reported-by: Lukas Loidolt <e1634039@student.tuwien.ac.at>
Closes: https://lore.kernel.org/all/f3ca77f0-e414-4065-83a5-ae4c4d25545d@student.tuwien.ac.at
Fixes: 313dd1b629 ("gcc-plugins: Add the randstruct plugin")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 16:54:55 +00:00
..
.gitignore
Kconfig gcc-plugins: simplify GCC plugin-dev capability test 2021-12-14 11:32:33 +01:00
Makefile gcc-plugins: fix gcc 11 indigestion with plugins... 2021-12-14 11:32:33 +01:00
arm_ssp_per_task_plugin.c
cyc_complexity_plugin.c gcc-plugins: Replace HTTP links with HTTPS ones 2020-07-13 09:29:09 -07:00
gcc-common.h gcc-plugins: Reorganize gimple includes for GCC 13 2023-06-14 11:09:30 +02:00
gcc-generate-gimple-pass.h
gcc-generate-ipa-pass.h
gcc-generate-rtl-pass.h
gcc-generate-simple_ipa-pass.h
gen-random-seed.sh
latent_entropy_plugin.c gcc-plugins: latent_entropy: use /dev/urandom 2022-04-20 09:23:26 +02:00
randomize_layout_plugin.c randstruct: Fix gcc-plugin performance mode to stay in group 2023-11-28 16:54:55 +00:00
sancov_plugin.c gcc-plugins: Replace HTTP links with HTTPS ones 2020-07-13 09:29:09 -07:00
stackleak_plugin.c gcc-plugins/stackleak: Exactly match strings instead of prefixes 2022-04-08 14:40:30 +02:00
structleak_plugin.c gcc-plugins: Replace HTTP links with HTTPS ones 2020-07-13 09:29:09 -07:00