Skip to content

Commit 59e8f10

Browse files
committed
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
2 parents d966564 + 228dbbf commit 59e8f10

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

arch/arm/kernel/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static int gpr_set(struct task_struct *target,
600600
const void *kbuf, const void __user *ubuf)
601601
{
602602
int ret;
603-
struct pt_regs newregs;
603+
struct pt_regs newregs = *task_pt_regs(target);
604604

605605
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
606606
&newregs,

arch/arm/mm/fault.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,9 @@ static int __init early_abort_handler(unsigned long addr, unsigned int fsr,
610610

611611
void __init early_abt_enable(void)
612612
{
613-
fsr_info[22].fn = early_abort_handler;
613+
fsr_info[FSR_FS_AEA].fn = early_abort_handler;
614614
local_abt_enable();
615-
fsr_info[22].fn = do_bad;
615+
fsr_info[FSR_FS_AEA].fn = do_bad;
616616
}
617617

618618
#ifndef CONFIG_ARM_LPAE

arch/arm/mm/fault.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
#define FSR_FS5_0 (0x3f)
1212

1313
#ifdef CONFIG_ARM_LPAE
14+
#define FSR_FS_AEA 17
15+
1416
static inline int fsr_fs(unsigned int fsr)
1517
{
1618
return fsr & FSR_FS5_0;
1719
}
1820
#else
21+
#define FSR_FS_AEA 22
22+
1923
static inline int fsr_fs(unsigned int fsr)
2024
{
2125
return (fsr & FSR_FS3_0) | (fsr & FSR_FS4) >> 6;

0 commit comments

Comments
 (0)