]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arm64: Fix MINSIGSTKSZ and SIGSTKSZ
authorManjeet Pawar <manjeet.p@samsung.com>
Fri, 9 Oct 2015 10:29:40 +0000 (15:59 +0530)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Oct 2015 16:40:12 +0000 (17:40 +0100)
commitc9692657c0321fec7bcb3ca8c6db56c08c640ace
treeef1deff127ca3729d6ebd86fe5ee65811924bc8b
parentb6dd8e0719c0d2d01429639a11b7bc2677de240c
arm64: Fix MINSIGSTKSZ and SIGSTKSZ

MINSIGSTKSZ and SIGSTKSZ for ARM64 are not correctly set in latest kernel.
This patch fixes this issue.

This issue is reported in LTP (testcase: sigaltstack02.c).
Testcase failed when sigaltstack() called with stack size "MINSIGSTKSZ - 1"
Since in Glibc-2.22, MINSIGSTKSZ is set to 5120 but in kernel
it is set to 2048 so testcase gets failed.

Testcase Output:
sigaltstack02 1  TPASS  :  stgaltstack() fails, Invalid Flag value,errno:22
sigaltstack02 2  TFAIL  :  sigaltstack() returned 0, expected -1,errno:12

Reported Issue in Glibc Bugzilla:
Bugfix in Glibc-2.22: [Bug 16850]
https://sourceware.org/bugzilla/show_bug.cgi?id=16850

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com>
Signed-off-by: Manjeet Pawar <manjeet.p@samsung.com>
Signed-off-by: Rohit Thapliyal <r.thapliyal@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/uapi/asm/signal.h
include/uapi/asm-generic/signal.h