Home
last modified time | relevance | path

Searched refs:kuap (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/32/
Dkup.h124 current->thread.kuap = (addr & 0xf0000000) | ((((end - 1) >> 28) + 1) & 0xf); in allow_user_access()
136 u32 kuap = current->thread.kuap; in prevent_user_access() local
138 if (unlikely(!kuap)) in prevent_user_access()
141 addr = kuap & 0xf0000000; in prevent_user_access()
142 end = kuap << 28; in prevent_user_access()
153 current->thread.kuap = 0; in prevent_user_access()
159 unsigned long flags = current->thread.kuap; in prevent_user_access_return()
183 unsigned long begin = regs->kuap & 0xf0000000; in bad_kuap_fault()
184 unsigned long end = regs->kuap << 28; in bad_kuap_fault()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/
Dkup-radix.h77 if (mmu_has_feature(MMU_FTR_RADIX_KUAP) && unlikely(regs->kuap != amr)) { in kuap_restore_amr()
79 mtspr(SPRN_AMR, regs->kuap); in kuap_restore_amr()
144 (regs->kuap & (is_write ? AMR_KUAP_BLOCK_WRITE : AMR_KUAP_BLOCK_READ)), in bad_kuap_fault()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/
Dkup-8xx.h66 return WARN(!((regs->kuap ^ MD_APG_KUAP) & 0xff000000), in bad_kuap_fault()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dptrace.h58 unsigned long kuap; member
Dprocessor.h159 unsigned long kuap; /* opened segments for user access */ member
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dasm-offsets.c168 OFFSET(KUAP, thread_struct, kuap); in main()
358 STACK_PT_REGS_OFFSET(STACK_REGS_KUAP, kuap); in main()