Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/s390/lib/
Duaccess.c65 mm_segment_t old_fs; in enable_sacf_uaccess() local
68 old_fs = current->thread.mm_segment; in enable_sacf_uaccess()
69 if (old_fs & 1) in enable_sacf_uaccess()
70 return old_fs; in enable_sacf_uaccess()
73 if (likely(old_fs == USER_DS)) { in enable_sacf_uaccess()
86 return old_fs; in enable_sacf_uaccess()
90 void disable_sacf_uaccess(mm_segment_t old_fs) in disable_sacf_uaccess() argument
92 current->thread.mm_segment = old_fs; in disable_sacf_uaccess()
93 if (old_fs == USER_DS && test_facility(27)) { in disable_sacf_uaccess()
134 mm_segment_t old_fs; in copy_from_user_mvcp() local
[all …]
/Linux-v5.4/mm/
Dmaccess.c42 mm_segment_t old_fs = get_fs(); in __probe_kernel_read() local
46 set_fs(old_fs); in __probe_kernel_read()
68 mm_segment_t old_fs = get_fs(); in __probe_user_read() local
73 set_fs(old_fs); in __probe_user_read()
94 mm_segment_t old_fs = get_fs(); in __probe_kernel_write() local
100 set_fs(old_fs); in __probe_kernel_write()
126 mm_segment_t old_fs = get_fs(); in strncpy_from_unsafe() local
142 set_fs(old_fs); in strncpy_from_unsafe()
168 mm_segment_t old_fs = get_fs(); in strncpy_from_unsafe_user() local
178 set_fs(old_fs); in strncpy_from_unsafe_user()
[all …]
/Linux-v5.4/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()
58 disable_sacf_uaccess(old_fs); in arch_futex_atomic_op_inuser()
69 mm_segment_t old_fs; in futex_atomic_cmpxchg_inatomic() local
72 old_fs = enable_sacf_uaccess(); in futex_atomic_cmpxchg_inatomic()
82 disable_sacf_uaccess(old_fs); in futex_atomic_cmpxchg_inatomic()
Dmmu_context.h86 void disable_sacf_uaccess(mm_segment_t old_fs);
/Linux-v5.4/arch/mips/kernel/
Dftrace.c80 mm_segment_t old_fs; in ftrace_modify_code() local
88 old_fs = get_fs(); in ftrace_modify_code()
91 set_fs(old_fs); in ftrace_modify_code()
101 mm_segment_t old_fs; in ftrace_modify_code_2() local
113 old_fs = get_fs(); in ftrace_modify_code_2()
116 set_fs(old_fs); in ftrace_modify_code_2()
125 mm_segment_t old_fs; in ftrace_modify_code_2r() local
137 old_fs = get_fs(); in ftrace_modify_code_2r()
140 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.c201 mm_segment_t old_fs = get_fs(); in show_stack() local
228 set_fs(old_fs); in show_stack()
361 mm_segment_t old_fs = get_fs(); in show_registers() local
382 set_fs(old_fs); in show_registers()
1536 mm_segment_t old_fs = get_fs(); in do_mcheck() local
1552 set_fs(old_fs); in do_mcheck()
/Linux-v5.4/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 = get_fs(); in flush_tlb_page() local
91 set_fs(old_fs); in flush_tlb_page()
/Linux-v5.4/kernel/power/
Duser.c415 mm_segment_t old_fs; in snapshot_compat_ioctl() local
418 old_fs = get_fs(); in snapshot_compat_ioctl()
421 set_fs(old_fs); in snapshot_compat_ioctl()
435 mm_segment_t old_fs; in snapshot_compat_ioctl() local
442 old_fs = get_fs(); in snapshot_compat_ioctl()
446 set_fs(old_fs); in snapshot_compat_ioctl()
/Linux-v5.4/arch/sparc/kernel/
Dprocess_64.c113 mm_segment_t old_fs; in show_regwindow32() local
117 old_fs = get_fs(); in show_regwindow32()
120 set_fs (old_fs); in show_regwindow32()
124 set_fs (old_fs); in show_regwindow32()
143 mm_segment_t old_fs; in show_regwindow() local
152 old_fs = get_fs(); in show_regwindow()
155 set_fs (old_fs); in show_regwindow()
159 set_fs (old_fs); in show_regwindow()
/Linux-v5.4/security/integrity/
Diint.c191 mm_segment_t old_fs; in integrity_kernel_read() local
198 old_fs = get_fs(); in integrity_kernel_read()
201 set_fs(old_fs); in integrity_kernel_read()
/Linux-v5.4/drivers/misc/lkdtm/
Dusercopy.c329 mm_segment_t old_fs = get_fs(); in lkdtm_USERCOPY_KERNEL_DS() local
337 set_fs(old_fs); in lkdtm_USERCOPY_KERNEL_DS()
/Linux-v5.4/arch/m68k/kernel/
Dtraps.c185 mm_segment_t old_fs = get_fs(); in probe040() local
196 set_fs(old_fs); in probe040()
205 mm_segment_t old_fs = get_fs(); in do_040writeback1() local
223 set_fs(old_fs); in do_040writeback1()
849 mm_segment_t old_fs = get_fs(); in show_registers() local
934 set_fs(old_fs); in show_registers()
/Linux-v5.4/fs/
Dread_write.c434 mm_segment_t old_fs; in kernel_read() local
437 old_fs = get_fs(); in kernel_read()
441 set_fs(old_fs); in kernel_read()
503 mm_segment_t old_fs; in __kernel_write() local
510 old_fs = get_fs(); in __kernel_write()
516 set_fs(old_fs); in __kernel_write()
529 mm_segment_t old_fs; in kernel_write() local
532 old_fs = get_fs(); in kernel_write()
536 set_fs(old_fs); in kernel_write()
Dsplice.c352 mm_segment_t old_fs; in kernel_readv() local
356 old_fs = get_fs(); in kernel_readv()
360 set_fs(old_fs); in kernel_readv()
Dio_uring.c2151 mm_segment_t old_fs; in io_sq_wq_submit_work() local
2171 old_fs = get_fs(); in io_sq_wq_submit_work()
2257 set_fs(old_fs); in io_sq_wq_submit_work()
2666 mm_segment_t old_fs; in io_sq_thread() local
2673 old_fs = get_fs(); in io_sq_thread()
2780 set_fs(old_fs); in io_sq_thread()
Dblock_dev.c2137 mm_segment_t old_fs = get_fs(); in ioctl_by_bdev() local
2140 set_fs(old_fs); in ioctl_by_bdev()
Dbinfmt_elf.c1562 mm_segment_t old_fs = get_fs(); in fill_siginfo_note() local
1565 set_fs(old_fs); in fill_siginfo_note()
/Linux-v5.4/arch/s390/kernel/
Ddis.c489 mm_segment_t old_fs; in show_code() local
494 old_fs = get_fs(); in show_code()
508 set_fs(old_fs); in show_code()
/Linux-v5.4/kernel/bpf/
Dcgroup.c896 mm_segment_t old_fs; in __cgroup_bpf_run_filter_sysctl() local
899 old_fs = get_fs(); in __cgroup_bpf_run_filter_sysctl()
906 set_fs(old_fs); in __cgroup_bpf_run_filter_sysctl()
/Linux-v5.4/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()
/Linux-v5.4/fs/proc/
Dproc_sysctl.c607 mm_segment_t old_fs; in proc_sys_call_handler() local
609 old_fs = get_fs(); in proc_sys_call_handler()
613 set_fs(old_fs); in proc_sys_call_handler()
/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_ccamisc.c260 mm_segment_t old_fs = get_fs(); in _zcrypt_send_cprb() local
264 set_fs(old_fs); in _zcrypt_send_cprb()
/Linux-v5.4/arch/arm64/kernel/
Dptrace.c1539 mm_segment_t old_fs = get_fs(); in compat_ptrace_write_user() local
1552 set_fs(old_fs); in compat_ptrace_write_user()

12