kernel_samsung_a53x/scripts/gcc-plugins
Kees Cook 4a7acc2853 randstruct: Fix gcc-plugin performance mode to stay in group
commit 381fdb73d1e2a48244de7260550e453d1003bb8e 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: 313dd1b62921 ("gcc-plugins: Add the randstruct plugin")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 11:43:20 +01:00
..
arm_ssp_per_task_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cyc_complexity_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcc-common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcc-generate-gimple-pass.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcc-generate-ipa-pass.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcc-generate-rtl-pass.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gcc-generate-simple_ipa-pass.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gen-random-seed.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
latent_entropy_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
randomize_layout_plugin.c randstruct: Fix gcc-plugin performance mode to stay in group 2024-11-18 11:43:20 +01:00
sancov_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stackleak_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
structleak_plugin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00