projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd0bf90
)
csky: mm: abort uaccess retries upon fatal signal
author
Guo Ren
<guoren@linux.alibaba.com>
Wed, 30 Dec 2020 10:06:22 +0000
(10:06 +0000)
committer
Guo Ren
<guoren@linux.alibaba.com>
Tue, 12 Jan 2021 01:52:41 +0000
(09:52 +0800)
Pick up the patch from the 'Link' made by Mark Rutland. Keep the
same with x86, arm, arm64, arc, sh, power.
Link:
https://lore.kernel.org/linux-arm-kernel/1499782763-31418-1-git-send-email-mark.rutland@arm.com/
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Mark Rutland <mark.rutland@arm.com>
arch/csky/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/csky/mm/fault.c
b/arch/csky/mm/fault.c
index
c7b6797
..
1482de5
100644
(file)
--- a/
arch/csky/mm/fault.c
+++ b/
arch/csky/mm/fault.c
@@
-279,8
+279,11
@@
good_area:
* signal first. We do not need to release the mmap_lock because it
* would already be released in __lock_page_or_retry in mm/filemap.c.
*/
- if (fault_signal_pending(fault, regs))
+ if (fault_signal_pending(fault, regs)) {
+ if (!user_mode(regs))
+ no_context(regs, addr);
return;
+ }
if (unlikely((fault & VM_FAULT_RETRY) && (flags & FAULT_FLAG_ALLOW_RETRY))) {
flags |= FAULT_FLAG_TRIED;