summaryrefslogtreecommitdiffstats
path: root/arch/arm/net/bpf_jit_32.c
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.lyra@gmail.com>2017-12-01 03:51:04 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2017-12-17 22:20:39 +0000
commit36b0cb84ee858f02c256d26f0cb4229c78e3399e (patch)
tree93c6a8bf7411d87744c5d1e4fe685036b7bd9b33 /arch/arm/net/bpf_jit_32.c
parentae64f9bd1d3621b5e60d7363bc20afb46aede215 (diff)
downloadlinux-stable-36b0cb84ee858f02c256d26f0cb4229c78e3399e.tar.gz
linux-stable-36b0cb84ee858f02c256d26f0cb4229c78e3399e.tar.bz2
linux-stable-36b0cb84ee858f02c256d26f0cb4229c78e3399e.zip
ARM: 8731/1: Fix csum_partial_copy_from_user() stack mismatch
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: a5e090acbf54 ("ARM: software-based priviledged-no-access support") Signed-off-by: Lvqiang Huang <Lvqiang.Huang@spreadtrum.com> Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/net/bpf_jit_32.c')
0 files changed, 0 insertions, 0 deletions