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: Mike Rapoport
Date: Mon Nov 16 2026 - 05:56:18 EST
Hi,
On Mon, Nov 16, 2026 at 03:01:26PM +0530, Harshit Mogalapalli wrote:
> Hi Sasha,
>
> On 14/11/26 11:12 pm, 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.
> >
>
> Thanks!
>
> Quick Note: We are just reverting the fixes just removed the fixes to the
> checker and the actual broken commit is: commit: 88a817e60dbb ("x86/its: Use
> dynamic thunks for indirect branches") that introduced this problem.
It didn't introduce a real problem, the permission are correct in the end.
It's just the intermediate state that causes warnings.
> thanks,
> Harshit
>
> > The same two patches are also dropped from the 6.6 and 6.1 queues, where they
> > had not been released yet. 7.3 and 6.18 keep them, since there the check only
> > prints a pr_warn.
> >
>
--
Sincerely yours,
Mike.