lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 23 Sep 2013 17:38:04 +0200 From: Richard Weinberger <richard@....at> To: user-mode-linux-devel@...ts.sourceforge.net Cc: linux-kernel@...r.kernel.org, Richard Weinberger <richard@....at> Subject: [PATCH 4/4] um: Make kstack_depth_to_print conform to arch/x86 Signed-off-by: Richard Weinberger <richard@....at> --- arch/um/kernel/sysrq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index 7122bf9..4d6fdf6 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -46,9 +46,6 @@ static void print_stack_trace(unsigned long *sp, unsigned long bp) printk(KERN_INFO "\n"); } -/*Stolen from arch/i386/kernel/traps.c */ -static const int kstack_depth_to_print = 24; - static unsigned long get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) { @@ -88,7 +85,7 @@ void show_stack(struct task_struct *task, unsigned long *stack) printk(KERN_INFO "Stack:\n"); stack = sp; - for (i = 0; i < kstack_depth_to_print; i++) { + for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) { if (kstack_end(stack)) break; if (i && ((i % STACKSLOTS_PER_LINE) == 0)) -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists