diff options
| author | Josh Poimboeuf <[email protected]> | 2016-08-18 15:59:07 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-08-18 16:41:32 +0000 |
| commit | 8b927d734122f3021c5999aaeffaa2a36ab224c2 (patch) | |
| tree | d5599086d4a9b0c06dfce446f5f67e87eb04a0c4 /lib/dma-debug.c | |
| parent | x86/dumpstack: Fix x86_32 kernel_stack_pointer() previous stack access (diff) | |
| download | kernel-8b927d734122f3021c5999aaeffaa2a36ab224c2.tar.gz kernel-8b927d734122f3021c5999aaeffaa2a36ab224c2.zip | |
proc: Fix return address printk conversion specifer in /proc/<pid>/stack
When printing call return addresses found on a stack, /proc/<pid>/stack
can sometimes give a confusing result. If the call instruction was the
last instruction in the function (which can happen when calling a
noreturn function), '%pS' will incorrectly display the name of the
function which happens to be next in the object code, rather than the
name of the actual calling function.
Use '%pB' instead, which was created for this exact purpose.
Signed-off-by: Josh Poimboeuf <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Byungchul Park <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Nilay Vaish <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/47ad2821e5ebdbed1fbf83fb85424ae4fbdf8b6e.1471535549.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
