SOURCES (hawk-LINUX_2_6): linux-2.6-grsec-full.patch - raw from ht...
hawk
hawk at pld-linux.org
Thu May 31 16:37:06 CEST 2007
Author: hawk Date: Thu May 31 14:37:06 2007 GMT
Module: SOURCES Tag: hawk-LINUX_2_6
---- Log message:
- raw from http://www.grsecurity.net/~spender/grsecurity-2.1.10-2.6.21.3-200705292345.patch
with localversion killed
---- Files affected:
SOURCES:
linux-2.6-grsec-full.patch (1.1 -> 1.1.2.1)
---- Diffs:
================================================================
Index: SOURCES/linux-2.6-grsec-full.patch
diff -u SOURCES/linux-2.6-grsec-full.patch:1.1 SOURCES/linux-2.6-grsec-full.patch:1.1.2.1
--- SOURCES/linux-2.6-grsec-full.patch:1.1 Mon May 7 15:24:16 2007
+++ SOURCES/linux-2.6-grsec-full.patch Thu May 31 16:37:00 2007
@@ -1,6 +1,6 @@
-diff -urNp linux-2.6.21/arch/alpha/kernel/module.c linux-2.6.21/arch/alpha/kernel/module.c
---- linux-2.6.21/arch/alpha/kernel/module.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/alpha/kernel/module.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/alpha/kernel/module.c linux-2.6.21.3/arch/alpha/kernel/module.c
+--- linux-2.6.21.3/arch/alpha/kernel/module.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/alpha/kernel/module.c 2007-05-24 22:04:52.000000000 -0400
@@ -177,7 +177,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs,
/* The small sections were sorted to the end of the segment.
@@ -10,9 +10,9 @@
got = sechdrs[me->arch.gotsecindex].sh_addr;
for (i = 0; i < n; i++) {
-diff -urNp linux-2.6.21/arch/alpha/kernel/osf_sys.c linux-2.6.21/arch/alpha/kernel/osf_sys.c
---- linux-2.6.21/arch/alpha/kernel/osf_sys.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/alpha/kernel/osf_sys.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/alpha/kernel/osf_sys.c linux-2.6.21.3/arch/alpha/kernel/osf_sys.c
+--- linux-2.6.21.3/arch/alpha/kernel/osf_sys.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/alpha/kernel/osf_sys.c 2007-05-24 22:04:52.000000000 -0400
@@ -1277,6 +1277,10 @@ arch_get_unmapped_area(struct file *filp
merely specific addresses, but regions of memory -- perhaps
this feature should be incorporated into all ports? */
@@ -35,9 +35,9 @@
if (addr != (unsigned long) -ENOMEM)
return addr;
-diff -urNp linux-2.6.21/arch/alpha/kernel/ptrace.c linux-2.6.21/arch/alpha/kernel/ptrace.c
---- linux-2.6.21/arch/alpha/kernel/ptrace.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/alpha/kernel/ptrace.c 2007-04-29 22:41:26.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/alpha/kernel/ptrace.c linux-2.6.21.3/arch/alpha/kernel/ptrace.c
+--- linux-2.6.21.3/arch/alpha/kernel/ptrace.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/alpha/kernel/ptrace.c 2007-05-24 22:04:52.000000000 -0400
@@ -15,6 +15,7 @@
#include <linux/slab.h>
#include <linux/security.h>
@@ -56,9 +56,9 @@
if (request == PTRACE_ATTACH) {
ret = ptrace_attach(child);
goto out;
-diff -urNp linux-2.6.21/arch/alpha/mm/fault.c linux-2.6.21/arch/alpha/mm/fault.c
---- linux-2.6.21/arch/alpha/mm/fault.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/alpha/mm/fault.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/alpha/mm/fault.c linux-2.6.21.3/arch/alpha/mm/fault.c
+--- linux-2.6.21.3/arch/alpha/mm/fault.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/alpha/mm/fault.c 2007-05-24 22:04:52.000000000 -0400
@@ -24,6 +24,7 @@
#include <linux/smp_lock.h>
#include <linux/interrupt.h>
@@ -223,9 +223,9 @@
} else if (!cause) {
/* Allow reads even for write-only mappings */
if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
-diff -urNp linux-2.6.21/arch/arm/mm/mmap.c linux-2.6.21/arch/arm/mm/mmap.c
---- linux-2.6.21/arch/arm/mm/mmap.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/arm/mm/mmap.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/arm/mm/mmap.c linux-2.6.21.3/arch/arm/mm/mmap.c
+--- linux-2.6.21.3/arch/arm/mm/mmap.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/arm/mm/mmap.c 2007-05-24 22:04:52.000000000 -0400
@@ -61,6 +61,10 @@ arch_get_unmapped_area(struct file *filp
if (len > TASK_SIZE)
return -ENOMEM;
@@ -257,9 +257,9 @@
mm->cached_hole_size = 0;
goto full_search;
}
-diff -urNp linux-2.6.21/arch/avr32/mm/fault.c linux-2.6.21/arch/avr32/mm/fault.c
---- linux-2.6.21/arch/avr32/mm/fault.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/avr32/mm/fault.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/avr32/mm/fault.c linux-2.6.21.3/arch/avr32/mm/fault.c
+--- linux-2.6.21.3/arch/avr32/mm/fault.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/avr32/mm/fault.c 2007-05-24 22:04:52.000000000 -0400
@@ -68,6 +68,23 @@ static inline int notify_page_fault(enum
}
#endif
@@ -301,9 +301,9 @@
/* Hmm...we have to pass address and ecr somehow... */
/* tsk->thread.address = address;
tsk->thread.error_code = ecr; */
-diff -urNp linux-2.6.21/arch/i386/boot/setup.S linux-2.6.21/arch/i386/boot/setup.S
---- linux-2.6.21/arch/i386/boot/setup.S 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/boot/setup.S 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/boot/setup.S linux-2.6.21.3/arch/i386/boot/setup.S
+--- linux-2.6.21.3/arch/i386/boot/setup.S 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/boot/setup.S 2007-05-24 22:04:52.000000000 -0400
@@ -869,11 +869,13 @@ startup_32:
movl %eax, %gs
movl %eax, %ss
@@ -318,9 +318,9 @@
# Jump to the 32bit entry point
jmpl *(code32_start - start + (DELTA_INITSEG << 4))(%esi)
-diff -urNp linux-2.6.21/arch/i386/Kconfig linux-2.6.21/arch/i386/Kconfig
---- linux-2.6.21/arch/i386/Kconfig 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/Kconfig 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/Kconfig linux-2.6.21.3/arch/i386/Kconfig
+--- linux-2.6.21.3/arch/i386/Kconfig 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/Kconfig 2007-05-24 22:04:52.000000000 -0400
@@ -892,7 +892,7 @@ config HOTPLUG_CPU
config COMPAT_VDSO
@@ -348,9 +348,9 @@
default y
config PCI_DIRECT
-diff -urNp linux-2.6.21/arch/i386/Kconfig.cpu linux-2.6.21/arch/i386/Kconfig.cpu
---- linux-2.6.21/arch/i386/Kconfig.cpu 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/Kconfig.cpu 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/Kconfig.cpu linux-2.6.21.3/arch/i386/Kconfig.cpu
+--- linux-2.6.21.3/arch/i386/Kconfig.cpu 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/Kconfig.cpu 2007-05-24 22:04:52.000000000 -0400
@@ -262,7 +262,7 @@ config X86_PPRO_FENCE
config X86_F00F_BUG
@@ -369,9 +369,9 @@
default y
config X86_GOOD_APIC
-diff -urNp linux-2.6.21/arch/i386/Kconfig.debug linux-2.6.21/arch/i386/Kconfig.debug
---- linux-2.6.21/arch/i386/Kconfig.debug 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/Kconfig.debug 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/Kconfig.debug linux-2.6.21.3/arch/i386/Kconfig.debug
+--- linux-2.6.21.3/arch/i386/Kconfig.debug 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/Kconfig.debug 2007-05-24 22:04:52.000000000 -0400
@@ -48,7 +48,7 @@ config DEBUG_PAGEALLOC
config DEBUG_RODATA
@@ -381,9 +381,9 @@
help
Mark the kernel read-only data as write-protected in the pagetables,
in order to catch accidental (and incorrect) writes to such const
-diff -urNp linux-2.6.21/arch/i386/kernel/acpi/boot.c linux-2.6.21/arch/i386/kernel/acpi/boot.c
---- linux-2.6.21/arch/i386/kernel/acpi/boot.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/acpi/boot.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/acpi/boot.c linux-2.6.21.3/arch/i386/kernel/acpi/boot.c
+--- linux-2.6.21.3/arch/i386/kernel/acpi/boot.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/acpi/boot.c 2007-05-24 22:04:52.000000000 -0400
@@ -1116,7 +1116,7 @@ static struct dmi_system_id __initdata a
DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
},
@@ -393,9 +393,9 @@
};
#endif /* __i386__ */
-diff -urNp linux-2.6.21/arch/i386/kernel/acpi/sleep.c linux-2.6.21/arch/i386/kernel/acpi/sleep.c
---- linux-2.6.21/arch/i386/kernel/acpi/sleep.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/acpi/sleep.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/acpi/sleep.c linux-2.6.21.3/arch/i386/kernel/acpi/sleep.c
+--- linux-2.6.21.3/arch/i386/kernel/acpi/sleep.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/acpi/sleep.c 2007-05-24 22:04:52.000000000 -0400
@@ -94,7 +94,7 @@ static __initdata struct dmi_system_id a
DMI_MATCH(DMI_PRODUCT_NAME, "S4030CDT/4.3"),
},
@@ -405,9 +405,9 @@
};
static int __init acpisleep_dmi_init(void)
-diff -urNp linux-2.6.21/arch/i386/kernel/acpi/wakeup.S linux-2.6.21/arch/i386/kernel/acpi/wakeup.S
---- linux-2.6.21/arch/i386/kernel/acpi/wakeup.S 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/acpi/wakeup.S 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/acpi/wakeup.S linux-2.6.21.3/arch/i386/kernel/acpi/wakeup.S
+--- linux-2.6.21.3/arch/i386/kernel/acpi/wakeup.S 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/acpi/wakeup.S 2007-05-24 22:04:52.000000000 -0400
@@ -205,13 +205,11 @@ wakeup_pmode_return:
# and restore the stack ... but you need gdt for this to work
movl saved_context_esp, %esp
@@ -424,9 +424,9 @@
bogus_magic:
movw $0x0e00 + 'B', 0xb8018
-diff -urNp linux-2.6.21/arch/i386/kernel/alternative.c linux-2.6.21/arch/i386/kernel/alternative.c
---- linux-2.6.21/arch/i386/kernel/alternative.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/alternative.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/alternative.c linux-2.6.21.3/arch/i386/kernel/alternative.c
+--- linux-2.6.21.3/arch/i386/kernel/alternative.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/alternative.c 2007-05-24 22:04:52.000000000 -0400
@@ -4,6 +4,7 @@
#include <linux/list.h>
#include <asm/alternative.h>
@@ -619,9 +619,9 @@
/* Sync to be conservative, in case we patched following instructions */
sync_core();
}
-diff -urNp linux-2.6.21/arch/i386/kernel/apm.c linux-2.6.21/arch/i386/kernel/apm.c
---- linux-2.6.21/arch/i386/kernel/apm.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/apm.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/apm.c linux-2.6.21.3/arch/i386/kernel/apm.c
+--- linux-2.6.21.3/arch/i386/kernel/apm.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/apm.c 2007-05-24 22:04:52.000000000 -0400
@@ -236,7 +236,7 @@
#include "io_ports.h"
@@ -961,9 +961,9 @@
};
/*
-diff -urNp linux-2.6.21/arch/i386/kernel/asm-offsets.c linux-2.6.21/arch/i386/kernel/asm-offsets.c
---- linux-2.6.21/arch/i386/kernel/asm-offsets.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/asm-offsets.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/asm-offsets.c linux-2.6.21.3/arch/i386/kernel/asm-offsets.c
+--- linux-2.6.21.3/arch/i386/kernel/asm-offsets.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/asm-offsets.c 2007-05-24 22:04:52.000000000 -0400
@@ -16,6 +16,7 @@
#include <asm/thread_info.h>
#include <asm/elf.h>
@@ -1003,9 +1003,9 @@
+ OFFSET(PARAVIRT_write_cr0, paravirt_ops, write_cr0);
#endif
}
-diff -urNp linux-2.6.21/arch/i386/kernel/cpu/common.c linux-2.6.21/arch/i386/kernel/cpu/common.c
---- linux-2.6.21/arch/i386/kernel/cpu/common.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/cpu/common.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/cpu/common.c linux-2.6.21.3/arch/i386/kernel/cpu/common.c
+--- linux-2.6.21.3/arch/i386/kernel/cpu/common.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/cpu/common.c 2007-05-24 22:04:52.000000000 -0400
@@ -4,7 +4,6 @@
#include <linux/smp.h>
#include <linux/module.h>
@@ -1175,9 +1175,9 @@
cpu_set_gdt(cpu);
_cpu_init(cpu, curr);
}
-diff -urNp linux-2.6.21/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c linux-2.6.21/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
---- linux-2.6.21/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+--- linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 2007-05-24 22:04:52.000000000 -0400
@@ -563,7 +563,7 @@ static struct dmi_system_id sw_any_bug_d
DMI_MATCH(DMI_PRODUCT_NAME, "X6DLP"),
},
@@ -1187,9 +1187,9 @@
};
#endif
-diff -urNp linux-2.6.21/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c linux-2.6.21/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
---- linux-2.6.21/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+--- linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2007-05-24 22:04:52.000000000 -0400
@@ -229,7 +229,7 @@ static struct cpu_model models[] =
{ &cpu_ids[CPU_MP4HT_D0], NULL, 0, NULL },
{ &cpu_ids[CPU_MP4HT_E0], NULL, 0, NULL },
@@ -1208,9 +1208,9 @@
};
#endif
-diff -urNp linux-2.6.21/arch/i386/kernel/cpu/mcheck/therm_throt.c linux-2.6.21/arch/i386/kernel/cpu/mcheck/therm_throt.c
---- linux-2.6.21/arch/i386/kernel/cpu/mcheck/therm_throt.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/cpu/mcheck/therm_throt.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/cpu/mcheck/therm_throt.c linux-2.6.21.3/arch/i386/kernel/cpu/mcheck/therm_throt.c
+--- linux-2.6.21.3/arch/i386/kernel/cpu/mcheck/therm_throt.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/cpu/mcheck/therm_throt.c 2007-05-24 22:04:52.000000000 -0400
@@ -148,7 +148,7 @@ static __cpuinit int thermal_throttle_cp
return NOTIFY_OK;
}
@@ -1220,9 +1220,9 @@
{
.notifier_call = thermal_throttle_cpu_callback,
};
-diff -urNp linux-2.6.21/arch/i386/kernel/cpu/mtrr/generic.c linux-2.6.21/arch/i386/kernel/cpu/mtrr/generic.c
---- linux-2.6.21/arch/i386/kernel/cpu/mtrr/generic.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/cpu/mtrr/generic.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/cpu/mtrr/generic.c linux-2.6.21.3/arch/i386/kernel/cpu/mtrr/generic.c
+--- linux-2.6.21.3/arch/i386/kernel/cpu/mtrr/generic.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/cpu/mtrr/generic.c 2007-05-24 22:04:52.000000000 -0400
@@ -21,7 +21,7 @@ struct mtrr_state {
};
@@ -1232,9 +1232,9 @@
#undef MODULE_PARAM_PREFIX
#define MODULE_PARAM_PREFIX "mtrr."
-diff -urNp linux-2.6.21/arch/i386/kernel/crash.c linux-2.6.21/arch/i386/kernel/crash.c
---- linux-2.6.21/arch/i386/kernel/crash.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/crash.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/crash.c linux-2.6.21.3/arch/i386/kernel/crash.c
+--- linux-2.6.21.3/arch/i386/kernel/crash.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/crash.c 2007-05-24 22:04:52.000000000 -0400
@@ -55,7 +55,7 @@ static int crash_nmi_callback(struct not
return NOTIFY_STOP;
local_irq_disable();
@@ -1244,9 +1244,9 @@
crash_fixup_ss_esp(&fixed_regs, regs);
regs = &fixed_regs;
}
-diff -urNp linux-2.6.21/arch/i386/kernel/doublefault.c linux-2.6.21/arch/i386/kernel/doublefault.c
---- linux-2.6.21/arch/i386/kernel/doublefault.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/doublefault.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/doublefault.c linux-2.6.21.3/arch/i386/kernel/doublefault.c
+--- linux-2.6.21.3/arch/i386/kernel/doublefault.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/doublefault.c 2007-05-24 22:04:52.000000000 -0400
@@ -11,17 +11,17 @@
#define DOUBLEFAULT_STACKSIZE (1024)
@@ -1281,9 +1281,9 @@
.__cr3 = __pa(swapper_pg_dir)
};
-diff -urNp linux-2.6.21/arch/i386/kernel/efi.c linux-2.6.21/arch/i386/kernel/efi.c
---- linux-2.6.21/arch/i386/kernel/efi.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/efi.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/efi.c linux-2.6.21.3/arch/i386/kernel/efi.c
+--- linux-2.6.21.3/arch/i386/kernel/efi.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/efi.c 2007-05-24 22:04:52.000000000 -0400
@@ -63,82 +63,43 @@ extern void * boot_ioremap(unsigned long
static unsigned long efi_rt_eflags;
@@ -1388,9 +1388,9 @@
phys_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc)
{
efi_status_t status;
-diff -urNp linux-2.6.21/arch/i386/kernel/efi_stub.S linux-2.6.21/arch/i386/kernel/efi_stub.S
---- linux-2.6.21/arch/i386/kernel/efi_stub.S 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/efi_stub.S 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/efi_stub.S linux-2.6.21.3/arch/i386/kernel/efi_stub.S
+--- linux-2.6.21.3/arch/i386/kernel/efi_stub.S 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/efi_stub.S 2007-05-24 22:04:52.000000000 -0400
@@ -6,6 +6,7 @@
*/
@@ -1493,9 +1493,9 @@
saved_return_addr:
.long 0
efi_rt_function_ptr:
-diff -urNp linux-2.6.21/arch/i386/kernel/entry.S linux-2.6.21/arch/i386/kernel/entry.S
---- linux-2.6.21/arch/i386/kernel/entry.S 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/entry.S 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/entry.S linux-2.6.21.3/arch/i386/kernel/entry.S
+--- linux-2.6.21.3/arch/i386/kernel/entry.S 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/entry.S 2007-05-24 22:04:52.000000000 -0400
@@ -49,7 +49,6 @@
#include <asm/smp.h>
#include <asm/page.h>
@@ -1719,9 +1719,9 @@
#include "syscall_table.S"
syscall_table_size=(.-sys_call_table)
-diff -urNp linux-2.6.21/arch/i386/kernel/head.S linux-2.6.21/arch/i386/kernel/head.S
---- linux-2.6.21/arch/i386/kernel/head.S 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/head.S 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/head.S linux-2.6.21.3/arch/i386/kernel/head.S
+--- linux-2.6.21.3/arch/i386/kernel/head.S 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/head.S 2007-05-24 22:04:52.000000000 -0400
@@ -45,6 +45,16 @@
*/
#define INIT_MAP_BEYOND_END (128*1024)
@@ -2139,9 +2139,9 @@
+#ifdef CONFIG_SMP
+ .fill (NR_CPUS-1) * (PAGE_SIZE_asm / 8),8,0 /* other CPU's GDT */
+#endif
-diff -urNp linux-2.6.21/arch/i386/kernel/i386_ksyms.c linux-2.6.21/arch/i386/kernel/i386_ksyms.c
---- linux-2.6.21/arch/i386/kernel/i386_ksyms.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/i386_ksyms.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/i386_ksyms.c linux-2.6.21.3/arch/i386/kernel/i386_ksyms.c
+--- linux-2.6.21.3/arch/i386/kernel/i386_ksyms.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/i386_ksyms.c 2007-05-24 22:04:52.000000000 -0400
@@ -2,12 +2,16 @@
#include <asm/checksum.h>
#include <asm/desc.h>
@@ -2159,9 +2159,9 @@
EXPORT_SYMBOL(__get_user_1);
EXPORT_SYMBOL(__get_user_2);
-diff -urNp linux-2.6.21/arch/i386/kernel/i8259.c linux-2.6.21/arch/i386/kernel/i8259.c
---- linux-2.6.21/arch/i386/kernel/i8259.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/i8259.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/i8259.c linux-2.6.21.3/arch/i386/kernel/i8259.c
+--- linux-2.6.21.3/arch/i386/kernel/i8259.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/i8259.c 2007-05-24 22:04:52.000000000 -0400
@@ -351,7 +351,7 @@ static irqreturn_t math_error_irq(int cp
* New motherboards sometimes make IRQ 13 be a PCI interrupt,
* so allow interrupt sharing.
@@ -2171,9 +2171,9 @@
void __init init_ISA_irqs (void)
{
-diff -urNp linux-2.6.21/arch/i386/kernel/init_task.c linux-2.6.21/arch/i386/kernel/init_task.c
---- linux-2.6.21/arch/i386/kernel/init_task.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/init_task.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/init_task.c linux-2.6.21.3/arch/i386/kernel/init_task.c
+--- linux-2.6.21.3/arch/i386/kernel/init_task.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/init_task.c 2007-05-24 22:04:52.000000000 -0400
@@ -42,5 +42,5 @@ EXPORT_SYMBOL(init_task);
* per-CPU TSS segments. Threads are completely 'soft' on Linux,
* no more per-task TSS's.
@@ -2181,9 +2181,9 @@
-DEFINE_PER_CPU(struct tss_struct, init_tss) ____cacheline_internodealigned_in_smp = INIT_TSS;
+struct tss_struct init_tss[NR_CPUS] ____cacheline_internodealigned_in_smp = { [0 ... NR_CPUS-1] = INIT_TSS };
-diff -urNp linux-2.6.21/arch/i386/kernel/io_apic.c linux-2.6.21/arch/i386/kernel/io_apic.c
---- linux-2.6.21/arch/i386/kernel/io_apic.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/io_apic.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/io_apic.c linux-2.6.21.3/arch/i386/kernel/io_apic.c
+--- linux-2.6.21.3/arch/i386/kernel/io_apic.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/io_apic.c 2007-05-24 22:04:52.000000000 -0400
@@ -357,8 +357,8 @@ static void set_ioapic_affinity_irq(unsi
# define TDprintk(x...) do { printk("<%ld:%s:%d>: ", jiffies, __FILE__, __LINE__); printk(x); } while (0)
# define Dprintk(x...) do { TDprintk(x); } while (0)
@@ -2195,9 +2195,9 @@
# endif
#define IRQBALANCE_CHECK_ARCH -999
-diff -urNp linux-2.6.21/arch/i386/kernel/ioport.c linux-2.6.21/arch/i386/kernel/ioport.c
---- linux-2.6.21/arch/i386/kernel/ioport.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/ioport.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/ioport.c linux-2.6.21.3/arch/i386/kernel/ioport.c
+--- linux-2.6.21.3/arch/i386/kernel/ioport.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/ioport.c 2007-05-24 22:04:52.000000000 -0400
@@ -16,6 +16,7 @@
#include <linux/stddef.h>
#include <linux/slab.h>
@@ -2247,9 +2247,9 @@
}
t->iopl = level << 12;
regs->eflags = (regs->eflags & ~X86_EFLAGS_IOPL) | t->iopl;
-diff -urNp linux-2.6.21/arch/i386/kernel/irq.c linux-2.6.21/arch/i386/kernel/irq.c
---- linux-2.6.21/arch/i386/kernel/irq.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/irq.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/irq.c linux-2.6.21.3/arch/i386/kernel/irq.c
+--- linux-2.6.21.3/arch/i386/kernel/irq.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/irq.c 2007-05-24 22:04:52.000000000 -0400
@@ -114,7 +114,7 @@ fastcall unsigned int do_IRQ(struct pt_r
int arg1, arg2, ebx;
@@ -2281,9 +2281,9 @@
asm volatile(
" xchgl %%ebx,%%esp \n"
-diff -urNp linux-2.6.21/arch/i386/kernel/kprobes.c linux-2.6.21/arch/i386/kernel/kprobes.c
---- linux-2.6.21/arch/i386/kernel/kprobes.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/kprobes.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/kprobes.c linux-2.6.21.3/arch/i386/kernel/kprobes.c
+--- linux-2.6.21.3/arch/i386/kernel/kprobes.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/kprobes.c 2007-05-24 22:04:52.000000000 -0400
@@ -661,7 +661,7 @@ int __kprobes kprobe_exceptions_notify(s
struct die_args *args = (struct die_args *)data;
int ret = NOTIFY_DONE;
@@ -2293,9 +2293,9 @@
return ret;
switch (val) {
-diff -urNp linux-2.6.21/arch/i386/kernel/ldt.c linux-2.6.21/arch/i386/kernel/ldt.c
---- linux-2.6.21/arch/i386/kernel/ldt.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/ldt.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/ldt.c linux-2.6.21.3/arch/i386/kernel/ldt.c
+--- linux-2.6.21.3/arch/i386/kernel/ldt.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/ldt.c 2007-05-24 22:04:52.000000000 -0400
@@ -103,6 +103,22 @@ int init_new_context(struct task_struct
retval = copy_ldt(&mm->context, &old_mm->context);
up(&old_mm->context.sem);
@@ -2333,9 +2333,9 @@
entry_1 = LDT_entry_a(&ldt_info);
entry_2 = LDT_entry_b(&ldt_info);
if (oldmode)
-diff -urNp linux-2.6.21/arch/i386/kernel/machine_kexec.c linux-2.6.21/arch/i386/kernel/machine_kexec.c
---- linux-2.6.21/arch/i386/kernel/machine_kexec.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/machine_kexec.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/machine_kexec.c linux-2.6.21.3/arch/i386/kernel/machine_kexec.c
+--- linux-2.6.21.3/arch/i386/kernel/machine_kexec.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/machine_kexec.c 2007-05-24 22:04:52.000000000 -0400
@@ -29,25 +29,25 @@ static u32 kexec_pmd1[1024] PAGE_ALIGNED
static u32 kexec_pte0[1024] PAGE_ALIGNED;
static u32 kexec_pte1[1024] PAGE_ALIGNED;
@@ -2366,9 +2366,9 @@
load_gdt(&curgdt);
};
-diff -urNp linux-2.6.21/arch/i386/kernel/module.c linux-2.6.21/arch/i386/kernel/module.c
---- linux-2.6.21/arch/i386/kernel/module.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/module.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/module.c linux-2.6.21.3/arch/i386/kernel/module.c
+--- linux-2.6.21.3/arch/i386/kernel/module.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/module.c 2007-05-24 22:04:52.000000000 -0400
@@ -23,6 +23,8 @@
#include <linux/kernel.h>
#include <linux/bug.h>
@@ -2489,9 +2489,9 @@
break;
default:
printk(KERN_ERR "module %s: Unknown relocation: %u\n",
-diff -urNp linux-2.6.21/arch/i386/kernel/paravirt.c linux-2.6.21/arch/i386/kernel/paravirt.c
---- linux-2.6.21/arch/i386/kernel/paravirt.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/paravirt.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/paravirt.c linux-2.6.21.3/arch/i386/kernel/paravirt.c
+--- linux-2.6.21.3/arch/i386/kernel/paravirt.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/paravirt.c 2007-05-24 22:04:52.000000000 -0400
@@ -89,7 +89,7 @@ static unsigned native_patch(u8 type, u1
if (len < insn_len)
return len;
@@ -2551,9 +2551,9 @@
.name = "bare hardware",
.paravirt_enabled = 0,
.kernel_rpl = 0,
-diff -urNp linux-2.6.21/arch/i386/kernel/process.c linux-2.6.21/arch/i386/kernel/process.c
---- linux-2.6.21/arch/i386/kernel/process.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/process.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/process.c linux-2.6.21.3/arch/i386/kernel/process.c
+--- linux-2.6.21.3/arch/i386/kernel/process.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/process.c 2007-05-25 05:00:26.000000000 -0400
@@ -71,7 +71,7 @@ EXPORT_SYMBOL(boot_option_idle_override)
*/
unsigned long thread_saved_pc(struct task_struct *tsk)
@@ -2635,8 +2635,8 @@
savesegment(gs, prev->gs);
+#ifdef CONFIG_PAX_MEMORY_UDEREF
-+ if (!segment_eq(prev_p->thread_info->addr_limit, next_p->thread_info->addr_limit))
-+ __set_fs(next_p->thread_info->addr_limit, cpu);
++ if (!segment_eq(task_thread_info(prev_p)->addr_limit, task_thread_info(next_p)->addr_limit))
++ __set_fs(task_thread_info(next_p)->addr_limit, cpu);
+#endif
+
/*
@@ -2688,9 +2688,9 @@
+ current->thread.esp0 = tss->esp0;
}
+#endif
-diff -urNp linux-2.6.21/arch/i386/kernel/ptrace.c linux-2.6.21/arch/i386/kernel/ptrace.c
---- linux-2.6.21/arch/i386/kernel/ptrace.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/ptrace.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/ptrace.c linux-2.6.21.3/arch/i386/kernel/ptrace.c
+--- linux-2.6.21.3/arch/i386/kernel/ptrace.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/ptrace.c 2007-05-24 22:04:52.000000000 -0400
@@ -17,6 +17,7 @@
#include <linux/audit.h>
#include <linux/seccomp.h>
@@ -2758,9 +2758,9 @@
/* Send us the fakey SIGTRAP */
force_sig_info(SIGTRAP, &info, tsk);
-diff -urNp linux-2.6.21/arch/i386/kernel/reboot.c linux-2.6.21/arch/i386/kernel/reboot.c
---- linux-2.6.21/arch/i386/kernel/reboot.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/reboot.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/reboot.c linux-2.6.21.3/arch/i386/kernel/reboot.c
+--- linux-2.6.21.3/arch/i386/kernel/reboot.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/reboot.c 2007-05-24 22:04:52.000000000 -0400
@@ -25,7 +25,7 @@
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
@@ -2889,9 +2889,9 @@
for (;;) {
mach_reboot_fixups(); /* for board specific fixups */
mach_reboot();
-diff -urNp linux-2.6.21/arch/i386/kernel/setup.c linux-2.6.21/arch/i386/kernel/setup.c
---- linux-2.6.21/arch/i386/kernel/setup.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/setup.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/setup.c linux-2.6.21.3/arch/i386/kernel/setup.c
+--- linux-2.6.21.3/arch/i386/kernel/setup.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/setup.c 2007-05-24 22:04:52.000000000 -0400
@@ -82,7 +82,11 @@ struct cpuinfo_x86 new_cpu_data __cpuini
struct cpuinfo_x86 boot_cpu_data __read_mostly = { 0, 0, 0, 0, -1, 1, 0, 0, -1 };
EXPORT_SYMBOL(boot_cpu_data);
@@ -2935,9 +2935,9 @@
data_resource.end = virt_to_phys(_edata)-1;
parse_early_param();
-diff -urNp linux-2.6.21/arch/i386/kernel/signal.c linux-2.6.21/arch/i386/kernel/signal.c
---- linux-2.6.21/arch/i386/kernel/signal.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/signal.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/signal.c linux-2.6.21.3/arch/i386/kernel/signal.c
+--- linux-2.6.21.3/arch/i386/kernel/signal.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/signal.c 2007-05-24 22:04:52.000000000 -0400
@@ -351,9 +351,9 @@ static int setup_frame(int sig, struct k
}
@@ -2969,9 +2969,9 @@
return;
if (test_thread_flag(TIF_RESTORE_SIGMASK))
-diff -urNp linux-2.6.21/arch/i386/kernel/smpboot.c linux-2.6.21/arch/i386/kernel/smpboot.c
---- linux-2.6.21/arch/i386/kernel/smpboot.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/smpboot.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/smpboot.c linux-2.6.21.3/arch/i386/kernel/smpboot.c
+--- linux-2.6.21.3/arch/i386/kernel/smpboot.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/smpboot.c 2007-05-24 22:04:52.000000000 -0400
@@ -53,7 +53,6 @@
#include <asm/desc.h>
#include <asm/arch_hooks.h>
@@ -3027,9 +3027,9 @@
info.complete = &done;
info.apicid = apicid;
info.cpu = cpu;
-diff -urNp linux-2.6.21/arch/i386/kernel/smp.c linux-2.6.21/arch/i386/kernel/smp.c
---- linux-2.6.21/arch/i386/kernel/smp.c 2007-04-25 23:08:32.000000000 -0400
-+++ linux-2.6.21/arch/i386/kernel/smp.c 2007-04-30 17:07:41.000000000 -0400
+diff -urNp linux-2.6.21.3/arch/i386/kernel/smp.c linux-2.6.21.3/arch/i386/kernel/smp.c
+--- linux-2.6.21.3/arch/i386/kernel/smp.c 2007-04-25 23:08:32.000000000 -0400
++++ linux-2.6.21.3/arch/i386/kernel/smp.c 2007-05-24 22:04:52.000000000 -0400
@@ -104,7 +104,7 @@
* about nothing of note with C stepping upwards.
<<Diff was trimmed, longer than 597 lines>>
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/linux-2.6-grsec-full.patch?r1=1.1&r2=1.1.2.1&f=u
More information about the pld-cvs-commit
mailing list