Home
last modified time | relevance | path

Searched refs:user_mode (Results 1 – 25 of 184) sorted by relevance

12345678

/linux-6.12.1/arch/openrisc/mm/
Dfault.c79 !user_mode(regs)) in do_page_fault()
83 if (user_mode(regs)) { in do_page_fault()
122 if (user_mode(regs)) { in do_page_fault()
169 if (!user_mode(regs)) in do_page_fault()
215 if (user_mode(regs)) { in do_page_fault()
262 if (!user_mode(regs)) in do_page_fault()
277 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/riscv/kernel/
Dtraps.c44 if (!user_mode(regs)) in copy_code()
136 if (user_mode(regs)) { in do_trap_error()
152 if (user_mode(regs)) { \
174 if (user_mode(regs)) { in do_trap_insn_illegal()
203 if (user_mode(regs)) { in do_trap_load_misaligned()
224 if (user_mode(regs)) { in do_trap_store_misaligned()
261 bool user = user_mode(regs); in probe_single_step_handler()
268 bool user = user_mode(regs); in probe_breakpoint_handler()
283 if (user_mode(regs)) in handle_break()
299 if (user_mode(regs)) { in do_trap_break()
[all …]
/linux-6.12.1/arch/alpha/mm/
Dfault.c118 if (user_mode(regs)) in do_page_fault()
148 if (!user_mode(regs)) in do_page_fault()
188 if (user_mode(regs)) in do_page_fault()
211 if (!user_mode(regs)) in do_page_fault()
221 if (!user_mode(regs)) in do_page_fault()
231 if (user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/nios2/mm/
Dfault.c68 if (user_mode(regs)) in do_page_fault()
84 if (user_mode(regs)) in do_page_fault()
127 if (!user_mode(regs)) in do_page_fault()
170 if (user_mode(regs)) { in do_page_fault()
205 if (!user_mode(regs)) in do_page_fault()
214 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/microblaze/kernel/
Dexceptions.c76 type, user_mode(regs) ? "user" : "kernel", fsr, in full_exception()
82 if (user_mode(regs)) { in full_exception()
91 if (user_mode(regs)) { in full_exception()
100 if (user_mode(regs)) { in full_exception()
109 if (user_mode(regs)) { in full_exception()
/linux-6.12.1/arch/xtensa/mm/
Dfault.c105 if (address >= TASK_SIZE && !user_mode(regs)) { in do_page_fault()
128 if (user_mode(regs)) in do_page_fault()
162 if (!user_mode(regs)) in do_page_fault()
201 if (user_mode(regs)) { in do_page_fault()
214 if (!user_mode(regs)) in do_page_fault()
229 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/m68k/mm/
Dfault.c34 if (user_mode(regs)) { in send_fault_sig()
88 if (user_mode(regs)) in do_page_fault()
102 if (user_mode(regs)) { in do_page_fault()
145 if (!user_mode(regs)) in do_page_fault()
185 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/csky/mm/
Dfault.c82 if (!user_mode(regs)) { in mm_fault_error()
90 if (!user_mode(regs)) { in mm_fault_error()
107 if (user_mode(regs)) { in bad_area_nosemaphore()
124 if (user_mode(regs)) { in vmalloc_fault()
232 if (user_mode(regs)) in do_page_fault()
271 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/riscv/mm/
Dfault.c64 if (!user_mode(regs)) { in mm_fault_error()
96 if (user_mode(regs)) { in bad_area_nosemaphore()
124 if (user_mode(regs)) in vmalloc_fault()
271 if (user_mode(regs)) in handle_page_fault()
274 if (!user_mode(regs) && addr < TASK_SIZE && unlikely(!(regs->status & SR_SUM))) { in handle_page_fault()
315 if (!user_mode(regs)) in handle_page_fault()
354 if (!user_mode(regs)) in handle_page_fault()
/linux-6.12.1/arch/powerpc/mm/
Dfault.c61 if (!user_mode(regs)) in __bad_area_nosemaphore()
125 if (!user_mode(regs)) in bad_access_pkey()
142 if (!user_mode(regs)) in do_sigbus()
174 if (fatal_signal_pending(current) && !user_mode(regs)) in mm_fault_error()
183 if (!user_mode(regs)) in mm_fault_error()
420 int is_user = user_mode(regs); in ___do_page_fault()
511 return user_mode(regs) ? 0 : SIGBUS; in ___do_page_fault()
546 return user_mode(regs) ? 0 : SIGBUS; in ___do_page_fault()
680 if (user_mode(regs)) in DEFINE_INTERRUPT_HANDLER()
/linux-6.12.1/arch/x86/kernel/
Dtraps.c150 } else if (!user_mode(regs)) { in do_trap_no_signal()
309 if (!user_mode(regs) && handle_bug(regs)) in DEFINE_IDTENTRY_RAW()
350 if (!user_mode(regs)) in DEFINE_IDTENTRY_ERRORCODE()
528 if (!user_mode(regs)) in DEFINE_IDTENTRY()
699 if (user_mode(regs) && try_fixup_enqcmd_gp()) in DEFINE_IDTENTRY_ERRORCODE()
705 if (user_mode(regs) && fixup_umip_exception(regs)) in DEFINE_IDTENTRY_ERRORCODE()
716 if (user_mode(regs)) { in DEFINE_IDTENTRY_ERRORCODE()
801 if (user_mode(regs)) { in DEFINE_IDTENTRY_RAW()
898 BUG_ON(!user_mode(new_stack)); in fixup_bad_iret()
1014 WARN_ON_ONCE(user_mode(regs)); in exc_debug_kernel()
[all …]
/linux-6.12.1/arch/s390/kernel/
Dtraps.c56 if (user_mode(regs)) { in do_report_trap()
87 if (user_mode(regs)) { in default_trap_handler()
162 if (user_mode(regs)) { in illegal_op()
182 if (is_uprobe_insn || !user_mode(regs)) { in illegal_op()
241 if (user_mode(regs)) in space_switch_exception()
249 if (user_mode(regs)) in monitor_event_exception()
326 if (user_mode(regs)) { in __do_pgm_check()
341 if (user_mode(regs)) { in __do_pgm_check()
Dperf_event.c41 if (user_mode(regs)) in is_in_guest()
79 flags = user_mode(regs) ? PERF_RECORD_MISC_GUEST_USER in perf_misc_flags_sf()
82 flags = user_mode(regs) ? PERF_RECORD_MISC_USER in perf_misc_flags_sf()
100 return user_mode(regs) ? PERF_RECORD_MISC_USER in perf_misc_flags()
/linux-6.12.1/arch/openrisc/kernel/
Dtraps.c84 if (user_mode(regs)) in show_registers()
183 if (user_mode(regs)) { in do_fpe_trap()
215 if (user_mode(regs)) { in do_trap()
225 if (user_mode(regs)) { in do_unaligned_access()
237 if (user_mode(regs)) { in do_bus_fault()
342 if (user_mode(regs)) { in simulate_lwa()
389 if (user_mode(regs)) { in simulate_swa()
431 if (user_mode(regs)) { in do_illegal_instruction()
/linux-6.12.1/arch/loongarch/mm/
Dfault.c107 if (!user_mode(regs)) { in do_out_of_memory()
118 if (!user_mode(regs)) { in do_sigbus()
139 if (!user_mode(regs)) { in do_sigsegv()
198 if (!user_mode(regs)) in __do_page_fault()
214 if (user_mode(regs)) in __do_page_fault()
260 if (!user_mode(regs)) in __do_page_fault()
/linux-6.12.1/arch/microblaze/mm/
Dfault.c122 if (user_mode(regs)) in do_page_fault()
224 if (!user_mode(regs)) in do_page_fault()
272 if (user_mode(regs)) { in do_page_fault()
286 if (!user_mode(regs)) in do_page_fault()
294 if (user_mode(regs)) { in do_page_fault()
/linux-6.12.1/arch/hexagon/mm/
Dvm_fault.c56 if (user_mode(regs)) in do_page_fault()
87 if (!user_mode(regs)) in do_page_fault()
110 if (!user_mode(regs)) in do_page_fault()
137 if (user_mode(regs)) { in do_page_fault()
/linux-6.12.1/arch/parisc/kernel/
Dtraps.c132 user = user_mode(regs); in show_regs()
220 if (user_mode(regs)) { in die_if_kernel()
286 if (unlikely(iir == PARISC_BUG_BREAK_INSN && !user_mode(regs))) { in handle_break()
300 if (unlikely(iir == PARISC_KPROBES_BREAK_INSN && !user_mode(regs))) { in handle_break()
304 if (unlikely(iir == PARISC_KPROBES_BREAK_INSN2 && !user_mode(regs))) { in handle_break()
312 iir == PARISC_KGDB_BREAK_INSN)) && !user_mode(regs)) { in handle_break()
319 if ((iir == SPINLOCK_BREAK_INSN) && !user_mode(regs)) { in handle_break()
621 if(user_mode(regs)){ in handle_interruption()
713 if (user_mode(regs)) { in handle_interruption()
734 if (code == 27 && !user_mode(regs) && in handle_interruption()
[all …]
/linux-6.12.1/arch/s390/mm/
Dfault.c74 if (user_mode(regs)) in get_fault_type()
237 if (user_mode(regs)) { in handle_fault_error_nolock()
316 if (user_mode(regs)) in do_exception()
347 if (!user_mode(regs)) in do_exception()
382 if (!user_mode(regs)) in do_exception()
428 if (!user_mode(regs)) in do_exception()
433 if (!user_mode(regs)) in do_exception()
438 if (!user_mode(regs)) in do_exception()
465 if (user_mode(regs)) { in do_protection_exception()
514 if (user_mode(regs)) { in do_secure_storage_access()
/linux-6.12.1/arch/x86/mm/
Dfault.c94 return (!user_mode(regs) || user_64bit_mode(regs)); in check_prefetch_opcode()
155 if (user_mode(regs)) { in is_prefetch()
428 if (user_mode(regs)) in is_errata93()
537 if (address < PAGE_SIZE && !user_mode(regs)) in show_fault_oops()
549 user_mode(regs) ? "user" : "kernel"); in show_fault_oops()
557 if (!(error_code & X86_PF_USER) && user_mode(regs)) { in show_fault_oops()
650 if (user_mode(regs)) { in page_fault_oops()
725 WARN_ON_ONCE(user_mode(regs)); in kernelmode_fixup_or_oops()
784 if (!user_mode(regs)) { in __bad_area_nosemaphore()
915 if (!user_mode(regs)) { in do_sigbus()
[all …]
/linux-6.12.1/arch/arc/mm/
Dfault.c89 if (address >= VMALLOC_START && !user_mode(regs)) { in do_page_fault()
110 if (user_mode(regs)) in do_page_fault()
139 if (!user_mode(regs)) in do_page_fault()
168 if (!user_mode(regs)) in do_page_fault()
/linux-6.12.1/arch/arm/mm/
Dfault.c222 if (user_mode(regs)) in do_bad_area()
248 if (user_mode(regs)) in ttbr0_usermode_access_allowed()
288 if (user_mode(regs)) in do_page_fault()
299 if (is_permission_fault(fsr) && !user_mode(regs)) in do_page_fault()
342 if (!user_mode(regs)) in do_page_fault()
374 if (!user_mode(regs)) in do_page_fault()
403 if (!user_mode(regs)) in do_page_fault()
477 if (user_mode(regs)) in do_translation_fault()
/linux-6.12.1/arch/mips/mm/
Dfault.c98 if (user_mode(regs)) in __do_page_fault()
153 if (!user_mode(regs)) in __do_page_fault()
196 if (user_mode(regs)) { in __do_page_fault()
245 if (!user_mode(regs)) in __do_page_fault()
254 if (!user_mode(regs)) in __do_page_fault()
/linux-6.12.1/arch/mips/include/asm/
Dptrace.h142 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER) macro
151 if (is_syscall_success(regs) || !user_mode(regs)) in regs_return_value()
169 if (unlikely(!user_mode(regs))) in die_if_kernel()
/linux-6.12.1/arch/parisc/mm/
Dfault.c286 if (user_mode(regs)) in do_page_fault()
321 if (!user_mode(regs)) { in do_page_fault()
366 if (user_mode(regs)) { in do_page_fault()
430 if (!user_mode(regs) && fixup_exception(regs)) { in do_page_fault()
438 if (!user_mode(regs)) { in do_page_fault()

12345678