android_kernel_samsung_univ.../arch
Mark Rutland 84478477d0 ARM: 8692/1: mm: abort uaccess retries upon fatal signal
commit 746a272e44141af24a02f6c9b0f65f4c4598ed42 upstream.

When there's a fatal signal pending, arm's do_page_fault()
implementation returns 0. The intent is that we'll return to the
faulting userspace instruction, delivering the signal on the way.

However, if we take a fatal signal during fixing up a uaccess, this
results in a return to the faulting kernel instruction, which will be
instantly retried, resulting in the same fault being taken forever. As
the task never reaches userspace, the signal is not delivered, and the
task is left unkillable. While the task is stuck in this state, it can
inhibit the forward progress of the system.

To avoid this, we must ensure that when a fatal signal is pending, we
apply any necessary fixup for a faulting kernel instruction. Thus we
will return to an error path, and it is up to that code to make forward
progress towards delivering the fatal signal.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-13 14:09:46 -07:00
..
alpha alpha: uapi: Add support for __SANE_USERSPACE_TYPES__ 2017-09-07 08:34:09 +02:00
arc ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses 2017-08-30 10:19:22 +02:00
arm ARM: 8692/1: mm: abort uaccess retries upon fatal signal 2017-09-13 14:09:46 -07:00
arm64 arm64: fpsimd: Prevent registers leaking across exec 2017-09-02 07:06:52 +02:00
avr32
blackfin
c6x c6x/ptrace: Remove useless PTRACE_SETREGSET implementation 2017-03-31 09:49:53 +02:00
cris cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected 2017-01-12 11:22:48 +01:00
frv mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
h8300 h8300/ptrace: Fix incorrect register transfer count 2017-03-31 09:49:53 +02:00
hexagon
ia64
m32r
m68k m68k: Fix ndelay() macro 2016-12-15 08:49:23 -08:00
metag metag/uaccess: Check access_ok in strncpy_from_user 2017-05-25 14:30:16 +02:00
microblaze
mips MIPS: Fix a typo: s/preset/present/ in r2-to-r6 emulation error message 2017-07-27 15:06:08 -07:00
mn10300
nios2 nios2: reserve boot memory for device tree 2017-04-12 12:38:34 +02:00
openrisc openrisc: Add _text symbol to fix ksym build error 2017-08-06 19:19:45 -07:00
parisc parisc/mm: Ensure IRQs are off in switch_mm() 2017-07-21 07:44:56 +02:00
powerpc Revert "powerpc/numa: Fix percpu allocations to be NUMA aware" 2017-08-06 19:19:40 -07:00
s390 bpf, s390: fix jit branch offset related to ldimm64 2017-08-12 19:29:08 -07:00
score
sh mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
sparc sparc64: Prevent perf from running during super critical sections 2017-08-12 19:29:09 -07:00
tile mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
um
unicore32
x86 x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl 2017-09-02 07:06:52 +02:00
xtensa mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
.gitignore
Kconfig