Skip to content

ARC do_page_fault rework

Vineet Gupta linux-mm linux-snps-arc lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ARC: mm: SIGSEGV userspace trying to access kernel virtual memoryarch/arc/mm/fault.c+3 -61 reply
2/9ARC: mm: do_page_fault refactor #1: remove label @good_areaarch/arc/mm/fault.c+5 -70 replies
3/9ARC: mm: do_page_fault refactor #2: remove short lived variablearch/arc/mm/fault.c+1 -60 replies
4/9ARC: mm: do_page_fault refactor #3: tidyup vma access permission codearch/arc/mm/fault.c+21 -186 replies
5/9ARC: mm: do_page_fault refactor #4: consolidate retry related logicarch/arc/mm/fault.c+31 -290 replies
6/9ARC: mm: do_page_fault refactor #5: scoot no_context to endarch/arc/mm/fault.c+7 -140 replies
7/9ARC: mm: do_page_fault refactor #6: error handlers to use same patternarch/arc/mm/fault.c+10 -110 replies
8/9ARC: mm: do_page_fault refactor #7: fold the various error handlingarch/arc/mm/fault.c+13 -330 replies
9/9ARC: mm: do_page_fault refactor #8: release mmap_sem soonerarch/arc/mm/fault.c+4 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] ARC do_page_fault rework

This was on my todo list and Eugeniy's patch in this area pestered me to finish it finally.

The ideas it to cleanup/tidyup ancient do_page_fault() code and make it more readable and hopefully better generated code. There are only a few/subtle functional changes
- Eugeniy's fix to prevent user space looping
- reduction in mmap_sem hold times

Also this could have been 1 single patch but this is tricky part of mm handling so better done as bite sized pieces to track down any regressions

Eugeniy Paltsev (1):
ARC: mm: SIGSEGV userspace trying to access kernel virtual memory

Vineet Gupta (8):
ARC: mm: do_page_fault refactor #1: remove label @good_area
ARC: mm: do_page_fault refactor #2: remove short lived variable
ARC: mm: do_page_fault refactor #3: tidyup vma access permission code
ARC: mm: do_page_fault refactor #4: consolidate retry related logic
ARC: mm: do_page_fault refactor #5: scoot no_context to end
ARC: mm: do_page_fault refactor #6: error handlers to use same pattern
ARC: mm: do_page_fault refactor #7: fold the various error handling
ARC: mm: do_page_fault refactor #8: release mmap_sem sooner

 arch/arc/mm/fault.c | 192 +++++++++++++++++++++-------------------------------
 1 file changed, 79 insertions(+), 113 deletions(-)
Signature · 1 line
2.7.4