Skip to content

Commit 7ddcaf7

Browse files
brooniewilldeacon
authored andcommitted
arm64/signal: Raise limit on stack frames
The signal code has a limit of 64K on the size of a stack frame that it will generate, if this limit is exceeded then a process will be killed if it receives a signal. Unfortunately with the advent of SME this limit is too small - the maximum possible size of the ZA register alone is 64K. This is not an issue for practical systems at present but is easily seen using virtual platforms. Raise the limit to 256K, this is substantially more than could be used by any current architecture extension. Signed-off-by: Mark Brown <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 53d2d84 commit 7ddcaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static size_t sigframe_size(struct rt_sigframe_user_layout const *user)
9191
* not taken into account. This limit is not a guarantee and is
9292
* NOT ABI.
9393
*/
94-
#define SIGFRAME_MAXSZ SZ_64K
94+
#define SIGFRAME_MAXSZ SZ_256K
9595

9696
static int __sigframe_alloc(struct rt_sigframe_user_layout *user,
9797
unsigned long *offset, size_t size, bool extend)

0 commit comments

Comments
 (0)