]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- patch for DoS, adapted from LKML stuff
authoradasi <adasi@pld-linux.org>
Wed, 13 Nov 2002 22:09:52 +0000 (22:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-2.4-NTfix.patch -> 1.1

kernel-2.4-NTfix.patch [new file with mode: 0644]

diff --git a/kernel-2.4-NTfix.patch b/kernel-2.4-NTfix.patch
new file mode 100644 (file)
index 0000000..5003cb7
--- /dev/null
@@ -0,0 +1,23 @@
+--- linux-2.4.19/arch/i386/kernel/traps.c~     Wed Nov 13 22:55:47 2002
++++ linux-2.4.19/arch/i386/kernel/traps.c      Wed Nov 13 22:55:47 2002
+@@ -640,7 +640,7 @@
+       return;
+ clear_TF:
+-      regs->eflags &= ~TF_MASK;
++      regs->eflags &= ~(TF_MASK|NT_MASK);
+       return;
+ }
+--- linux-2.4.19/arch/i386/kernel/entry.S~     Wed Nov 13 22:55:23 2002
++++ linux-2.4.19/arch/i386/kernel/entry.S      Wed Nov 13 22:55:23 2002
+@@ -140,6 +140,9 @@
+       movl EIP(%esp),%eax     # due to call gates, this is eflags, not eip..
+       movl CS(%esp),%edx      # this is eip..
+       movl EFLAGS(%esp),%ecx  # and this is cs..
++       andl $~NT_MASK, %eax
++       pushl %eax
++       popfl
+       movl %eax,EFLAGS(%esp)  #
+       movl %edx,EIP(%esp)     # Now we move them to their "normal" places
+       movl %ecx,CS(%esp)      #
This page took 0.96793 seconds and 4 git commands to generate.