Home
last modified time | relevance | path

Searched refs:gsbase (Results 1 – 11 of 11) sorted by relevance

/linux-5.19.10/arch/x86/kernel/
Dprocess_64.c164 unsigned long gsbase; in __rdgsbase_inactive() local
170 gsbase = rdgsbase(); in __rdgsbase_inactive()
174 rdmsrl(MSR_KERNEL_GS_BASE, gsbase); in __rdgsbase_inactive()
178 return gsbase; in __rdgsbase_inactive()
189 static noinstr void __wrgsbase_inactive(unsigned long gsbase) in __wrgsbase_inactive() argument
195 wrgsbase(gsbase); in __wrgsbase_inactive()
199 wrmsrl(MSR_KERNEL_GS_BASE, gsbase); in __wrgsbase_inactive()
245 prev_p->thread.gsbase = 0; in save_base_legacy()
260 task->thread.gsbase = __rdgsbase_inactive(); in save_fsgs()
378 __wrgsbase_inactive(next->gsbase); in x86_fsgsbase_load()
[all …]
Dtls.c178 p->thread.gsbase = info.base_addr; in do_set_thread_area()
Dprocess.c160 p->thread.gsbase = current->thread.gsbase; in copy_thread()
Dptrace.c885 child->thread.gsbase = in putreg32()
/linux-5.19.10/arch/x86/include/asm/
Dfsgsbase.h20 extern void x86_gsbase_write_task(struct task_struct *task, unsigned long gsbase);
35 unsigned long gsbase; in rdgsbase() local
37 asm volatile("rdgsbase %0" : "=r" (gsbase) :: "memory"); in rdgsbase()
39 return gsbase; in rdgsbase()
47 static __always_inline void wrgsbase(unsigned long gsbase) in wrgsbase() argument
49 asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory"); in wrgsbase()
77 extern void x86_gsbase_write_cpu_inactive(unsigned long gsbase);
Delf.h167 t->fsbase = t->gsbase = 0; in elf_common_init()
Dprocessor.h487 unsigned long gsbase; member
/linux-5.19.10/tools/testing/selftests/x86/
Dfsgsbase.c91 unsigned long gsbase; in rdgsbase() local
93 asm volatile("rdgsbase %0" : "=r" (gsbase) :: "memory"); in rdgsbase()
95 return gsbase; in rdgsbase()
107 static inline void wrgsbase(unsigned long gsbase) in wrgsbase() argument
109 asm volatile("wrgsbase %0" :: "r" (gsbase) : "memory"); in wrgsbase()
/linux-5.19.10/Documentation/x86/
Dentry_64.rst100 must use idtentry with paranoid=1 to handle gsbase correctly. This
103 - Interrupt entry will use the slower gsbase check.
/linux-5.19.10/Documentation/x86/x86_64/
Dfsgs.rst59 arch_prctl(ARCH_GET_GS, &gsbase);
64 arch_prctl(ARCH_SET_GS, gsbase);
/linux-5.19.10/arch/x86/kvm/vmx/
Dvmx.c1233 vmx->msr_host_kernel_gs_base = current->thread.gsbase; in vmx_prepare_switch_to_guest()