diff options
author | Mark Brown <broonie@kernel.org> | 2022-08-17 20:23:21 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-08-23 12:29:11 +0200 |
commit | 7ddcaf78e93c9282b4d92184f511b4d5bee75355 (patch) | |
tree | bbeaf1788951f79b75de5ce08db3c7a4ea808b15 /arch/arm64/kernel/signal.c | |
parent | arm64/cache: Fix cache_type_cwg() for register generation (diff) | |
download | linux-7ddcaf78e93c9282b4d92184f511b4d5bee75355.tar.xz linux-7ddcaf78e93c9282b4d92184f511b4d5bee75355.zip |
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 <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20220817182324.638214-2-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/signal.c')
-rw-r--r-- | arch/arm64/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 3e6d0352d7d3..0685b8784927 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -91,7 +91,7 @@ static size_t sigframe_size(struct rt_sigframe_user_layout const *user) * not taken into account. This limit is not a guarantee and is * NOT ABI. */ -#define SIGFRAME_MAXSZ SZ_64K +#define SIGFRAME_MAXSZ SZ_256K static int __sigframe_alloc(struct rt_sigframe_user_layout *user, unsigned long *offset, size_t size, bool extend) |