stacktrace: Force USER_DS for stack_trace_save_user()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 18 Jul 2019 08:47:47 +0000 (10:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jul 2019 14:47:24 +0000 (16:47 +0200)
commitcac9b9a4b08304f11daace03b8b48659355e44c1
treecee56fc360060307af45a702ba4120ed90f66f11
parent8e144797f1a67c52e386161863da4614a23ad913
stacktrace: Force USER_DS for stack_trace_save_user()

When walking userspace stacks, USER_DS needs to be set, otherwise
access_ok() will not function as expected.

Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Reported-by: Eiichi Tsukata <devel@etsukata.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Link: https://lkml.kernel.org/r/20190718085754.GM3402@hirez.programming.kicks-ass.net
kernel/stacktrace.c