Home
last modified time | relevance | path

Searched refs:KERNEL_DS (Results 1 – 143 of 143) sorted by relevance

/linux-4.1.27/arch/frv/include/asm/
Dsegment.h26 #define KERNEL_DS MAKE_MM_SEG(0xdfffffffUL) macro
29 #define KERNEL_DS MAKE_MM_SEG(0xe0000000UL) macro
32 #define get_ds() (KERNEL_DS)
35 #define __kernel_ds_p() segment_eq(get_fs(), KERNEL_DS)
Dthread_info.h64 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/m68k/include/asm/
Dsegment.h31 #define KERNEL_DS MAKE_MM_SEG(__KERNEL_DS) macro
50 return KERNEL_DS; in get_ds()
55 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
56 #define get_ds() (KERNEL_DS)
Dthread_info.h39 .addr_limit = KERNEL_DS, \
Dtlbflush.h16 set_fs(KERNEL_DS); in flush_tlb_kernel_page()
/linux-4.1.27/arch/score/include/asm/
Dsegment.h10 #define KERNEL_DS ((mm_segment_t){0}) macro
11 #define USER_DS KERNEL_DS
13 # define get_ds() (KERNEL_DS)
Dthread_info.h57 .addr_limit = KERNEL_DS, \
Duaccess.h11 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/sh/include/asm/
Dsegment.h19 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFFUL) macro
23 #define USER_DS KERNEL_DS
28 #define get_ds() (KERNEL_DS)
Dthread_info.h62 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/xtensa/include/asm/
Duaccess.h40 #define KERNEL_DS 0 macro
43 #define get_ds (KERNEL_DS)
98 #if ((KERNEL_DS != 0) || (USER_DS == 0))
178 #define KERNEL_DS ((mm_segment_t) { 0 })
181 #define get_ds() (KERNEL_DS)
187 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
Dthread_info.h77 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/um/kernel/skas/
Duaccess.c144 if (segment_eq(get_fs(), KERNEL_DS)) { in copy_from_user()
166 if (segment_eq(get_fs(), KERNEL_DS)) { in copy_to_user()
196 if (segment_eq(get_fs(), KERNEL_DS)) { in strncpy_from_user()
225 if (segment_eq(get_fs(), KERNEL_DS)) { in clear_user()
251 if (segment_eq(get_fs(), KERNEL_DS)) in strnlen_user()
/linux-4.1.27/arch/parisc/include/asm/
Duaccess.h17 #define KERNEL_DS ((mm_segment_t){0}) macro
22 #define get_ds() (KERNEL_DS)
89 if (segment_eq(get_fs(), KERNEL_DS)) { \
131 if (segment_eq(get_fs(), KERNEL_DS)) { \
Dthread_info.h23 .addr_limit = KERNEL_DS, \
Dfutex.h127 if (segment_eq(KERNEL_DS, get_fs()) && !uaddr) in futex_atomic_cmpxchg_inatomic()
/linux-4.1.27/mm/
Dmaccess.c26 set_fs(KERNEL_DS); in __probe_kernel_read()
54 set_fs(KERNEL_DS); in __probe_kernel_write()
Dnommu.c1242 set_fs(KERNEL_DS); in do_mmap_private()
Dmemory.c3764 if (segment_eq(get_fs(), KERNEL_DS)) in might_fault()
/linux-4.1.27/arch/um/include/asm/
Duaccess.h32 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
35 #define get_ds() (KERNEL_DS)
58 segment_eq(get_fs(), KERNEL_DS)))
Dthread_info.h33 .addr_limit = KERNEL_DS, \
/linux-4.1.27/kernel/
Dcompat.c225 set_fs(KERNEL_DS); in compat_nanosleep_restart()
253 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
380 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE1()
470 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
550 set_fs (KERNEL_DS); in COMPAT_SYSCALL_DEFINE4()
579 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE5()
713 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE4()
731 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
750 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
765 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
[all …]
Dsignal.c3249 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
Dmodule.c2930 set_fs(KERNEL_DS); in flush_module_icache()
/linux-4.1.27/arch/microblaze/include/asm/
Duaccess.h45 # define KERNEL_DS MAKE_MM_SEG(0) macro
46 # define USER_DS KERNEL_DS
48 # define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
52 # define get_ds() (KERNEL_DS)
Dthread_info.h86 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/m32r/include/asm/
Duaccess.h34 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
36 #define get_ds() (KERNEL_DS)
42 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
44 #define get_ds() (KERNEL_DS)
Dthread_info.h55 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/ia64/include/asm/
Duaccess.h48 #define KERNEL_DS ((mm_segment_t) { ~0UL }) /* cf. access_ok() */ macro
54 #define get_ds() (KERNEL_DS)
70 && ((segment).seg == KERNEL_DS.seg \
205 #define __get_user_nocheck(x, ptr, size) __do_get_user(0, x, ptr, size, KERNEL_DS)
232 #define __put_user_nocheck(x, ptr, size) __do_put_user(0, x, ptr, size, KERNEL_DS)
Dthread_info.h44 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/arm/include/asm/
Duaccess.h62 #define KERNEL_DS 0x00000000 macro
63 #define get_ds() (KERNEL_DS)
256 #define USER_DS KERNEL_DS
261 #define get_fs() (KERNEL_DS)
275 (segment_eq(get_fs(), KERNEL_DS) ? ~0UL : get_fs())
Dthread_info.h76 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/metag/include/asm/
Duaccess.h22 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
25 #define get_ds() (KERNEL_DS)
31 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
Dthread_info.h73 .addr_limit = KERNEL_DS, \
/linux-4.1.27/include/asm-generic/
Duaccess.h16 #ifndef KERNEL_DS
17 #define KERNEL_DS MAKE_MM_SEG(~0UL) macro
25 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/blackfin/include/asm/
Dsegment.h10 #define KERNEL_DS (0x5) macro
Duaccess.h22 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/sparc/include/asm/
Duaccess_32.h30 #define KERNEL_DS ((mm_segment_t) { 0 }) macro
36 #define get_ds() (KERNEL_DS)
48 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
Duaccess_64.h35 #define KERNEL_DS ((mm_segment_t) { ASI_P }) macro
42 #define get_ds() (KERNEL_DS)
Dprocessor_32.h73 .current_ds = KERNEL_DS, \
/linux-4.1.27/arch/arc/include/asm/
Dsegment.h18 #define KERNEL_DS MAKE_MM_SEG(0) macro
Dthread_info.h61 .addr_limit = KERNEL_DS, \
Duaccess.h32 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
/linux-4.1.27/arch/arm/kernel/
Dsys_oabi-compat.c222 set_fs(KERNEL_DS); in sys_oabi_fcntl64()
267 set_fs(KERNEL_DS); in sys_oabi_epoll_ctl()
287 set_fs(KERNEL_DS); in sys_oabi_epoll_wait()
338 set_fs(KERNEL_DS); in sys_oabi_semtimedop()
Dtraps.c109 set_fs(KERNEL_DS); in dump_mem()
150 set_fs(KERNEL_DS); in dump_instr()
/linux-4.1.27/arch/nios2/include/asm/
Duaccess.h49 #define KERNEL_DS MAKE_MM_SEG(0) macro
51 #define get_ds() (KERNEL_DS)
Dthread_info.h63 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/cris/include/asm/
Dthread_info.h55 .addr_limit = KERNEL_DS, \
Duaccess.h43 #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) macro
46 #define get_ds() (KERNEL_DS)
52 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
/linux-4.1.27/arch/c6x/mm/
Dinit.c47 set_fs(KERNEL_DS); in paging_init()
/linux-4.1.27/arch/avr32/include/asm/
Duaccess.h33 #define KERNEL_DS MAKE_MM_SEG(0) macro
36 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/arm64/include/asm/
Duaccess.h55 #define KERNEL_DS (-1UL) macro
56 #define get_ds() (KERNEL_DS)
Dthread_info.h58 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/c6x/kernel/
Dsys_c6x.c26 if (segment_eq(get_fs(), KERNEL_DS)) in _access_ok()
/linux-4.1.27/arch/unicore32/include/asm/
Duaccess.h26 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
Dthread_info.h87 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/c6x/include/asm/
Dthread_info.h60 .addr_limit = KERNEL_DS, \
/linux-4.1.27/arch/openrisc/include/asm/
Dthread_info.h78 .addr_limit = KERNEL_DS, \
Duaccess.h48 #define KERNEL_DS (~0UL) macro
49 #define get_ds() (KERNEL_DS)
/linux-4.1.27/include/linux/
Duaccess.h78 set_fs(KERNEL_DS); \
/linux-4.1.27/arch/arm/lib/
Duaccess_with_memcpy.c93 if (unlikely(segment_eq(get_fs(), KERNEL_DS))) { in __copy_to_user_memcpy()
156 if (unlikely(segment_eq(get_fs(), KERNEL_DS))) { in __clear_user_memset()
/linux-4.1.27/arch/s390/include/asm/
Duaccess.h34 #define KERNEL_DS MAKE_MM_SEG(0) macro
37 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/hexagon/include/asm/
Dthread_info.h82 .addr_limit = KERNEL_DS, \
Duaccess.h56 ((get_fs().seg == KERNEL_DS.seg) || \
/linux-4.1.27/arch/unicore32/kernel/
Dtraps.c77 set_fs(KERNEL_DS); in dump_mem()
118 set_fs(KERNEL_DS); in dump_instr()
/linux-4.1.27/drivers/dio/
Ddio.c139 set_fs(KERNEL_DS); in dio_find()
218 set_fs(KERNEL_DS); in dio_init()
/linux-4.1.27/arch/blackfin/mm/
Dinit.c59 set_fs(KERNEL_DS); in paging_init()
/linux-4.1.27/arch/mn10300/include/asm/
Dthread_info.h79 .addr_limit = KERNEL_DS, \
Duaccess.h35 #define KERNEL_DS MAKE_MM_SEG(0x9FFFFFFF) macro
38 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/powerpc/include/asm/
Dprocessor.h333 .fs = KERNEL_DS, \
342 .fs = KERNEL_DS, \
Duaccess.h29 #define KERNEL_DS MAKE_MM_SEG(~0UL) macro
37 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/mips/include/asm/
Dthread_info.h49 .addr_limit = KERNEL_DS, \
Duaccess.h65 #define KERNEL_DS ((mm_segment_t) { 0x80000000UL }) macro
68 #define KERNEL_DS ((mm_segment_t) { 0UL }) macro
75 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/tile/include/asm/
Dthread_info.h56 .addr_limit = KERNEL_DS, \
Duaccess.h39 #define KERNEL_DS MAKE_MM_SEG(-1UL) macro
42 #define get_ds() (KERNEL_DS)
/linux-4.1.27/arch/alpha/include/asm/
Dthread_info.h37 .addr_limit = KERNEL_DS, \
Duaccess.h20 #define KERNEL_DS ((mm_segment_t) { 0UL }) macro
27 #define get_ds() (KERNEL_DS)
/linux-4.1.27/kernel/power/
Duser.c417 set_fs(KERNEL_DS); in snapshot_compat_ioctl()
441 set_fs(KERNEL_DS); in snapshot_compat_ioctl()
/linux-4.1.27/arch/arm64/kernel/
Dtraps.c67 set_fs(KERNEL_DS); in dump_mem()
114 set_fs(KERNEL_DS); in dump_instr()
Dptrace.c897 set_fs(KERNEL_DS); in compat_ptrace_write_user()
992 set_fs(KERNEL_DS); in compat_ptrace_gethbpregs()
1025 set_fs(KERNEL_DS); in compat_ptrace_sethbpregs()
/linux-4.1.27/arch/m68k/sun3/
Dconfig.c95 set_fs(KERNEL_DS); in sun3_init()
Dmmu_emu.c199 set_fs(KERNEL_DS); in mmu_emu_init()
/linux-4.1.27/arch/x86/include/asm/
Dthread_info.h70 .addr_limit = KERNEL_DS, \
Duaccess.h27 #define KERNEL_DS MAKE_MM_SEG(-1UL) macro
30 #define get_ds() (KERNEL_DS)
/linux-4.1.27/fs/
Dbinfmt_aout.c62 set_fs(KERNEL_DS); in aout_core_dump()
85 set_fs(KERNEL_DS); in aout_core_dump()
Dcompat_ioctl.c125 set_fs (KERNEL_DS); in w_long()
149 set_fs(KERNEL_DS); in do_video_get_event()
536 set_fs (KERNEL_DS); in mt_ioctl_trans()
631 set_fs(KERNEL_DS); in serial_struct_ioctl()
755 set_fs(KERNEL_DS); in rtc_ioctl()
Dcompat.c433 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE3()
467 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE3()
513 set_fs(KERNEL_DS); in COMPAT_SYSCALL_DEFINE2()
Dcoredump.c652 set_fs(KERNEL_DS); in do_coredump()
Dbinfmt_elf.c1483 set_fs(KERNEL_DS); in fill_siginfo_note()
2175 set_fs(KERNEL_DS); in elf_core_dump()
Dblock_dev.c1697 set_fs(KERNEL_DS); in ioctl_by_bdev()
Dexec.c554 set_fs(KERNEL_DS); in copy_strings_kernel()
Dbinfmt_elf_fdpic.c1663 set_fs(KERNEL_DS); in elf_fdpic_core_dump()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dserial2002.c115 set_fs(KERNEL_DS); in serial2002_tty_write()
160 set_fs(KERNEL_DS); in serial2002_tty_read()
194 set_fs(KERNEL_DS); in serial2002_tty_setspeed()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dkernel_user_comm.c72 set_fs(KERNEL_DS); in libcfs_kkuc_msg_put()
/linux-4.1.27/arch/sh/kernel/
Dprocess_32.c157 ti->addr_limit = KERNEL_DS; in copy_thread()
Dio_trapped.c285 set_fs(KERNEL_DS); in handle_trapped_io()
Dtraps_32.c549 set_fs(KERNEL_DS); in do_address_error()
/linux-4.1.27/net/rds/
Dtcp_send.c45 set_fs(KERNEL_DS); in rds_tcp_cork()
Dtcp.c61 set_fs(KERNEL_DS); in rds_tcp_nonagle()
/linux-4.1.27/arch/x86/ia32/
Dia32_aout.c157 set_fs(KERNEL_DS); in aout_core_dump()
185 set_fs(KERNEL_DS); in aout_core_dump()
/linux-4.1.27/arch/m68k/mm/
Dmotorola.c295 set_fs(KERNEL_DS); in paging_init()
/linux-4.1.27/net/
Dsocket.c749 set_fs(KERNEL_DS); in kernel_recvmsg()
2566 set_fs(KERNEL_DS); in do_siocgstamp()
2582 set_fs(KERNEL_DS); in do_siocgstampns()
2838 set_fs(KERNEL_DS); in bond_ioctl()
2932 set_fs(KERNEL_DS); in compat_sioc_ifmap()
3030 set_fs(KERNEL_DS); in routing_ioctl()
3247 set_fs(KERNEL_DS); in kernel_getsockopt()
3267 set_fs(KERNEL_DS); in kernel_setsockopt()
3293 set_fs(KERNEL_DS); in kernel_sock_ioctl()
Dcompat.c347 set_fs(KERNEL_DS); in do_set_sock_timeout()
408 set_fs(KERNEL_DS); in do_get_sock_timeout()
/linux-4.1.27/arch/m32r/kernel/
Dtraps.c311 set_fs(KERNEL_DS); in do_alignment_check()
/linux-4.1.27/drivers/usb/gadget/function/
Du_uac1.c178 set_fs(KERNEL_DS); in u_audio_playback()
/linux-4.1.27/arch/mips/kernel/
Dtraps.c218 set_fs(KERNEL_DS); in show_stack()
365 set_fs(KERNEL_DS); in show_registers()
946 set_fs(KERNEL_DS); in do_bp()
1550 set_fs(KERNEL_DS); in do_mcheck()
Dunaligned.c2181 set_fs(KERNEL_DS); in do_ade()
2192 set_fs(KERNEL_DS); in do_ade()
2209 set_fs(KERNEL_DS); in do_ade()
Dprocess.c132 ti->addr_limit = KERNEL_DS; in copy_thread()
Dvpe.c755 set_fs(KERNEL_DS); in getcwd()
/linux-4.1.27/arch/alpha/lib/
Dcsum_partial_copy.c383 set_fs(KERNEL_DS); in csum_partial_copy_nocheck()
/linux-4.1.27/arch/blackfin/kernel/
Dprocess.c369 if (segment_eq(get_fs(), KERNEL_DS)) in _access_ok()
/linux-4.1.27/drivers/video/fbdev/
Dhpfb.c406 set_fs(KERNEL_DS); in hpfb_init()
/linux-4.1.27/arch/sparc/kernel/
Dprocess_32.c350 p->thread.current_ds = KERNEL_DS;
/linux-4.1.27/arch/frv/kernel/
Dtraps.c124 set_fs(KERNEL_DS); in atomic_operation()
/linux-4.1.27/block/
Dcompat_ioctl.c88 set_fs(KERNEL_DS); in compat_hdio_ioctl()
407 set_fs(KERNEL_DS); in compat_fd_ioctl()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_pack.c433 set_fs(KERNEL_DS); in lov_getstripe()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c67 set_fs(KERNEL_DS); in libcfs_sock_ioctl()
/linux-4.1.27/arch/parisc/lib/
Dmemcpy.c79 #define get_user_space() (segment_eq(get_fs(), KERNEL_DS) ? 0 : mfsp(3))
/linux-4.1.27/fs/autofs4/
Dwaitq.c69 set_fs(KERNEL_DS); in autofs4_write()
/linux-4.1.27/fs/nfsd/
Dvfs.c895 set_fs(KERNEL_DS); in nfsd_readv()
982 oldfs = get_fs(); set_fs(KERNEL_DS); in nfsd_vfs_write()
1527 oldfs = get_fs(); set_fs(KERNEL_DS); in nfsd_readlink()
/linux-4.1.27/arch/um/drivers/
Dmconsole_kern.c152 set_fs(KERNEL_DS); in mconsole_proc()
/linux-4.1.27/security/tomoyo/
Dnetwork.c611 return segment_eq(get_fs(), KERNEL_DS); in tomoyo_kernel_service()
/linux-4.1.27/kernel/trace/
Dtrace_kprobe.c181 set_fs(KERNEL_DS); in DEFINE_BASIC_FETCH_FUNCS()
211 set_fs(KERNEL_DS); in FETCH_FUNC_NAME()
/linux-4.1.27/fs/ext4/
Dioctl.c754 set_fs(KERNEL_DS); in ext4_compat_ioctl()
/linux-4.1.27/fs/hppfs/
Dhppfs.c187 set_fs(KERNEL_DS); in read_proc()
/linux-4.1.27/arch/x86/net/
Dbpf_jit_comp.c101 set_fs(KERNEL_DS); in bpf_flush_icache()
/linux-4.1.27/drivers/input/serio/
Dhp_sdc.c1030 set_fs(KERNEL_DS); in hp_sdc_register()
/linux-4.1.27/arch/mn10300/mm/
Dmisalignment.c342 set_fs(KERNEL_DS); in misalignment()
/linux-4.1.27/arch/m68k/kernel/
Dtraps.c921 set_fs(KERNEL_DS); in show_registers()
/linux-4.1.27/arch/ia64/kernel/
Dunaligned.c1365 set_fs(KERNEL_DS); in ia64_handle_unaligned()
/linux-4.1.27/lib/
Diov_iter.c351 if (segment_eq(get_fs(), KERNEL_DS)) { in iov_iter_init()
/linux-4.1.27/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c951 set_fs(KERNEL_DS); in do_video_ioctl()
/linux-4.1.27/arch/alpha/kernel/
Dosf_sys.c1178 set_fs (KERNEL_DS); in SYSCALL_DEFINE4()
/linux-4.1.27/net/ipv4/
Dipmr.c384 set_fs(KERNEL_DS); in ipmr_del_tunnel()
417 set_fs(KERNEL_DS); in ipmr_new_tunnel()
/linux-4.1.27/net/sunrpc/
Dsvcsock.c378 oldfs = get_fs(); set_fs(KERNEL_DS); in svc_sock_setbufsize()
/linux-4.1.27/arch/s390/kernel/
Ddis.c1964 set_fs(user_mode(regs) ? USER_DS : KERNEL_DS); in show_code()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dobd_config.c1341 set_fs(KERNEL_DS); in class_process_proc_param()
/linux-4.1.27/drivers/video/fbdev/core/
Dfbmem.c1342 set_fs(KERNEL_DS); in fb_get_fscreeninfo()
/linux-4.1.27/fs/ocfs2/cluster/
Dtcp.c1465 set_fs(KERNEL_DS); in o2net_set_nodelay()
/linux-4.1.27/sound/oss/
Dswarm_cs4297a.c2713 set_fs(KERNEL_DS); in cs4297a_init()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_main.c1518 set_fs(KERNEL_DS); in _drbd_send_page()
/linux-4.1.27/net/ipv6/
Daddrconf.c2523 set_fs(KERNEL_DS); in addrconf_set_dstaddr()
/linux-4.1.27/fs/btrfs/
Dsend.c516 set_fs(KERNEL_DS); in write_buf()