From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751894AbcGNTOa (ORCPT ); Thu, 14 Jul 2016 15:14:30 -0400 Received: from mail.kernel.org ([198.145.29.136]:36206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751517AbcGNTOV (ORCPT ); Thu, 14 Jul 2016 15:14:21 -0400 From: Andy Lutomirski To: Andrew Morton Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Brian Gerst , Andy Lutomirski Subject: [PATCH 4/4] printk: When dumping regs, show the stack, not thread_info Date: Thu, 14 Jul 2016 12:14:13 -0700 Message-Id: <543ac5bd66ff94000a57a02e11af7239571a3055.1468523549.git.luto@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We currently show: task: ti: task.ti: " "ti" and "task.ti" are redundant, and neither is actually what we want to show, which the the base of the thread stack. Change the display to show the stack pointer explicitly. Signed-off-by: Andy Lutomirski --- kernel/printk/printk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 60cdf6386763..d4de33934dac 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3177,9 +3177,8 @@ void show_regs_print_info(const char *log_lvl) { dump_stack_print_info(log_lvl); - printk("%stask: %p ti: %p task.ti: %p\n", - log_lvl, current, current_thread_info(), - task_thread_info(current)); + printk("%stask: %p task.stack: %p\n", + log_lvl, current, task_stack_page(current)); } #endif -- 2.7.4