Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/futex: add missing EX_TABLE entry to __futex_atomic_op()

For some exception types the instruction address points behind the
instruction that caused the exception. Take that into account and add
the missing exception table entry.

Cc: <stable@vger.kernel.org>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

authored by

Heiko Carstens and committed by
Vasily Gorbik
a262d3ad 4e1b5a86

+2 -1
+2 -1
arch/s390/include/asm/futex.h
··· 17 17 "3: jl 1b\n" \ 18 18 " lhi %0,0\n" \ 19 19 "4: sacf 768\n" \ 20 - EX_TABLE(0b,4b) EX_TABLE(2b,4b) EX_TABLE(3b,4b) \ 20 + EX_TABLE(0b,4b) EX_TABLE(1b,4b) \ 21 + EX_TABLE(2b,4b) EX_TABLE(3b,4b) \ 21 22 : "=d" (ret), "=&d" (oldval), "=&d" (newval), \ 22 23 "=m" (*uaddr) \ 23 24 : "0" (-EFAULT), "d" (oparg), "a" (uaddr), \