]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: do not vmalloc/vfree from probe context
authorKris Van Hees <kris.van.hees@oracle.com>
Mon, 26 Jan 2015 21:19:54 +0000 (16:19 -0500)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:30:00 +0000 (15:30 +0100)
commit78ae543a2a16bc91eff67f7b096996d593fdb893
treebb207deaac372d8ab6f2452658e9a391b5d9dbd6
parentd467431c5f1457988ad04c455b5f0db036f3bc9a
dtrace: do not vmalloc/vfree from probe context

The dtrace_stacktrace() code was using vmalloc/vfree in cases where no
array for PCs was provided (as was the case for getting the stackdepth).
When this code gets called from probe context, we might be processing an
interrupt or trap, and it is not safe to use vmalloc/vfree in that context.
We now pass in a (pre-allocated) scratch buffer instead.

Orabug: 20456889

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Nick Alcock <nick.alcock@oracle.com>
kernel/dtrace/dtrace_os.c