-
由 Chunyan Zhang 提交于
An additional 'ip' will be pushed to the stack, for restoring the DACR later, if CONFIG_CPU_SW_DOMAIN_PAN defined. However, the fixup still get the err_ptr by add #8*4 to sp, which results in the fact that the code area pointed by the LR will be overwritten, or the kernel will crash if CONFIG_DEBUG_RODATA is enabled. This patch fixes the stack mismatch. Fixes: a5e090ac ("ARM: software-based priviledged-no-access support") Signed-off-by: NLvqiang Huang <Lvqiang.Huang@spreadtrum.com> Signed-off-by: NChunyan Zhang <zhang.lyra@gmail.com> Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
36b0cb84