Greetings!!! I am seeing a KUAP fault while booting a hash MMU on a POWER10 (pSeries) system with linux-next (7.1.0-rc7-next-20260610) with commandline option disable_radix=y. Test environment: Kernel: linux-next (next-20260610) Arch: powerpc (Power10 / pSeries) The .config file is attached. The issue is not observed on a POWER9 pSeries system using the same config file. Traces: [ 1.178612] Kernel attempted to read user page (7fffa31b6378) - exploit attempt? (uid: 0) [ 1.178619] ------------[ cut here ]------------ [ 1.178622] Bug: Read fault blocked by KUAP! [ 1.178627] WARNING: arch/powerpc/mm/fault.c:231 at bad_kernel_fault.isra.0+0xc8/0x2c0, CPU#5: udevadm/756 [ 1.178640] Modules linked in: dm_mirror dm_region_hash dm_log dm_mod [ 1.178650] CPU: 5 UID: 0 PID: 756 Comm: udevadm Not tainted 7.1.0-rc7-next-20260610 #21 PREEMPTLAZY [ 1.178656] Hardware name: IBM,9080-HEX POWER10 (architected) 0x800200 0xf000006 of:IBM,FW1060.00 (NH1060_012) hv:phyp pSeries [ 1.178662] NIP: c00000000014e2b8 LR: c00000000014e2b4 CTR: 0000000000000000 [ 1.178667] REGS: c000000011163390 TRAP: 0700 Not tainted (7.1.0-rc7-next-20260610) [ 1.178672] MSR: 8000000000029033 CR: 24042202 XER: 00000005 [ 1.178682] CFAR: c000000000237f24 IRQMASK: 3 [ 1.178682] GPR00: c00000000014e2b4 c000000011163650 c000000001b68100 0000000000000020 [ 1.178682] GPR04: 3ffffffffffdffff c000000011163440 c000000011163438 00000003eceb0000 [ 1.178682] GPR08: 0000000000000027 0000000000000000 c00000007033de00 c0000003edf00000 [ 1.178682] GPR12: c0000003eecfff90 c000000017ffa300 0000000000000000 0000000000000000 [ 1.178682] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 1.178682] GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 1.178682] GPR24: 0000000000000000 0000000000000000 0000000000000300 c00000009a418600 [ 1.178682] GPR28: 00007fffa31b6378 0000000000000000 00007fffa31b6378 c000000011163820 [ 1.178733] NIP [c00000000014e2b8] bad_kernel_fault.isra.0+0xc8/0x2c0 [ 1.178739] LR [c00000000014e2b4] bad_kernel_fault.isra.0+0xc4/0x2c0 [ 1.178744] Call Trace: [ 1.178747] [c000000011163650] [c00000000014e2b4] bad_kernel_fault.isra.0+0xc4/0x2c0 (unreliable) [ 1.178755] [c0000000111636d0] [c00000000014ed88] ___do_page_fault+0x318/0xa80 [ 1.178761] [c000000011163780] [c00000000014f51c] hash__do_page_fault+0x2c/0xc0 [ 1.178768] [c0000000111637b0] [c000000000159e48] do_hash_fault+0x178/0x200 [ 1.178773] [c0000000111637f0] [c000000000008be0] data_access_common_virt+0x210/0x220 [ 1.178780] ---- interrupt: 300 at __copy_tofrom_user_power7+0x238/0x270 [ 1.178785] NIP: c000000000176d1c LR: c000000000617718 CTR: 0000000000000000 [ 1.178789] REGS: c000000011163820 TRAP: 0300 Not tainted (7.1.0-rc7-next-20260610) [ 1.178794] MSR: 8000000000009033 CR: 84042204 XER: 0000000d [ 1.178802] CFAR: c000000000176cfc DAR: 00007fffa31b6378 DSISR: 00200000 IRQMASK: 0 [ 1.178802] GPR00: c000000000617940 c000000011163ae0 c000000001b68100 c000000011163bdc [ 1.178802] GPR04: 00007fffa31b6378 0000000000000004 c000000011163c58 c000000011163b90 [ 1.178802] GPR08: ffffffffa8aaaaaa fcffffffffffffff a8aaaaaaaaaaaaaa 0000000000002000 [ 1.178802] GPR12: c0000003eecfff90 c000000017ffa300 0000000000000000 0000000000000000 [ 1.178802] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 1.178802] GPR20: 0000000000000000 0000000000000000 0000000000000000 c0000000018bb570 [ 1.178802] GPR24: 0000000000000000 c0000000018bb568 c0000000018bb560 c000000011163e60 [ 1.178802] GPR28: 0000000000000000 c000000011163bdc 00007fffa31b6378 0000000000000004 [ 1.178852] NIP [c000000000176d1c] __copy_tofrom_user_power7+0x238/0x270 [ 1.178858] LR [c000000000617718] raw_copy_from_user+0x188/0x300 [ 1.178863] ---- interrupt: 300 [ 1.178865] [c000000011163ae0] [c000000011163b30] 0xc000000011163b30 (unreliable) [ 1.178873] [c000000011163b30] [c000000000617940] copy_from_user_nofault+0xb0/0xe0 [ 1.178879] [c000000011163b70] [c000000000020598] show_user_instructions+0x118/0x200 [ 1.178885] [c000000011163cb0] [c00000000002a550] show_signal_msg+0x150/0x170 [ 1.178892] [c000000011163d50] [c00000000002ce08] _exception_pkey+0x48/0xa0 [ 1.178898] [c000000011163d80] [c00000000014e868] bad_access_pkey+0x78/0x160 [ 1.178904] [c000000011163dc0] [c00000000014f51c] hash__do_page_fault+0x2c/0xc0 [ 1.178911] [c000000011163df0] [c000000000159e48] do_hash_fault+0x178/0x200 [ 1.178916] [c000000011163e30] [c000000000008be0] data_access_common_virt+0x210/0x220 [ 1.178922] ---- interrupt: 300 at 0x7fffa31b63a8 [ 1.178926] NIP: 00007fffa31b63a8 LR: 00007fffa31b639c CTR: 800000000280f033 [ 1.178930] REGS: c000000011163e60 TRAP: 0300 Not tainted (7.1.0-rc7-next-20260610) [ 1.178934] MSR: 800000000280f033 CR: 88042808 XER: 0000006c [ 1.178946] CFAR: c00000000000d158 DAR: 00007ffffebf9880 DSISR: 00200000 IRQMASK: 0 [ 1.178946] GPR00: 000000000000006c 00007ffffebf9870 fffffffffffff000 0000000000000000 [ 1.178946] GPR04: 00007ffffebf9a30 000000000028c000 0000000000000000 007570632f737562 [ 1.178946] GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 1.178946] GPR12: 0000000000000000 00007fffa39d2320 00007ffffebf98f0 0000000000000000 [ 1.178946] GPR16: 00007ffffebf9a30 0000000000000007 00007fffa37bdea0 00007ffffebf99a0 [ 1.178946] GPR20: 000001000c2d9760 0000000000000000 0000000000000001 0000000000000009 [ 1.178946] GPR24: 0000000000000008 00007ffffebf9910 000001000c2d9cf0 0000000000000009 [ 1.178946] GPR28: 00007ffffebf9c68 00007ffffebf9c64 000001000c2d9781 0000000000000002 [ 1.178996] NIP [00007fffa31b63a8] 0x7fffa31b63a8 [ 1.179000] LR [00007fffa31b639c] 0x7fffa31b639c [ 1.179003] ---- interrupt: 300 [ 1.179006] Code: 40820130 e87f0100 481291a9 60000000 2c230000 41820114 3c82ffd6 3884f658 3c62ffd6 3863f6f0 480e9b69 60000000 <0fe00000> e8010090 ebe10078 7c0803a6 [ 1.179021] ---[ end trace 0000000000000000 ]--- After reverting the following two patches, the fault is no longer observed: 1. powerpc: Enable GENERIC_ENTRY feature https://lore.kernel.org/all/20260427122742.210074-8-mkchauras@gmail.com/ 2. powerpc: Remove unused functions https://lore.kernel.org/all/20260427122742.210074-9-mkchauras@gmail.com/ If you happen to fix this, please add below tag. Reported-by: Sayali Patil Regards, Sayali