summaryrefslogtreecommitdiff
path: root/arch/parisc/hpux/Makefile
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2013-11-20 05:18:54 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 19:28:08 (GMT)
commit3f0387f7a915418bc7df3d1861d8f3536f348244 (patch)
treeb915032a6436107dba89c7df2b5824800ca94e81 /arch/parisc/hpux/Makefile
parent9e5139b7d8ffbb01fd1b3d646ea348ef929e15ad (diff)
downloadlinux-fsl-qoriq-3f0387f7a915418bc7df3d1861d8f3536f348244.tar.xz
powerpc/signals: Mark VSX not saved with small contexts
commit c13f20ac48328b05cd3b8c19e31ed6c132b44b42 upstream. The VSX MSR bit in the user context indicates if the context contains VSX state. Currently we set this when the process has touched VSX at any stage. Unfortunately, if the user has not provided enough space to save the VSX state, we can't save it but we currently still set the MSR VSX bit. This patch changes this to clear the MSR VSX bit when the user doesn't provide enough space. This indicates that there is no valid VSX state in the user context. This is needed to support get/set/make/swapcontext for applications that use VSX but only provide a small context. For example, getcontext in glibc provides a smaller context since the VSX registers don't need to be saved over the glibc function call. But since the program calling getcontext may have used VSX, the kernel currently says the VSX state is valid when it's not. If the returned context is then used in setcontext (ie. a small context without VSX but with MSR VSX set), the kernel will refuse the context. This situation has been reported by the glibc community. Based on patch from Carlos O'Donell. Tested-by: Haren Myneni <haren@linux.vnet.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/parisc/hpux/Makefile')
0 files changed, 0 insertions, 0 deletions