]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: armour ustack() against kernel threads, !task->mm, and corrupt usersp.
authorNick Alcock <nick.alcock@oracle.com>
Thu, 10 Oct 2013 23:32:25 +0000 (00:32 +0100)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 10 Oct 2013 20:33:19 +0000 (16:33 -0400)
commit1e6c9a5bcbfde68912704174860aecf32c902a40
tree95e54872038104f7b994b8f21699d0805f77dd16
parenta2d1f1c1376dc3d33b160020ad97cac4471476ea
dtrace: armour ustack() against kernel threads, !task->mm, and corrupt usersp.

Kernel threads have no userspace stack, by definition: we should not assume they
do.  Further, tasks with no mm (whether because they are kernel threads or for
any other reason) should not be ustack()ed, nor tasks in which find_vma() cannot
find the vma corresponding to the usersp.  (Possible causes for this might be a
task which just smashed its own userspace sp or a task which is in the middle of
exiting or exec()ing.)

Orabug: 17591351

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
dtrace/dtrace_isa.c