Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a363e2ea authored by Matt Wagantall's avatar Matt Wagantall Committed by Gerrit - the friendly Code Review server
Browse files

arm64: Don't call dump_mem() on stack memory during __die()



With multiple CPUs online, these memory dumps may consume a very
large amount of log buffer space, pushing out useful information.

Drop the call to dump_mem() for stack memory. The actual string-
formatted call stack will still be printed, which should be sufficient
for identifying the context of a panic. Stack memory can be collected
from full memory ramdumps if needed.

Change-Id: I2d08b49217b3838d3d3e7f8deceb937bb90ffaf7
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 3077ef85
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -248,8 +248,6 @@ static int __die(const char *str, int err, struct thread_info *thread,
		 TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), thread + 1);

	if (!user_mode(regs)) {
		dump_mem(KERN_EMERG, "Stack: ", regs->sp,
			 THREAD_SIZE + (unsigned long)task_stack_page(tsk));
		dump_backtrace(regs, tsk);
		dump_instr(KERN_EMERG, regs);
	}