]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drop CPU_DTRACE_NOFAULT manipulation around ustack calls.
authorNick Alcock <nick.alcock@oracle.com>
Mon, 24 Mar 2014 22:50:06 +0000 (22:50 +0000)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 24 Apr 2014 09:32:53 +0000 (05:32 -0400)
commitefd82289c2b5cfcf30aa936c6606e37c19773b15
tree14ce32b383b115ab8812939fdb85bd44541fe55b
parente25e4d3c4d058837ab9408128444a51ec0438e91
Drop CPU_DTRACE_NOFAULT manipulation around ustack calls.

dtrace_getufpstack() and (as of the last commit) dtrace_getustackdepth() both
manipulate the CPU_DTRACE_NOFAULT flag themselves: clearing it after calling
those functions is redundant, and setting it is actually dangerous, since
other functions dtrace_getustackdepth() calls (such as __get_user_pages() do
not expect to have instructions that incur page faults silently skipped without
faulting.

Orabug: 18412802
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
dtrace/dtrace_dif.c
dtrace/dtrace_probe.c