diff mbox series

[2/2] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ

Message ID 1532526312-26993-3-git-send-email-will.deacon@arm.com
State Superseded
Headers show
Series Don't use SIGMINSTKSZ when enforcing alternative signal stack size for compat tasks | expand

Commit Message

Will Deacon July 25, 2018, 1:45 p.m. UTC
arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value
for compat tasks.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Oleg Nesterov <oleg@redhat.com>
Reported-by: Steve McIntyre <steve.mcintyre@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

---
 arch/arm64/include/asm/compat.h | 1 +
 1 file changed, 1 insertion(+)

-- 
2.1.4

Comments

Dave Martin July 25, 2018, 3:55 p.m. UTC | #1
On Wed, Jul 25, 2018 at 02:45:12PM +0100, Will Deacon wrote:
> arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value

> for compat tasks.

> 

> Cc: Arnd Bergmann <arnd@arndb.de>

> Cc: Dominik Brodowski <linux@dominikbrodowski.net>

> Cc: "Eric W. Biederman" <ebiederm@xmission.com>

> Cc: Andrew Morton <akpm@linux-foundation.org>

> Cc: Al Viro <viro@zeniv.linux.org.uk>

> Cc: Oleg Nesterov <oleg@redhat.com>

> Reported-by: Steve McIntyre <steve.mcintyre@arm.com>

> Signed-off-by: Will Deacon <will.deacon@arm.com>


Reviewed-by: Dave Martin <Dave.Martin@arm.com>


> ---

>  arch/arm64/include/asm/compat.h | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h

> index 1a037b94eba1..cee28a05ee98 100644

> --- a/arch/arm64/include/asm/compat.h

> +++ b/arch/arm64/include/asm/compat.h

> @@ -159,6 +159,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr)

>  }

>  

>  #define compat_user_stack_pointer() (user_stack_pointer(task_pt_regs(current)))

> +#define COMPAT_MINSIGSTKSZ	2048

>  

>  static inline void __user *arch_compat_alloc_user_space(long len)

>  {

> -- 

> 2.1.4

> 

> 

> _______________________________________________

> linux-arm-kernel mailing list

> linux-arm-kernel@lists.infradead.org

> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox series

Patch

diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h
index 1a037b94eba1..cee28a05ee98 100644
--- a/arch/arm64/include/asm/compat.h
+++ b/arch/arm64/include/asm/compat.h
@@ -159,6 +159,7 @@  static inline compat_uptr_t ptr_to_compat(void __user *uptr)
 }
 
 #define compat_user_stack_pointer() (user_stack_pointer(task_pt_regs(current)))
+#define COMPAT_MINSIGSTKSZ	2048
 
 static inline void __user *arch_compat_alloc_user_space(long len)
 {