kernel-fxtec-pro1x/scripts/gcc-plugins
Joonwon Kang 98dc6d958b randstruct: Check member structs in is_pure_ops_struct()
commit 60f2c82ed20bde57c362e66f796cf9e0e38a6dbb upstream.

While no uses in the kernel triggered this case, it was possible to have
a false negative where a struct contains other structs which contain only
function pointers because of unreachable code in is_pure_ops_struct().

Signed-off-by: Joonwon Kang <kjw1627@gmail.com>
Link: https://lore.kernel.org/r/20190727155841.GA13586@host
Fixes: 313dd1b629 ("gcc-plugins: Add the randstruct plugin")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 13:10:02 +02:00
..
.gitignore
cyc_complexity_plugin.c
gcc-common.h gcc-plugins: Fix build failures under Darwin host 2019-06-09 09:17:22 +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
Kconfig gcc-plugins: Disable when building under Clang 2018-08-23 10:06:12 -07:00
latent_entropy_plugin.c
Makefile gcc-plugins: remove unused GCC_PLUGIN_SUBDIR 2018-07-02 19:27:00 -07:00
randomize_layout_plugin.c randstruct: Check member structs in is_pure_ops_struct() 2019-10-05 13:10:02 +02:00
sancov_plugin.c
structleak_plugin.c