linux-mainline/arch
Linus Torvalds 26178ec11e x86: mm: consolidate VM_FAULT_RETRY handling
The VM_FAULT_RETRY handling was confusing and incorrect for the case of
returning to kernel mode.  We need to handle the exception table fixup
if we return to kernel mode due to a fatal signal - it will basically
look to the kernel user mode access like the access failed due to the VM
going away from udner it.  Which is correct - the process is dying - and
avoids the whole "repeat endless kernel page faults" case.

Handling the VM_FAULT_RETRY early and in just one place also simplifies
the mmap_sem handling, since once we've taken care of VM_FAULT_RETRY we
know that we can just drop the lock.  The remaining accounting and
possible error handling is thread-local and does not need the mmap_sem.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-15 15:07:33 -08:00
..
alpha
arc
arm Char/Misc driver patches for 3.19-rc1 2014-12-14 16:43:47 -08:00
arm64
avr32
blackfin TTY/Serial driver patches for 3.19-rc1 2014-12-14 15:23:32 -08:00
c6x
cris
frv
hexagon
ia64
m32r
m68k
metag
microblaze
mips Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
mn10300
nios2
openrisc
parisc
powerpc Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
s390 Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
score
sh
sparc Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
tile
um TTY/Serial driver patches for 3.19-rc1 2014-12-14 15:23:32 -08:00
unicore32
x86 x86: mm: consolidate VM_FAULT_RETRY handling 2014-12-15 15:07:33 -08:00
xtensa
.gitignore
Kconfig