arm64: use IRQ_STACK_SIZE instead of THREAD_SIZE for irq stack
authorManinder Singh <maninder1.s@samsung.com>
Fri, 31 Jul 2020 11:49:50 +0000 (17:19 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 31 Jul 2020 17:05:36 +0000 (18:05 +0100)
IRQ_STACK_SIZE can be made different from THREAD_SIZE,
and as IRQ_STACK_SIZE is used while irq stack allocation,
same define should be used while printing information of irq stack.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/1596196190-14141-1-git-send-email-maninder1.s@samsung.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c

index 47f651df781cde3b8745208bf6ae222511614c38..13ebd5ca20706a0746c3a30b48343772e29171b7 100644 (file)
@@ -855,7 +855,7 @@ asmlinkage void handle_bad_stack(struct pt_regs *regs)
        pr_emerg("Task stack:     [0x%016lx..0x%016lx]\n",
                 tsk_stk, tsk_stk + THREAD_SIZE);
        pr_emerg("IRQ stack:      [0x%016lx..0x%016lx]\n",
-                irq_stk, irq_stk + THREAD_SIZE);
+                irq_stk, irq_stk + IRQ_STACK_SIZE);
        pr_emerg("Overflow stack: [0x%016lx..0x%016lx]\n",
                 ovf_stk, ovf_stk + OVERFLOW_STACK_SIZE);