Re: [PATCH 4.19 087/361] signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack

From: Steve McIntyre
Date: Mon Nov 12 2018 - 07:10:07 EST


On Sun, Nov 11, 2018 at 02:17:14PM -0800, Greg Kroah-Hartman wrote:
>4.19-stable review patch. If anyone has any objections, please let me know.
>
>------------------
>
>From: Will Deacon <will.deacon@xxxxxxx>
>
>[ Upstream commit 22839869f21ab3850fbbac9b425ccc4c0023926f ]
>
>The sigaltstack(2) system call fails with -ENOMEM if the new alternative
>signal stack is found to be smaller than SIGMINSTKSZ. On architectures
>such as arm64, where the native value for SIGMINSTKSZ is larger than
>the compat value, this can result in an unexpected error being reported
>to a compat task. See, for example:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904385

...

Thanks Greg! If it's not too much effort, could you also take this for
4.9-stable as well please? That would get it into our next Debian
stable update too. :-)

Thanks,

Steve

--
Steve McIntyre, Cambridge, UK. steve@xxxxxxxxxx
"I suspect most samba developers are already technically insane... Of
course, since many of them are Australians, you can't tell." -- Linus Torvalds