Hi
kernel build / boot test on x86_64 (11th Gen Intel Core i5-11400).
not bisected, just "visual grepped" on the linux-stable-rc.git log !
I need to revert:
"x86/mm/pat: Fix effective RW computation in lookup_address_in_pgd_attr()"
commit 7f85bfd44bcccf315eb30145e9c2a2fd9f6f8a87
otherwise I get:
[ 0.105981] x86/fpu: Enabled xstate features 0x2ff, context size is 2568 bytes, using 'compacted' format. [ 0.108036] ------------[ cut here ]------------ [ 0.108037] CPA detected W^X violation: 8000000000000123 -> 0000000000000123 range: 0xffffffffc0400000 - 0xffffffffc0400fff PFN 101000 [ 0.108039] WARNING: arch/x86/mm/pat/set_memory.c:722 at __change_page_attr_set_clr+0xc4c/0x11f0, CPU#0: swapper/0/0 [ 0.108043] Modules linked in: [ 0.108045] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.3.2-rc1_MY-g75eaee7a6465 #1 PREEMPT(lazy) [ 0.108047] Hardware name: ASUS System Product Name/ROG STRIX B560-G GAMING WIFI, BIOS 2501 05/22/2026 [ 0.108048] RIP: 0010:__change_page_attr_set_clr+0xc65/0x11f0 [ 0.108050] Code: 7c 24 4c 00 0f 85 e9 03 00 00 48 8d 3d a4 78 01 03 48 8b 34 24 4d 89 e9 4d 8d 84 24 ff 0f 00 00 4c 89 e1 48 89 c2 48 89 04 24 <67> 48 0f b9 3a 48 8b 04 24 48 ba 00 f0 ff ff ff ff 0f 00 48 21 d3 [ 0.108052] RSP: 0000:ffffffff85203c40 EFLAGS: 00010246 [ 0.108053] RAX: 0000000000000123 RBX: 8000000101000123 RCX: ffffffffc0400000 [ 0.108054] RDX: 0000000000000123 RSI: 8000000000000123 RDI: ffffffff857c8f70 [ 0.108055] RBP: 8000000101000123 R08: ffffffffc0400fff R09: 0000000000101000 [ 0.108056] R10: 0000000000000123 R11: 0000000000000000 R12: ffffffffc0400000 [ 0.108056] R13: 0000000000101000 R14: 000ffffffffff000 R15: ffffffff85203d40 [ 0.108057] FS: 0000000000000000(0000) GS:ffff97940910f000(0000) knlGS:0000000000000000 [ 0.108058] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.108059] CR2: ffff979067570000 CR3: 0000000126238001 CR4: 0000000000770ef0 [ 0.108060] PKRU: 55555554 [ 0.108061] Call Trace: [ 0.108062] <TASK> [ 0.108064] ? _vm_unmap_aliases+0x229/0x2a0 [ 0.108067] change_page_attr_set_clr+0x154/0x5a0 [ 0.108070] ? perf_get_hw_event_config+0x28/0x30 [ 0.108072] set_memory_x+0x39/0x50 [ 0.108073] apply_retpolines+0x695/0x710 [ 0.108077] ? perf_get_hw_event_config+0x28/0x30 [ 0.108078] ? __pfx_x86_pmu_filter+0x7/0x10 [ 0.108080] ? perf_get_hw_event_config+0x2d/0x30 [ 0.108081] alternative_instructions+0x37/0xc0 [ 0.108086] arch_cpu_finalize_init+0x11b/0x170 [ 0.108087] start_kernel+0x9ae/0xa50 [ 0.108089] x86_64_start_reservations+0x24/0x30 [ 0.108091] x86_64_start_kernel+0x121/0x130 [ 0.108092] common_startup_64+0x13e/0x158 [ 0.108095] </TASK> [ 0.108095] ---[ end trace 0000000000000000 ]---
Thanks
Tested-by: Ronald Warsow rwarsow@gmx.de