]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/kdump: fix REGSET_VX_LOW vector register ELF notes
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 11 Jun 2015 17:59:04 +0000 (19:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Jun 2015 07:39:18 +0000 (09:39 +0200)
The REGSET_VX_LOW ELF notes should contain the lower 64 bit halfes of the
first sixteen 128 bit vector registers. Unfortunately currently we copy
the upper halfes.

Fix this and correctly copy the lower halfes.

Fixes: a62bc0739253 ("s390/kdump: add support for vector extension")
Cc: stable@vger.kernel.org # 3.18+
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/crash_dump.c

index 7a75ad4594e3e721bd91daa1a80fb95fdcd47a9a..f56cd733b6e133f8f10fae2a0b96b794ebf7b33e 100644 (file)
@@ -416,7 +416,7 @@ static void *nt_s390_vx_low(void *ptr, __vector128 *vx_regs)
        ptr += len;
        /* Copy lower halves of SIMD registers 0-15 */
        for (i = 0; i < 16; i++) {
-               memcpy(ptr, &vx_regs[i], 8);
+               memcpy(ptr, &vx_regs[i].u[2], 8);
                ptr += 8;
        }
        return ptr;