summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/dma-isa.c
diff options
context:
space:
mode:
authorDeepesh Gujarathi <dgujarathi@nvidia.com>2011-04-20 17:17:39 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-04-20 22:24:07 -0700
commit7658942c9866ae6299a7b50735007ae763b303e6 (patch)
tree0abe8b9b906c6665b1a254eaacf518895a117fb9 /arch/arm/kernel/dma-isa.c
parentedb1ab30472bff7fb9871a00db8720c2b51d9c21 (diff)
ARM: fix /proc/$PID/stack on SMP
Rabin Vincent reports: | On SMP, this BUG() in save_stack_trace_tsk() can be easily triggered | from user space by reading /proc/$PID/stack, where $PID is any pid but | the current process: | | if (tsk != current) { | #ifdef CONFIG_SMP | /* | * What guarantees do we have here that 'tsk' | * is not running on another CPU? | */ | BUG(); | #else Fix this by replacing the BUG() with an entry to terminate the stack trace, returning an empty trace - I'd rather not expose the dwarf unwinder to a volatile stack of a running thread. Change-Id: Ide38bb5eeff09c1d1189bc1a30667a2cc6b96ba2 Reported-by: Rabin Vincent <rabin@rab.in> Tested-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Reviewed-on: http://git-master/r/28325 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch/arm/kernel/dma-isa.c')
0 files changed, 0 insertions, 0 deletions