[PATCH 0/5] mm: Stop alaising VM_FAULT_HINDEX_MASK in arch code

From: Palmer Dabbelt
Date: Fri Dec 02 2022 - 22:05:46 EST


When reviewing
<https://lore.kernel.org/r/20221029084715.3669204-1-tongtiangen@xxxxxxxxxx>
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.

The RISC-V patch is on top of the linked patch above, which isn't in any
proper tree yet. Everything else should apply to 6.1-rc1, but I'm in no
particular rush to get that cleanup in so rush on my end for 6.2. That
said I figured it would be easier to send along this now, just in case
someone who knows the MM code better thinks it can manifest as a bug.