/kernel/linux/linux-5.10/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 \
|
/kernel/linux/linux-5.10/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 | 384 struct ldt_struct *ldt; in x86_fsgsbase_read_task() local 392 ldt = task->mm->context.ldt; in x86_fsgsbase_read_task() 393 if (unlikely(!ldt || idx >= ldt->nr_entries)) in x86_fsgsbase_read_task() 396 base = get_desc_base(ldt->entries + idx); in x86_fsgsbase_read_task()
|
D | doublefault_32.c | 93 .ldt = 0,
|
D | umip.c | 259 if (current->mm->context.ldt) in emulate_umip_insn()
|
D | Makefile | 61 obj-$(CONFIG_MODIFY_LDT_SYSCALL) += ldt.o
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
D | entry.S | 689 ldt $f0, 64($sp) # dont let "do_switch_stack" change fp state. 708 ldt $f30, 312($sp) # get saved fpcr 709 ldt $f0, 64($sp) 710 ldt $f1, 72($sp) 711 ldt $f2, 80($sp) 712 ldt $f3, 88($sp) 714 ldt $f4, 96($sp) 715 ldt $f5, 104($sp) 716 ldt $f6, 112($sp) 717 ldt $f7, 120($sp) [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | desc.h | 113 #define load_ldt(ldt) asm volatile("lldt %0"::"m" (ldt)) argument 125 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 129 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 134 #define store_ldt(ldt) asm("sldt %0" : "=m"(ldt)) argument 141 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, const void *desc) in native_write_ldt_entry() argument 143 memcpy(&ldt[entry], desc, 8); in native_write_ldt_entry() 197 ldt_desc ldt; in native_set_ldt() local 199 set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT, in native_set_ldt() 202 &ldt, DESC_LDT); in native_set_ldt()
|
D | suspend_32.h | 27 u16 ldt; member
|
D | mmu.h | 32 struct ldt_struct *ldt; member
|
D | suspend_64.h | 49 u16 ldt; member
|
D | paravirt.h | 241 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt() argument 243 PVOP_VCALL2(cpu.alloc_ldt, ldt, entries); in paravirt_alloc_ldt() 246 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt() argument 248 PVOP_VCALL2(cpu.free_ldt, ldt, entries); in paravirt_free_ldt()
|
D | paravirt_types.h | 125 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum, 131 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries); 132 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
|
D | mmu_context.h | 63 mm->context.ldt = NULL; in init_new_context_ldt()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/x86/lib/ |
D | insn-eval.c | 611 struct ldt_struct *ldt; in get_desc() local 617 ldt = current->active_mm->context.ldt; in get_desc() 618 if (ldt && sel < ldt->nr_entries) { in get_desc() 619 *out = ldt->entries[sel]; in get_desc()
|
/kernel/linux/linux-5.10/arch/x86/um/asm/ |
D | mm_context.h | 69 uml_ldt_t ldt; member
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | tss.h | 57 u16 ldt; member
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
D | enlighten_pv.c | 392 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt() argument 409 set_aliased_prot(ldt + i, PAGE_KERNEL_RO); in xen_alloc_ldt() 412 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt() argument 418 set_aliased_prot(ldt + i, PAGE_KERNEL); in xen_free_ldt()
|
/kernel/linux/linux-5.10/arch/x86/events/ |
D | core.c | 2585 struct ldt_struct *ldt; in get_segment_base() local 2588 ldt = READ_ONCE(current->active_mm->context.ldt); in get_segment_base() 2589 if (!ldt || idx >= ldt->nr_entries) in get_segment_base() 2592 desc = &ldt->entries[idx]; in get_segment_base()
|
/kernel/linux/linux-5.10/tools/arch/x86/include/uapi/asm/ |
D | kvm.h | 152 struct kvm_segment tr, ldt; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-x86/asm/ |
D | kvm.h | 140 struct kvm_segment tr, ldt; member
|