APPLIED: [SRU][Xenial][PATCH 0/2] arm64: sigaltstack fails with MINSIGSTKSZ for 32-bit processes (LP: #1844155)

Khaled Elmously khalid.elmously at canonical.com
Mon Oct 21 17:30:24 UTC 2019


This was missing the "BugLink: " from othe commit msg


On 2019-10-16 10:47:36 , Juerg Haefliger wrote:
> Applied to xenial/master-next.
> 
> ...Juerg
> 
> 
> > [Impact]
> > 
> > The arm64 kernel allows one to run aarch32 processes on an aarch64 processor, using the standard 32/64-bit syscall compatibility. However this compat layer does not correctly validate the arguments of the sigaltstack syscall which can result in process failures.
> > 
> > [Test Case]
> > 
> > The simple reproducer from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904385 triggers a memory allocation error with the current Xenial 4.4 kernel.
> > 
> > [Fix]
> > 
> > Backport the following two upstream commits:
> > 24951465cbd2 arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ
> > 22839869f21a signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
> > 
> > With these two commits, the reproducer no longer fails.
> > 
> > [Regression Potential]
> > 
> > Low. The modifications are trivial and the two patches have been in upstream for quite a while.
> > 
> > Will Deacon (2):
> >   signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
> >   arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ
> > 
> >  arch/arm64/include/asm/compat.h |  1 +
> >  include/linux/compat.h          |  3 +++
> >  kernel/signal.c                 | 14 +++++++++-----
> >  3 files changed, 13 insertions(+), 5 deletions(-)
> > 
> 



> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team




More information about the kernel-team mailing list