]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: fix for user probes in high memory
authorEric Saint-Etienne <eric.saint.etienne@oracle.com>
Mon, 30 Jan 2017 12:27:49 +0000 (04:27 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 9 Mar 2017 03:30:12 +0000 (19:30 -0800)
commit116582842126dbdf222efe29c2e4fc423c2fcd9e
treeeaea37324d4a5b25e579cc2e767b1584a753537e
parent3c4e38012268c345dc80a45a1707a1ab48fefa79
sparc64: fix for user probes in high memory

Orabug 25428066

When returning from the user probe code into userspace process, PC & NPC are
truncated to 32 bits.

As a result of shared libraries get loaded very high in the virtual address
space of the process, placing a user probe inside a shared library makes the
kernel return into the process at the wrong address, causing it to seg'fault
most of the time.

This patch prevents truncating PC and NPC.

Signed-off-by: Eric Saint Etienne <eric.saint.etienne@oracle.com>
Reviewed-by: David Aldridge <david.j.aldridge@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/include/asm/uprobes.h