Searched refs:kuap (Results 1 – 6 of 6) sorted by relevance
124 current->thread.kuap = (addr & 0xf0000000) | ((((end - 1) >> 28) + 1) & 0xf); in allow_user_access()136 u32 kuap = current->thread.kuap; in prevent_user_access() local138 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()
77 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()
66 return WARN(!((regs->kuap ^ MD_APG_KUAP) & 0xff000000), in bad_kuap_fault()
58 unsigned long kuap; member
159 unsigned long kuap; /* opened segments for user access */ member
168 OFFSET(KUAP, thread_struct, kuap); in main()358 STACK_PT_REGS_OFFSET(STACK_REGS_KUAP, kuap); in main()