linux/arch
Michael Ellerman 48564b51ac powerpc: Fix DAR reporting when alignment handler faults
commit f9effe9250 upstream.

Anton noticed that if we fault part way through emulating an unaligned
instruction, we don't update the DAR to reflect that.

The DAR value is eventually reported back to userspace as the address
in the SEGV signal, and if userspace is using that value to demand
fault then it can be confused by us not setting the value correctly.

This patch is ugly as hell, but is intended to be the minimal fix and
back ports easily.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-09-27 14:39:21 +02:00
..
alpha alpha: uapi: Add support for __SANE_USERSPACE_TYPES__ 2017-09-07 08:35:40 +02:00
arc ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses 2017-08-30 10:21:46 +02:00
arm ARM: 8692/1: mm: abort uaccess retries upon fatal signal 2017-09-13 14:13:37 -07:00
arm64 ARM64: dts: marvell: armada-37xx: Fix GIC maintenance interrupt 2017-09-13 14:13:36 -07:00
avr32 Merge branch 'akpm' (patches from Andrew) 2016-10-07 21:38:00 -07:00
blackfin ptrace: Don't allow accessing an undumpable mm 2017-01-06 10:40:13 +01:00
c6x c6x/ptrace: Remove useless PTRACE_SETREGSET implementation 2017-03-31 10:31:46 +02:00
cris cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected 2017-01-12 11:39:24 +01:00
frv mm: larger stack guard gap, between vmas 2017-06-24 07:11:18 +02:00
h8300 h8300/ptrace: Fix incorrect register transfer count 2017-03-31 10:31:46 +02:00
hexagon nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
ia64 ptrace: Don't allow accessing an undumpable mm 2017-01-06 10:40:13 +01:00
m32r mm: replace access_process_vm() write parameter with gup_flags 2016-10-19 08:31:25 -07:00
m68k m68k: Fix ndelay() macro 2016-10-30 10:13:55 +01:00
metag metag/uaccess: Check access_ok in strncpy_from_user 2017-05-25 15:44:46 +02:00
microblaze Merge branch 'work.uaccess2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-11 23:38:39 -07:00
mips MIPS: math-emu: <MADDF|MSUBF>.D: Fix accuracy (64-bit case) 2017-09-27 14:39:20 +02:00
mn10300 mn10300: fix build error of missing fpu_save() 2017-06-17 06:41:56 +02:00
nios2 nios2: reserve boot memory for device tree 2017-04-12 12:41:14 +02:00
openrisc openrisc: Add _text symbol to fix ksym build error 2017-08-06 18:59:46 -07:00
parisc parisc: Handle vma's whose context is not current in flush_cache_range 2017-08-11 08:49:27 -07:00
powerpc powerpc: Fix DAR reporting when alignment handler faults 2017-09-27 14:39:21 +02:00
s390 s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs 2017-09-09 17:39:41 +02:00
score Merge branch 'gup_flag-cleanups' 2016-10-19 08:39:47 -07:00
sh mm: larger stack guard gap, between vmas 2017-06-24 07:11:18 +02:00
sparc sparc64: remove unnecessary log message 2017-08-30 10:21:38 +02:00
tile mm: larger stack guard gap, between vmas 2017-06-24 07:11:18 +02:00
um um: Fix to call read_initrd after init_bootmem 2017-05-25 15:44:47 +02:00
unicore32 unicore32: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
x86 x86/switch_to/64: Rewrite FS/GS switching yet again to fix AMD CPUs 2017-09-20 08:19:57 +02:00
xtensa xtensa: don't limit csum_partial export by CONFIG_NET 2017-08-16 13:43:16 -07:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig This adds a new gcc plugin named "latent_entropy". It is designed to 2016-10-15 10:03:15 -07:00