Skip to content

Commit 88d927e

Browse files
tmlindRussell King
authored andcommitted
ARM: 6465/1: Fix data abort accessing proc_info from __lookup_processor_type
Commit 5085f3f added better support for CONFIG_HOTPLUG_CPU by keeping proc_info around. However, depending on the Kconfig options selected, this can make the booting fail mysteriously early on. Turns out a data abort can happen in __lookup_processor in ldmia r5 {r3, r4}. When it happens the address loaded to r5 is not aligned. Fix the problem by aligning proc_info. Reported-by: Anand Gadiyar <gadiyar@ti.com> Tested-by: Anand Gadiyar <gadiyar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent d463f36 commit 88d927e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/arm/kernel/vmlinux.lds.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ SECTIONS
113113
*(.rodata.*)
114114
*(.glue_7)
115115
*(.glue_7t)
116+
. = ALIGN(4);
116117
*(.got) /* Global offset table */
117118
ARM_CPU_KEEP(PROC_INFO)
118119
}

0 commit comments

Comments
 (0)