Skip to content

Commit

Permalink
m68k: mm: Remove check for VM_IO to fix deferred I/O
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Michael Schmitz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
geertu committed Feb 21, 2022
1 parent 91d7b75 commit c4d5b6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/m68k/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
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))
Expand Down

0 comments on commit c4d5b6e

Please sign in to comment.