Re: [REGRESSION 6.12.117] CPA detected W^X violation: 0000000000000121 -> 0000000000000123 range: 0xffffffffc0477000 - 0xffffffffc0477fff PFN 109c1f and WARNING at arch/x86/mm/pat/set_memory.c:665 __change_page_attr_set_clr+0xf62/0xfb0

From: Sasha Levin

Date: Sun Nov 15 2026 - 19:55:54 EST


On Sun, Nov 15, 2026 at 03:16:20PM -0800, Barry K. Nathan wrote:
On 11/14/26 9:42 AM, Sasha Levin wrote:
On 2026-11-13, Salvatore Bonaccorso<carnil@xxxxxxxxxx> wrote:
One followup to this. Reverting

Fixes: 091c44b2d3c3 ("x86/mm/pat: Use pr_warn() for early W^X warnings")
Fixes: 11d1ba991c07 ("x86/mm/pat: Fix effective RW computation in lookup_address_in_pgd_attr()")
Thanks for testing. Queued reverts of both for 6.12.

I see that in the current stable-queue (commit
3b8ff7f280433e6fb085dbc4f44ac6a138f352a0, "Fixes for all trees"),
these two reverts are queued in staging-6.12, not queue-6.12, so
queued up for 6.12.119 not 6.12.118 as far as I can tell.

I don't know if this was some kind of oversight or if it's
intentional, so I just wanted to bring it to your attention.

It's intentional. I don't want to play with the queue right before the release,
and we've already shipped this regression so there's no reason to rush.

--
Thanks,
Sasha