The patch titled kill default_ldt has been removed from the -mm tree. Its filename is kill-default_ldt.patch This patch was dropped because I wanna new one ------------------------------------------------------ Subject: kill default_ldt From: Jeremy Fitzhardinge <jeremy@xxxxxxxx> The default LDT is completely unused now that iBCS is no longer supported, so get rid of it. Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxx> Cc: Zachary Amsden <zach@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/i386/kernel/ldt.c | 4 +--- arch/i386/kernel/traps.c | 3 --- include/asm-i386/desc.h | 13 +++---------- 3 files changed, 4 insertions(+), 16 deletions(-) diff -puN arch/i386/kernel/ldt.c~kill-default_ldt arch/i386/kernel/ldt.c --- a/arch/i386/kernel/ldt.c~kill-default_ldt +++ a/arch/i386/kernel/ldt.c @@ -160,16 +160,14 @@ static int read_default_ldt(void __user { int err; unsigned long size; - void *address; err = 0; - address = &default_ldt[0]; size = 5*sizeof(struct desc_struct); if (size > bytecount) size = bytecount; err = size; - if (copy_to_user(ptr, address, size)) + if (clear_user(ptr, size)) err = -EFAULT; return err; diff -puN arch/i386/kernel/traps.c~kill-default_ldt arch/i386/kernel/traps.c --- a/arch/i386/kernel/traps.c~kill-default_ldt +++ a/arch/i386/kernel/traps.c @@ -59,9 +59,6 @@ asmlinkage int system_call(void); -struct desc_struct default_ldt[] = { { 0, 0 }, { 0, 0 }, { 0, 0 }, - { 0, 0 }, { 0, 0 } }; - /* Do we ignore FPU interrupts ? */ char ignore_fpu_irq = 0; diff -puN include/asm-i386/desc.h~kill-default_ldt include/asm-i386/desc.h --- a/include/asm-i386/desc.h~kill-default_ldt +++ a/include/asm-i386/desc.h @@ -33,11 +33,6 @@ static inline struct desc_struct *get_cp return (struct desc_struct *)per_cpu(cpu_gdt_descr, cpu).address; } -/* - * This is the ldt that every process will get unless we need - * something other than this. - */ -extern struct desc_struct default_ldt[]; extern struct desc_struct idt_table[]; extern void set_intr_gate(unsigned int irq, void * addr); @@ -155,7 +150,7 @@ static inline void clear_LDT(void) { int cpu = get_cpu(); - set_ldt_desc(cpu, &default_ldt[0], 5); + set_ldt_desc(cpu, NULL, 0); load_LDT_desc(); put_cpu(); } @@ -168,10 +163,8 @@ static inline void load_LDT_nolock(mm_co void *segments = pc->ldt; int count = pc->size; - if (likely(!count)) { - segments = &default_ldt[0]; - count = 5; - } + if (likely(!count)) + segments = NULL; set_ldt_desc(cpu, segments, count); load_LDT_desc(); _ Patches currently in -mm which might be from jeremy@xxxxxxxx are kill-default_ldt.patch kill-default_ldt-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html