2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-27 08:05:27 +08:00
linux-next/scripts/gcc-plugins
Kees Cook 802762cdff randstruct: Whitelist big_key path struct overloading
The big_key payload structure intentionally stores a struct path in
two void pointers to avoid header soup. Whitelist this case:

security/keys/big_key.c: In function ‘big_key_read’:
security/keys/big_key.c:293:16: note: found mismatched rhs struct pointer types: ‘struct path’ and ‘void *’

   struct path *path = (struct path *)&key->payload.data[big_key_path];
                ^~~~

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
2017-06-22 16:21:42 -07:00
..
.gitignore gcc-plugins: Add the randstruct plugin 2017-06-22 16:15:45 -07:00
cyc_complexity_plugin.c gcc-plugins: consolidate on PASS_INFO macro 2017-01-13 14:20:03 -08:00
gcc-common.h gcc-plugins: Add the randstruct plugin 2017-06-22 16:15:45 -07:00
gcc-generate-gimple-pass.h GCC plugin infrastructure 2016-06-07 22:57:10 +02:00
gcc-generate-ipa-pass.h GCC plugin infrastructure 2016-06-07 22:57:10 +02:00
gcc-generate-rtl-pass.h GCC plugin infrastructure 2016-06-07 22:57:10 +02:00
gcc-generate-simple_ipa-pass.h GCC plugin infrastructure 2016-06-07 22:57:10 +02:00
gen-random-seed.sh gcc-plugins: Add the randstruct plugin 2017-06-22 16:15:45 -07:00
latent_entropy_plugin.c gcc-plugins: consolidate on PASS_INFO macro 2017-01-13 14:20:03 -08:00
Makefile gcc-plugins: Add the randstruct plugin 2017-06-22 16:15:45 -07:00
randomize_layout_plugin.c randstruct: Whitelist big_key path struct overloading 2017-06-22 16:21:42 -07:00
sancov_plugin.c gcc-plugins: fix sancov_plugin for gcc-5 2017-02-27 14:10:10 -08:00
structleak_plugin.c gcc-plugins: Add structleak for more stack initialization 2017-01-18 12:02:35 -08:00