/Linux-v6.1/arch/x86/um/ |
D | ldt.c | 60 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt; in read_ldt() local 62 if (!ldt->entry_count) in read_ldt() 68 mutex_lock(&ldt->lock); in read_ldt() 69 if (ldt->entry_count <= LDT_DIRECT_ENTRIES) { in read_ldt() 73 if (copy_to_user(ptr, ldt->u.entries, size)) in read_ldt() 79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt() 84 if (copy_to_user(ptr, ldt->u.pages[i], size)) { in read_ldt() 92 mutex_unlock(&ldt->lock); in read_ldt() 125 uml_ldt_t *ldt = ¤t->mm->context.arch.ldt; in write_ldt() local 149 mutex_lock(&ldt->lock); in write_ldt() [all …]
|
D | Makefile | 12 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
|
/Linux-v6.1/arch/x86/kernel/ |
D | ldt.c | 44 struct ldt_struct *ldt; in load_mm_ldt() local 47 ldt = READ_ONCE(mm->context.ldt); in load_mm_ldt() 63 if (unlikely(ldt)) { in load_mm_ldt() 65 if (WARN_ON_ONCE((unsigned long)ldt->slot > 1)) { in load_mm_ldt() 81 set_ldt(ldt_slot_va(ldt->slot), ldt->nr_entries); in load_mm_ldt() 83 set_ldt(ldt->entries, ldt->nr_entries); in load_mm_ldt() 109 if (unlikely((unsigned long)prev->context.ldt | in switch_ldt() 110 (unsigned long)next->context.ldt)) in switch_ldt() 193 if (mm->context.ldt) { in do_sanity_check() 243 if (boot_cpu_has(X86_FEATURE_PTI) && !mm->context.ldt) in map_ldt_struct_to_user() [all …]
|
D | step.c | 37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear() 38 seg >= child->mm->context.ldt->nr_entries)) in convert_ip_to_linear() 41 desc = &child->mm->context.ldt->entries[seg]; in convert_ip_to_linear()
|
D | process_64.c | 408 struct ldt_struct *ldt; in x86_fsgsbase_read_task() local 416 ldt = task->mm->context.ldt; in x86_fsgsbase_read_task() 417 if (unlikely(!ldt || idx >= ldt->nr_entries)) in x86_fsgsbase_read_task() 420 base = get_desc_base(ldt->entries + idx); in x86_fsgsbase_read_task()
|
D | doublefault_32.c | 90 .ldt = 0,
|
D | umip.c | 259 if (current->mm->context.ldt) in emulate_umip_insn()
|
D | Makefile | 51 obj-$(CONFIG_MODIFY_LDT_SYSCALL) += ldt.o
|
/Linux-v6.1/arch/alpha/kernel/ |
D | entry.S | 687 ldt $f0, 64($sp) # dont let "do_switch_stack" change fp state. 706 ldt $f30, 312($sp) # get saved fpcr 707 ldt $f0, 64($sp) 708 ldt $f1, 72($sp) 709 ldt $f2, 80($sp) 710 ldt $f3, 88($sp) 712 ldt $f4, 96($sp) 713 ldt $f5, 104($sp) 714 ldt $f6, 112($sp) 715 ldt $f7, 120($sp) [all …]
|
/Linux-v6.1/arch/x86/include/asm/ |
D | desc.h | 114 #define load_ldt(ldt) asm volatile("lldt %0"::"m" (ldt)) argument 126 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 130 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 135 #define store_ldt(ldt) asm("sldt %0" : "=m"(ldt)) argument 142 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry() argument 144 memcpy(&ldt[entry], desc, 8); in native_write_ldt_entry() 198 ldt_desc ldt; in native_set_ldt() local 200 set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT, in native_set_ldt() 203 &ldt, DESC_LDT); in native_set_ldt()
|
D | suspend_32.h | 25 u16 ldt; member
|
D | mmu.h | 38 struct ldt_struct *ldt; member
|
D | suspend_64.h | 49 u16 ldt; member
|
D | paravirt.h | 264 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 266 PVOP_VCALL2(cpu.alloc_ldt, ldt, entries); in paravirt_alloc_ldt() 269 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 271 PVOP_VCALL2(cpu.free_ldt, ldt, entries); in paravirt_free_ldt()
|
D | paravirt_types.h | 101 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 107 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 108 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
D | mmu_context.h | 63 mm->context.ldt = NULL; in init_new_context_ldt()
|
/Linux-v6.1/tools/testing/selftests/x86/ |
D | ldt_gdt.c | 63 static void check_invalid_segment(uint16_t index, int ldt) in check_invalid_segment() argument 66 uint32_t selector = (index << 3) | (ldt << 2) | 3; in check_invalid_segment() 83 (ldt ? "LDT" : "GDT"), index); in check_invalid_segment() 87 (ldt ? "LDT" : "GDT"), index); in check_invalid_segment() 91 static void check_valid_segment(uint16_t index, int ldt, in check_valid_segment() argument 96 uint32_t selector = (index << 3) | (ldt << 2) | 3; in check_valid_segment() 113 (ldt ? "LDT" : "GDT"), index); in check_valid_segment() 127 (ldt ? "LDT" : "GDT"), index, ar, expected_ar); in check_valid_segment() 131 (ldt ? "LDT" : "GDT"), index, limit, expected_limit); in check_valid_segment() 135 (ldt ? "LDT" : "GDT"), index, ar, limit); in check_valid_segment() [all …]
|
/Linux-v6.1/arch/x86/math-emu/ |
D | fpu_system.h | 31 if (current->mm->context.ldt && seg < current->mm->context.ldt->nr_entries) in FPU_get_ldt_descriptor() 32 ret = current->mm->context.ldt->entries[seg]; in FPU_get_ldt_descriptor()
|
/Linux-v6.1/arch/x86/lib/ |
D | insn-eval.c | 629 struct ldt_struct *ldt; in get_desc() local 635 ldt = current->active_mm->context.ldt; in get_desc() 636 if (ldt && sel < ldt->nr_entries) { in get_desc() 637 *out = ldt->entries[sel]; in get_desc()
|
/Linux-v6.1/arch/x86/um/asm/ |
D | mm_context.h | 69 uml_ldt_t ldt; member
|
/Linux-v6.1/arch/x86/kvm/ |
D | tss.h | 57 u16 ldt; member
|
/Linux-v6.1/arch/x86/include/uapi/asm/ |
D | kvm.h | 154 struct kvm_segment tr, ldt; member 165 struct kvm_segment tr, ldt; member
|
/Linux-v6.1/tools/arch/x86/include/uapi/asm/ |
D | kvm.h | 154 struct kvm_segment tr, ldt; member 165 struct kvm_segment tr, ldt; member
|
/Linux-v6.1/arch/x86/xen/ |
D | enlighten_pv.c | 377 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() argument 394 set_aliased_prot(ldt + i, PAGE_KERNEL_RO); in xen_alloc_ldt() 397 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() argument 403 set_aliased_prot(ldt + i, PAGE_KERNEL); in xen_free_ldt()
|
/Linux-v6.1/arch/x86/events/ |
D | core.c | 2819 struct ldt_struct *ldt; in get_segment_base() local 2822 ldt = READ_ONCE(current->active_mm->context.ldt); in get_segment_base() 2823 if (!ldt || idx >= ldt->nr_entries) in get_segment_base() 2826 desc = &ldt->entries[idx]; in get_segment_base()
|