android_kernel_samsung_a7y1.../arch/arm64/mm
Will Deacon ccd3889938 arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals
commit b9a4b9d084d978f80eb9210727c81804588b42ff upstream.

FAR_EL1 is UNKNOWN for all debug exceptions other than those caused by
taking a hardware watchpoint. Unfortunately, if a debug handler returns
a non-zero value, then we will propagate the UNKNOWN FAR value to
userspace via the si_addr field of the SIGTRAP siginfo_t.

Instead, let's set si_addr to take on the PC of the faulting instruction,
which we have available in the current pt_regs.

Cc: <stable@vger.kernel.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 13:42:12 +02:00
..
cache.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
context.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
copypage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-mapping.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dump.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extable.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fault.c arm64: debug: Don't propagate UNKNOWN FAR into si_code for debug signals 2020-04-06 13:42:12 +02:00
flush.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hugetlbpage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
init.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ioremap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kasan_init.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pageattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pgd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc-macros.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proc.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30