selftest/sigaltstack: Use the AT_MINSIGSTKSZ aux vector if available
authorChang S. Bae <chang.seok.bae@intel.com>
Tue, 18 May 2021 20:03:18 +0000 (13:03 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 19 May 2021 10:38:17 +0000 (12:38 +0200)
commitbdf6c8b84a4fa726c382ef6d3518f3ae123a7ebd
tree748bb858c73b77862f456afb8ab881613ebebac5
parent1c33bb0507508af24fd754dd7123bd8e997fab2f
selftest/sigaltstack: Use the AT_MINSIGSTKSZ aux vector if available

The SIGSTKSZ constant may not represent enough stack size in some
architectures as the hardware state size grows.

Use getauxval(AT_MINSIGSTKSZ) to increase the stack size.

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>
Link: https://lkml.kernel.org/r/20210518200320.17239-5-chang.seok.bae@intel.com
tools/testing/selftests/sigaltstack/sas.c