]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
xen-kernel: add patch for CVE_2014_0196. xen-legacy-kernel
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 14 May 2014 06:41:30 +0000 (08:41 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 14 May 2014 06:41:30 +0000 (08:41 +0200)
lfs/linux2
make.sh
src/patches/linux-2.6.32.61_CVE-2014-0196.patch [new file with mode: 0644]

index 76e31a9dd2657e4ba9b192ed2310d6bc57361b51..57e4b0b33d263dbf6410b576999e8561ac6e0256 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2013  IPFire Team <info@ipfire.org>                      #
+# Copyright (C) 2007-2014  IPFire Team <info@ipfire.org>                      #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -34,7 +34,7 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 CFLAGS     =
 CXXFLAGS   =
 
-PAK_VER    = 29
+PAK_VER    = 30
 DEPS      = ""
 
 # Normal build or XEN build.
@@ -163,6 +163,9 @@ endif
        # Fix mv_cesa
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32-crypto-mv_cesa.patch
 
+       # Fix for CVE-2014-0196
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.61_CVE-2014-0196.patch
+
 ifeq "$(KCFG)" "-kirkwood"
        # Add dreamplug,guruplug and icy 62x0  support on ARM-kirkwood
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.57-arm_kirkwood_setups.patch
diff --git a/make.sh b/make.sh
index 0e20908c312f6d711bc23b4820bdcf24f60b8768..d2200a9bed9a2ee4f8c025bcc816827678810150 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -32,7 +32,7 @@ SLOGAN="www.ipfire.org"                                               # Software slogan
 CONFIG_ROOT=/var/ipfire                                                # Configuration rootdir
 NICE=10                                                                # Nice level
 MAX_RETRIES=1                                                  # prefetch/check loop
-BUILD_IMAGES=1                                                 # Build USB, Flash and Xen Images
+BUILD_IMAGES=0                                                 # Build USB, Flash and Xen Images
 KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
 MACHINE=`uname -m`
 GIT_TAG=$(git tag | tail -1)                                   # Git Tag
diff --git a/src/patches/linux-2.6.32.61_CVE-2014-0196.patch b/src/patches/linux-2.6.32.61_CVE-2014-0196.patch
new file mode 100644 (file)
index 0000000..081c134
--- /dev/null
@@ -0,0 +1,13 @@
+diff -Naur linux-2.6.32.61.org/drivers/char/n_tty.c linux-2.6.32.61/drivers/char/n_tty.c
+--- linux-2.6.32.61.org/drivers/char/n_tty.c   2013-06-10 11:43:48.000000000 +0200
++++ linux-2.6.32.61/drivers/char/n_tty.c       2014-05-13 16:10:01.906566307 +0200
+@@ -1969,7 +1969,9 @@
+                               tty->ops->flush_chars(tty);
+               } else {
+                       while (nr > 0) {
++                              mutex_lock(&tty->output_lock);
+                               c = tty->ops->write(tty, b, nr);
++                              mutex_unlock(&tty->output_lock);
+                               if (c < 0) {
+                                       retval = c;
+                                       goto break_out;