Home
last modified time | relevance | path

Searched refs:old_fs (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.10/arch/s390/lib/
Duaccess.c65 mm_segment_t old_fs; in enable_sacf_uaccess() local
69 old_fs = current->thread.mm_segment; in enable_sacf_uaccess()
70 if (old_fs & 1) in enable_sacf_uaccess()
71 return old_fs; in enable_sacf_uaccess()
76 if (likely(old_fs == USER_DS)) { in enable_sacf_uaccess()
90 return old_fs; in enable_sacf_uaccess()
94 void disable_sacf_uaccess(mm_segment_t old_fs) in disable_sacf_uaccess() argument
96 current->thread.mm_segment = old_fs; in disable_sacf_uaccess()
97 if (old_fs == USER_DS && test_facility(27)) { in disable_sacf_uaccess()
138 mm_segment_t old_fs; in copy_from_user_mvcp() local
[all …]
/Linux-v5.10/mm/
Dmaccess.c108 mm_segment_t old_fs = get_fs(); in copy_from_kernel_nofault() local
118 set_fs(old_fs); in copy_from_kernel_nofault()
138 mm_segment_t old_fs = get_fs(); in copy_to_kernel_nofault() local
144 set_fs(old_fs); in copy_to_kernel_nofault()
172 mm_segment_t old_fs = get_fs(); in strncpy_from_kernel_nofault() local
190 set_fs(old_fs); in strncpy_from_kernel_nofault()
208 mm_segment_t old_fs = force_uaccess_begin(); in copy_from_user_nofault() local
215 force_uaccess_end(old_fs); in copy_from_user_nofault()
235 mm_segment_t old_fs = force_uaccess_begin(); in copy_to_user_nofault() local
242 force_uaccess_end(old_fs); in copy_to_user_nofault()
[all …]
/Linux-v5.10/arch/s390/include/asm/
Dfutex.h29 mm_segment_t old_fs; in arch_futex_atomic_op_inuser() local
31 old_fs = enable_sacf_uaccess(); in arch_futex_atomic_op_inuser()
56 disable_sacf_uaccess(old_fs); in arch_futex_atomic_op_inuser()
67 mm_segment_t old_fs; in futex_atomic_cmpxchg_inatomic() local
70 old_fs = enable_sacf_uaccess(); in futex_atomic_cmpxchg_inatomic()
80 disable_sacf_uaccess(old_fs); in futex_atomic_cmpxchg_inatomic()
Dmmu_context.h89 void disable_sacf_uaccess(mm_segment_t old_fs);
/Linux-v5.10/arch/mips/kernel/
Dftrace.c76 mm_segment_t old_fs; in ftrace_modify_code() local
84 old_fs = get_fs(); in ftrace_modify_code()
87 set_fs(old_fs); in ftrace_modify_code()
97 mm_segment_t old_fs; in ftrace_modify_code_2() local
109 old_fs = get_fs(); in ftrace_modify_code_2()
112 set_fs(old_fs); in ftrace_modify_code_2()
121 mm_segment_t old_fs; in ftrace_modify_code_2r() local
133 old_fs = get_fs(); in ftrace_modify_code_2r()
136 set_fs(old_fs); in ftrace_modify_code_2r()
Dkgdb.c213 mm_segment_t old_fs; in kgdb_call_nmi_hook() local
215 old_fs = get_fs(); in kgdb_call_nmi_hook()
220 set_fs(old_fs); in kgdb_call_nmi_hook()
305 mm_segment_t old_fs; in kgdb_mips_notify() local
321 old_fs = get_fs(); in kgdb_mips_notify()
328 set_fs(old_fs); in kgdb_mips_notify()
340 set_fs(old_fs); in kgdb_mips_notify()
Dvpe.c751 mm_segment_t old_fs; in getcwd() local
754 old_fs = get_fs(); in getcwd()
759 set_fs(old_fs); in getcwd()
Dtraps.c204 mm_segment_t old_fs = get_fs(); in show_stack() local
226 set_fs(old_fs); in show_stack()
359 mm_segment_t old_fs = get_fs(); in show_registers() local
380 set_fs(old_fs); in show_registers()
1594 mm_segment_t old_fs = get_fs(); in do_mcheck() local
1610 set_fs(old_fs); in do_mcheck()
/Linux-v5.10/arch/s390/pci/
Dpci_mmio.c96 mm_segment_t old_fs; in __memcpy_toio_inuser() local
101 old_fs = enable_sacf_uaccess(); in __memcpy_toio_inuser()
116 disable_sacf_uaccess(old_fs); in __memcpy_toio_inuser()
251 mm_segment_t old_fs; in __memcpy_fromio_inuser() local
253 old_fs = enable_sacf_uaccess(); in __memcpy_fromio_inuser()
265 disable_sacf_uaccess(old_fs); in __memcpy_fromio_inuser()
/Linux-v5.10/arch/m68k/include/asm/
Dtlbflush.h16 mm_segment_t old_fs = get_fs(); in flush_tlb_kernel_page() local
22 set_fs(old_fs); in flush_tlb_kernel_page()
88 mm_segment_t old_fs = force_uaccess_begin(); in flush_tlb_page() local
91 force_uaccess_end(old_fs); in flush_tlb_page()
/Linux-v5.10/arch/sparc/kernel/
Dprocess_64.c112 mm_segment_t old_fs; in show_regwindow32() local
116 old_fs = get_fs(); in show_regwindow32()
119 set_fs (old_fs); in show_regwindow32()
123 set_fs (old_fs); in show_regwindow32()
142 mm_segment_t old_fs; in show_regwindow() local
151 old_fs = get_fs(); in show_regwindow()
154 set_fs (old_fs); in show_regwindow()
158 set_fs (old_fs); in show_regwindow()
/Linux-v5.10/arch/m68k/mm/
Dcache.c110 mm_segment_t old_fs = get_fs(); in flush_icache_range() local
114 set_fs(old_fs); in flush_icache_range()
/Linux-v5.10/arch/m68k/kernel/
Dtraps.c184 mm_segment_t old_fs = get_fs(); in probe040() local
195 set_fs(old_fs); in probe040()
204 mm_segment_t old_fs = get_fs(); in do_040writeback1() local
222 set_fs(old_fs); in do_040writeback1()
/Linux-v5.10/arch/ia64/kernel/
Dunaligned.c1298 mm_segment_t old_fs = get_fs(); in ia64_handle_unaligned() local
1524 set_fs(old_fs); /* restore original address limit */ in ia64_handle_unaligned()