Skip to content

Commit 7b1a09e

Browse files
HuangShijie2024willdeacon
authored andcommitted
arm64: irq: set the correct node for shadow call stack
The init_irq_stacks() has been changed to use the correct node: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=75b5e0bf90bf The init_irq_scs() has the same issue with init_irq_stacks(): cpu_to_node() is not initialized yet, it does not work. This patch uses early_cpu_to_node() to set the init_irq_scs() with the correct node. Signed-off-by: Huang Shijie <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 75b5e0b commit 7b1a09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void init_irq_scs(void)
4848

4949
for_each_possible_cpu(cpu)
5050
per_cpu(irq_shadow_call_stack_ptr, cpu) =
51-
scs_alloc(cpu_to_node(cpu));
51+
scs_alloc(early_cpu_to_node(cpu));
5252
}
5353

5454
#ifdef CONFIG_VMAP_STACK

0 commit comments

Comments
 (0)