linux_dsm_epyc7002/arch/arm64/kernel
Prakash Gupta bb53c820c5 arm64: stacktrace: avoid listing stacktrace functions in stacktrace
The stacktraces always begin as follows:

  [<c00117b4>] save_stack_trace_tsk+0x0/0x98
  [<c0011870>] save_stack_trace+0x24/0x28
  ...

This is because the stack trace code includes the stack frames for
itself.  This is incorrect behaviour, and also leads to "skip" doing the
wrong thing (which is the number of stack frames to avoid recording.)

Perversely, it does the right thing when passed a non-current thread.
Fix this by ensuring that we have a known constant number of frames
above the main stack trace function, and always skip these.

This was fixed for arch arm by commit 3683f44c42 ("ARM: stacktrace:
avoid listing stacktrace functions in stacktrace")

Link: http://lkml.kernel.org/r/1504078343-28754-1-git-send-email-guptap@codeaurora.org
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-09-13 18:53:16 -07:00
..
probes
vdso
.gitignore
acpi_numa.c
acpi_parking_protocol.c
acpi.c
alternative.c
arm64ksyms.c
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
cpu_errata.c
cpu_ops.c
cpu-reset.h
cpu-reset.S
cpufeature.c
cpuidle.c
cpuinfo.c
crash_dump.c
debug-monitors.c
efi-entry.S
efi-header.S
efi.c
entry32.S
entry-fpsimd.S
entry-ftrace.S
entry.S
fpsimd.c
ftrace-mod.S
ftrace.c
head.S arm64 updates for 4.14: 2017-09-05 09:53:37 -07:00
hibernate-asm.S
hibernate.c
hw_breakpoint.c
hyp-stub.S
image.h
insn.c
io.c
irq.c
jump_label.c
kaslr.c
kgdb.c
kuser32.S
machine_kexec.c
Makefile
module-plts.c
module.c
module.lds
paravirt.c
pci.c
perf_callchain.c
perf_event.c
perf_regs.c
process.c arm64 updates for 4.14: 2017-09-05 09:53:37 -07:00
psci.c
ptrace.c
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S
return_address.c
setup.c
signal32.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2017-09-11 18:34:47 -07:00
signal.c arm64 updates for 4.14: 2017-09-05 09:53:37 -07:00
sleep.S
smccc-call.S
smp_spin_table.c
smp.c treewide: make "nr_cpu_ids" unsigned 2017-09-08 18:26:48 -07:00
stacktrace.c arm64: stacktrace: avoid listing stacktrace functions in stacktrace 2017-09-13 18:53:16 -07:00
suspend.c
sys32.c
sys_compat.c
sys.c
time.c
topology.c
trace-events-emulation.h
traps.c
vdso.c
vmlinux.lds.S