Magellan Linux

Contents of /trunk/kernel26-magellan/patches-2.6.25-r4/0110-2.6.25.11-all-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 666 - (show annotations) (download)
Wed Jul 30 14:06:20 2008 UTC (15 years, 9 months ago) by niro
File size: 645 byte(s)
-added more security fixes and kernel updates (up to 2.6.25.13)

1 diff --git a/include/asm-x86/desc.h b/include/asm-x86/desc.h
2 index 5b6a05d..76ea17a 100644
3 --- a/include/asm-x86/desc.h
4 +++ b/include/asm-x86/desc.h
5 @@ -191,8 +191,8 @@ static inline void native_set_ldt(const void *addr, unsigned int entries)
6 unsigned cpu = smp_processor_id();
7 ldt_desc ldt;
8
9 - set_tssldt_descriptor(&ldt, (unsigned long)addr,
10 - DESC_LDT, entries * sizeof(ldt) - 1);
11 + set_tssldt_descriptor(&ldt, (unsigned long)addr, DESC_LDT,
12 + entries * LDT_ENTRY_SIZE - 1);
13 write_gdt_entry(get_cpu_gdt_table(cpu), GDT_ENTRY_LDT,
14 &ldt, DESC_LDT);
15 __asm__ __volatile__("lldt %w0"::"q" (GDT_ENTRY_LDT*8));