aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-10-21 15:55:06 -0700
committerBorislav Petkov <bp@suse.de>2021-10-26 10:18:09 +0200
commit3aac3ebea08f2d342364f827c8979ab0e1dd591e (patch)
tree66cfbec408ebb30544063cde4b49094da02c6d66 /scripts/gdb/linux/utils.py
parent1bdda24c4af64cd2d65dec5192ab624c5fee7ca0 (diff)
downloadlinux-3aac3ebea08f2d342364f827c8979ab0e1dd591e.tar.gz
linux-3aac3ebea08f2d342364f827c8979ab0e1dd591e.tar.bz2
linux-3aac3ebea08f2d342364f827c8979ab0e1dd591e.zip
x86/signal: Implement sigaltstack size validation
For historical reasons MINSIGSTKSZ is a constant which became already too small with AVX512 support. Add a mechanism to enforce strict checking of the sigaltstack size against the real size of the FPU frame. The strict check can be enabled via a config option and can also be controlled via the kernel command line option 'strict_sas_size' independent of the config switch. Enabling it might break existing applications which allocate a too small sigaltstack but 'work' because they never get a signal delivered. Though it can be handy to filter out binaries which are not yet aware of AT_MINSIGSTKSZ. Also the upcoming support for dynamically enabled FPU features requires a strict sanity check to ensure that: - Enabling of a dynamic feature, which changes the sigframe size fits into an enabled sigaltstack - Installing a too small sigaltstack after a dynamic feature has been added is not possible. Implement the base check which is controlled by config and command line options. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211021225527.10184-3-chang.seok.bae@intel.com
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions