]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure we pass a limit to dtrace_stacktrace for stackdepth
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 15 Mar 2017 03:20:52 +0000 (23:20 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Wed, 15 Mar 2017 12:42:20 +0000 (08:42 -0400)
commitd030a5bc7f9dfa0bcba020c16d1bb380b48bda09
treefd242b8552e8bb334c24860cc52f014dded11bea
parent8811ade6940ff3b458de0d0d35fe3bbc893ffa8c
dtrace: ensure we pass a limit to dtrace_stacktrace for stackdepth

When determining the (kernel) stackdepth, we pass scratch memory to the
dtrace_stacktrace() function because we are not interested in the actual
program counter values.  However, we were passing in 0 as limit rather
than the actual maximum number of PCs that could fit in the remaining
scratch memory space.

We now also add no-fault protection to dtrace_getstackdepth().

Orabug: 25559321
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace_isa.c