summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2021-05-18 23:03:16 +0300
committerBorislav Petkov <bp@suse.de>2021-05-19 12:46:27 +0300
commit939ef713297df2cc910592305aa26af0e87f28ac (patch)
tree346b1c50d3928c071d45e4c899b4ffef58ef7b31 /include/uapi/linux
parent7cd60e43a6def40ecb75deb8decc677995970d0b (diff)
downloadlinux-939ef713297df2cc910592305aa26af0e87f28ac.tar.xz
x86/signal: Introduce helpers to get the maximum signal frame size
Signal frames do not have a fixed format and can vary in size when a number of things change: supported XSAVE features, 32 vs. 64-bit apps, etc. Add support for a runtime method for userspace to dynamically discover how large a signal stack needs to be. Introduce a new variable, max_frame_size, and helper functions for the calculation to be used in a new user interface. Set max_frame_size to a system-wide worst-case value, instead of storing multiple app-specific values. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Len Brown <len.brown@intel.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: H.J. Lu <hjl.tools@gmail.com> Link: https://lkml.kernel.org/r/20210518200320.17239-3-chang.seok.bae@intel.com
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions