Skip to content

mm: Stop alaising VM_FAULT_HINDEX_MASK in arch code

Palmer Dabbelt linux-arm-kernel linux-mm linux-riscv linux-s390 oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6riscv/mm/fault: simplify code for do_page_fault()arch/riscv/mm/fault.c+41 -362 replies
2/6mm: Add a leading 0 to the VM_FAULT_* typesinclude/linux/mm_types.h+14 -140 replies
3/6mm: Add VM_FAULT_ARCH_* codesinclude/linux/mm_types.h+12 -10 replies
4/6RISC-V: fault: Convert to VM_FAULT_ARCH_* codesarch/riscv/mm/fault.c+2 -20 replies
5/6arm: fault: Convert to VM_FAULT_ARCH_* codesarch/arm/mm/fault.c+2 -20 replies
6/6s390: fault: Convert to VM_FAULT_ARCH_* codesarch/s390/mm/fault.c+5 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/6] mm: Stop alaising VM_FAULT_HINDEX_MASK in arch code

When reviewing
<https://lore.kernel.org/r/[email protected]>
I noticed that the arch-specific VM_FAULT flags used by arm and s390 alias with VM_FAULT_HINDEX_MASK. I'm not sure if it's possible to manifest this as a bug, but it certainly seems fragile.

I'm including that original patch this time in the hope that makes it easier for folks to review. There were some boring conflicts so I figured I'd rebase rather than pinging again.

Changes since v1 <[email protected]>:

* Add the original patch, and reorder the RISC-V stuff first.
* Rebased on v6.3-rc2
* Moved the comment about VM_FAULT_ARCH_* to the patch that adds those, rather than the patch that adds 0s.