APPLIED: [SRU][Xenial][PATCH 0/2] arm64: sigaltstack fails with MINSIGSTKSZ for 32-bit processes (LP: #1844155)
Juerg Haefliger
juerg.haefliger at canonical.com
Tue Oct 22 07:35:11 UTC 2019
On Mon, 21 Oct 2019 13:30:24 -0400
Khaled Elmously <khalid.elmously at canonical.com> wrote:
> This was missing the "BugLink: " from othe commit msg
Shoot. Sorry about that :-(
...Juerg
>
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20191022/3d84ed25/attachment.sig>
More information about the kernel-team
mailing list