aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 14:30:56 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 14:30:56 -0500
commit59e8f10ac16186c226ef81937994534b28b976f4 (patch)
tree66149a98d76008ac3e36a4cae624651f20659e07
parentd966564fcdc19e13eb6ba1fbe6b8101070339c3d (diff)
parent228dbbfb5d77f8e047b2a1d78da14b7158433027 (diff)
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "A couple more fixes for 4.10: - fix addressing the short regset write issue (Dave Martin) - fix for LPAE systems which leave a pending imprecise data abort before entering the kernel (Alexander Sverdlin)" * 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 8643/3: arm/ptrace: Preserve previous registers for short regset write ARM: 8642/1: LPAE: catch pending imprecise abort on unmask
-rw-r--r--arch/arm/kernel/ptrace.c2
-rw-r--r--arch/arm/mm/fault.c4
-rw-r--r--arch/arm/mm/fault.h4
3 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index ce131ed5939d..ae738a6319f6 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -600,7 +600,7 @@ static int gpr_set(struct task_struct *target,
600 const void *kbuf, const void __user *ubuf) 600 const void *kbuf, const void __user *ubuf)
601{ 601{
602 int ret; 602 int ret;
603 struct pt_regs newregs; 603 struct pt_regs newregs = *task_pt_regs(target);
604 604
605 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, 605 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
606 &newregs, 606 &newregs,
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index 3a2e678b8d30..0122ad1a6027 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -610,9 +610,9 @@ static int __init early_abort_handler(unsigned long addr, unsigned int fsr,
610 610
611void __init early_abt_enable(void) 611void __init early_abt_enable(void)
612{ 612{
613 fsr_info[22].fn = early_abort_handler; 613 fsr_info[FSR_FS_AEA].fn = early_abort_handler;
614 local_abt_enable(); 614 local_abt_enable();
615 fsr_info[22].fn = do_bad; 615 fsr_info[FSR_FS_AEA].fn = do_bad;
616} 616}
617 617
618#ifndef CONFIG_ARM_LPAE 618#ifndef CONFIG_ARM_LPAE
diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h
index 67532f242271..afc1f84e763b 100644
--- a/arch/arm/mm/fault.h
+++ b/arch/arm/mm/fault.h
@@ -11,11 +11,15 @@
11#define FSR_FS5_0 (0x3f) 11#define FSR_FS5_0 (0x3f)
12 12
13#ifdef CONFIG_ARM_LPAE 13#ifdef CONFIG_ARM_LPAE
14#define FSR_FS_AEA 17
15
14static inline int fsr_fs(unsigned int fsr) 16static inline int fsr_fs(unsigned int fsr)
15{ 17{
16 return fsr & FSR_FS5_0; 18 return fsr & FSR_FS5_0;
17} 19}
18#else 20#else
21#define FSR_FS_AEA 22
22
19static inline int fsr_fs(unsigned int fsr) 23static inline int fsr_fs(unsigned int fsr)
20{ 24{
21 return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6; 25 return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6;