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

From: Palmer Dabbelt
Date: Thu Feb 02 2023 - 22:32:11 EST


On Fri, 02 Dec 2022 19:03:51 PST (-0800), Palmer Dabbelt wrote:
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.

Just pinging this one, I'm not sure if it was just bad timing on the last one. That RISC-V patch is still sitting around outside my tree.