projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d7b75
)
m68k: mm: Remove check for VM_IO to fix deferred I/O
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Fri, 28 Jan 2022 17:30:06 +0000
(18:30 +0100)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Mon, 21 Feb 2022 11:00:20 +0000
(12:00 +0100)
When an application accesses a mapped frame buffer backed by deferred
I/O, it receives a segmentation fault. Fix this by removing the check
for VM_IO in do_page_fault().
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Link:
https://lore.kernel.org/r/20220128173006.1713210-1-geert@linux-m68k.org
arch/m68k/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/m68k/mm/fault.c
b/arch/m68k/mm/fault.c
index 1493cf5eac1e7a3931c068ed6b42bdc8b0b249d4..71aa9f6315dc8028dcb17243d6e63df0068119ec 100644
(file)
--- a/
arch/m68k/mm/fault.c
+++ b/
arch/m68k/mm/fault.c
@@
-93,8
+93,6
@@
retry:
vma = find_vma(mm, address);
if (!vma)
goto map_err;
- if (vma->vm_flags & VM_IO)
- goto acc_err;
if (vma->vm_start <= address)
goto good_area;
if (!(vma->vm_flags & VM_GROWSDOWN))