diff options
| author | Kees Cook <[email protected]> | 2022-02-06 17:12:50 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-02-06 18:55:03 +0000 |
| commit | ae978009fc013e3166c9f523f8b17e41a3c0286e (patch) | |
| tree | 01201a87ccfe3d2b9b876069017ecb48aea449f4 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | gcc-plugins/stackleak: Exactly match strings instead of prefixes (diff) | |
| download | kernel-ae978009fc013e3166c9f523f8b17e41a3c0286e.tar.gz kernel-ae978009fc013e3166c9f523f8b17e41a3c0286e.zip | |
gcc-plugins/stackleak: Ignore .noinstr.text and .entry.text
The .noinstr.text section functions may not have "current()" sanely
available. Similarly true for .entry.text, though such a check is
currently redundant. Add a check for both. In an x86_64 defconfig build,
the following functions no longer receive stackleak instrumentation:
__do_fast_syscall_32()
do_int80_syscall_32()
do_machine_check()
do_syscall_64()
exc_general_protection()
fixup_bad_iret()
Suggested-by: Peter Zijlstra <[email protected]>
Cc: Alexander Popov <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
