Skip to contentSkip to conversation

glibc: bump version to 2.21

PATCH New Vicente Olivert Riera 6 participants 16 messages Feb 8, 2015 – Feb 10, 2015

lore
Share & tools
lore
#0 lore raw

cover glibc: bump version to 2.21

- Add version 2.21
- Add a hash value for it
- Set version 2.20 as default
- Remove version 2.19

Vicente Olivert Riera (3):
glibc: add version 2.21
glibc: set version 2.20 as default
glibc: remove version 2.19

 package/glibc/2.19/0001-CVE-2014-7817.patch |  173 ---------------------------
 package/glibc/2.19/0002-CVE-2014-6040.patch |  141 ----------------------
 package/glibc/2.19/0003-CVE-2014-9402.patch |   24 ----
 package/glibc/Config.in                     |    8 +-
 package/glibc/glibc.hash                    |    2 +-
 5 files changed, 5 insertions(+), 343 deletions(-)
 delete mode 100644 package/glibc/2.19/0001-CVE-2014-7817.patch
 delete mode 100644 package/glibc/2.19/0002-CVE-2014-6040.patch
 delete mode 100644 package/glibc/2.19/0003-CVE-2014-9402.patch
#1 lore raw

PATCH 1/3 glibc: add version 2.21

- Add version 2.21
- Add a hash value for it

---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +3 -0
index 8c033f2..37e108e 100644
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+
 endchoice
 
 endif
package/glibc/glibc.hash +1 -0
index 094bbda..f194de4 100644
@@ -6,3 +6,4 @@ md5	197836c2ba42fb146e971222647198dd	eglibc-2.19-svnr25243.tar.bz2
 sha1	8013c1935b46fd50d2d1fbfad3b0af362b75fb28	eglibc-2.19-svnr25243.tar.bz2
 sha256	2d3997f588401ea095a0b27227b1d50cdfdd416236f6567b564549d3b46ea2a2	glibc-2.19.tar.xz
 sha256	f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5	glibc-2.20.tar.xz
+sha256  aeeb362437965a5d3f40b151094ca79def04a115bd363fdd4a9a0c69482923b8  glibc-2.21.tar.xz
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/3 glibc: add version 2.21

Vicente, All,

On 2015-02-08 15:07 +0000, Vicente Olivert Riera spake thusly:

Quoted 4 lines

- Add version 2.21
- Add a hash value for it

Manually downloaded, and manually checked the hash: OK! :-)

Regards,
Yann E. MORIN.

Quoted 31 lines
---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +3 -0
index 8c033f2..37e108e 100644
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+
 endchoice
 
 endif
package/glibc/glibc.hash +1 -0
index 094bbda..f194de4 100644
@@ -6,3 +6,4 @@ md5	197836c2ba42fb146e971222647198dd	eglibc-2.19-svnr25243.tar.bz2
 sha1	8013c1935b46fd50d2d1fbfad3b0af362b75fb28	eglibc-2.19-svnr25243.tar.bz2
 sha256	2d3997f588401ea095a0b27227b1d50cdfdd416236f6567b564549d3b46ea2a2	glibc-2.19.tar.xz
 sha256	f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5	glibc-2.20.tar.xz
+sha256  aeeb362437965a5d3f40b151094ca79def04a115bd363fdd4a9a0c69482923b8  glibc-2.21.tar.xz
Signature · 1 line
1.7.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/3 glibc: add version 2.21

In reply to Vicente Olivert Riera

Hi Vicente,

Quoted 4 lines · Vicente Olivert Riera

- Add version 2.21
- Add a hash value for it

The glibc NEWS for the 2.21 release[1] include this:

* The GNU C Library is now built with -Werror by default. This can be disabled by configuring with --disable-werror.

I think we should add --disable-werror when configuring glibc 2.21.

[1] https://sourceware.org/ml/libc-alpha/2015-02/msg00119.html

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#4 lore raw

PATCH 1/3 glibc: add version 2.21

On 2015-02-08 19:20 +0200, Baruch Siach spake thusly:

Quoted 6 lines

Hi Vicente,

Quoted 3 lines · Vicente Olivert Riera

- Add version 2.21
- Add a hash value for it

Quoted 6 lines
Quoted 1 line

The glibc NEWS for the 2.21 release[1] include this:

* The GNU C Library is now built with -Werror by default. This can be disabled by configuring with --disable-werror.

Yup, I had seen this. And I think this is a good idea for such a critical piece of code.

Quoted 1 line

I think we should add --disable-werror when configuring glibc 2.21.

Why so? I think on the contrary we should keep the default, and only if we find issues then we can investigate as to whether this is a real error or not, and report that upstream.

Granted, we usually remove -Werror from packages when they fail to build (and I am not a big fan of it, warnings should not be treated lightly), but only in that case. If the package builds fine with -Werror, we usually keep it.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/3 glibc: add version 2.21

In reply to Vicente Olivert Riera
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

- Add version 2.21
- Add a hash value for it

---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +0 -0
index 8c033f2..37e108e 100644

package/glibc/Config.in config BR2_GLIBC_VERSION_2_19 · line 43

Quoted 6 lines
package/glibc/Config.in +3 -0
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+

I noticed a few things in the release notes that might be of interest:

* Port to Altera Nios II has been contributed by Mentor Graphics.

So we should be able to build an internal glibc toolchain for nios2 now.

* Support for MIPS o32 FPXX, FP64A and FP64 ABI Extensions.
The original MIPS o32 hard-float ABI requires an FPU where double-precision registers overlay two consecutive single-precision registers. MIPS32R2 introduced a new FPU mode (FR=1) where double-precision registers extend the corresponding single-precision registers which is incompatible with the o32 hard-float ABI. The MIPS SIMD ASE and the MIPSR6 architecture both require the use of FR=1 making a transition necessary. New o32 ABI extensions enable users to migrate over time from the original o32 ABI through to the updated o32 FP64 ABI. To achieve this the dynamic linker now tracks the ABI of any loaded object and verifies that new objects are compatible. Mode transitions will also be requested as required and unsupportable objects will be rejected. The ABI checks include both soft and hard float ABIs for o32, n32 and n64.

I'm not sure what the impact is of this exactly?

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

PATCH 1/3 glibc: add version 2.21

Quoted 43 lines · Peter Korsgaard
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

- Add version 2.21
- Add a hash value for it

---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +0 -0
index 8c033f2..37e108e 100644

package/glibc/Config.in config BR2_GLIBC_VERSION_2_19 · line 43

Quoted 6 lines
package/glibc/Config.in +3 -0
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+

I noticed a few things in the release notes that might be of interest:

* Port to Altera Nios II has been contributed by Mentor Graphics.

So we should be able to build an internal glibc toolchain for nios2 now.

* Support for MIPS o32 FPXX, FP64A and FP64 ABI Extensions.
The original MIPS o32 hard-float ABI requires an FPU where double-precision registers overlay two consecutive single-precision registers. MIPS32R2 introduced a new FPU mode (FR=1) where double-precision registers extend the corresponding single-precision registers which is incompatible with the o32 hard-float ABI. The MIPS SIMD ASE and the MIPSR6 architecture both require the use of FR=1 making a transition necessary. New o32 ABI extensions enable users to migrate over time from the original o32 ABI through to the updated o32 FP64 ABI. To achieve this the dynamic linker now tracks the ABI of any loaded object and verifies that new objects are compatible. Mode transitions will also be requested as required and unsupportable objects will be rejected. The ABI checks include both soft and hard float ABIs for o32, n32 and n64.

Quoted 2 lines

I'm not sure what the impact is of this exactly?

Nothing you should be worried about. Just FPU ABI extensions for MIPS o32. This just makes it possible to link objects build for different FPU ABIs (assuming they are compatible).

https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

ie everything works as expected with glibc-2.21

Signature · 1 line
markos
#7 lore raw

PATCH 1/3 glibc: add version 2.21

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markos" == Markos Chandras <[email protected]> writes:

Hi,

Quoted 9 lines
Quoted 2 lines

I'm not sure what the impact is of this exactly?

Nothing you should be worried about. Just FPU ABI extensions for MIPS o32. This just makes it possible to link objects build for different FPU ABIs (assuming they are compatible).

https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

ie everything works as expected with glibc-2.21

Ok, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH 1/3 glibc: add version 2.21

In reply to Peter Korsgaard
Quoted 25 lines · Peter Korsgaard
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

- Add version 2.21
- Add a hash value for it

---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +0 -0
index 8c033f2..37e108e 100644

package/glibc/Config.in config BR2_GLIBC_VERSION_2_19 · line 43

Quoted 6 lines
package/glibc/Config.in +3 -0
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+

I noticed a few things in the release notes that might be of interest:

Quoted 4 lines

* Port to Altera Nios II has been contributed by Mentor Graphics.

So we should be able to build an internal glibc toolchain for nios2 now.

Yes, as far as I understand, we should be able to build the toolchain now. Linux v3.19 has been just released, which includes the nios2 arch port.

So we now have binutils, gcc, glibc and kernel support.

FWIW, the glibc port was tested using Buildroot [1]! :)

[1]
http://sourceware-org.1504.n7.nabble.com/PATCH-0-4-Nios-II-port-submission-td265493.html

Signature · 2 lines
Ezequiel Garcia, VanguardiaSur
www.vanguardiasur.com.ar
#9 lore raw

PATCH 1/3 glibc: add version 2.21

In reply to Vicente Olivert Riera
Quoted 14 lines · Vicente Olivert Riera

- Add version 2.21
- Add a hash value for it

---
 package/glibc/Config.in  |    3 +++
 package/glibc/glibc.hash |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
package/glibc/Config.in +0 -0
index 8c033f2..37e108e 100644

package/glibc/Config.in config BR2_GLIBC_VERSION_2_19 · line 46

Quoted 9 lines
package/glibc/Config.in +3 -0
@@ -38,6 +38,9 @@ config BR2_GLIBC_VERSION_2_19
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
+config BR2_GLIBC_VERSION_2_21
+	bool "2.21"
+
 endchoice
 
 

IMHO, you are missing this:

package/glibc/Config.in +1 -0
index 37e108e..3fe0dd4 100644
@@ -51,3 +51,4 @@ config BR2_GLIBC_VERSION_STRING
        default "2.19-svnr25243" if BR2_EGLIBC_VERSION_2_19
        default "2.19" if BR2_GLIBC_VERSION_2_19
        default "2.20" if BR2_GLIBC_VERSION_2_20
+       default "2.21" if BR2_GLIBC_VERSION_2_21

Otherwise, it fails to download glibc.

Signature · 2 lines
Ezequiel Garcia, VanguardiaSur
www.vanguardiasur.com.ar
#10 lore raw

PATCH 1/3 glibc: add version 2.21

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ezequiel" == Ezequiel Garcia <[email protected]> writes:

Hi,

package/glibc/Config.in config BR2_GLIBC_VERSION_STRING · line 54

Quoted 11 lines

IMHO, you are missing this:

package/glibc/Config.in +1 -0
index 37e108e..3fe0dd4 100644
@@ -51,3 +51,4 @@ config BR2_GLIBC_VERSION_STRING
        default "2.19-svnr25243" if BR2_EGLIBC_VERSION_2_19
        default "2.19" if BR2_GLIBC_VERSION_2_19
        default "2.20" if BR2_GLIBC_VERSION_2_20
+       default "2.21" if BR2_GLIBC_VERSION_2_21

Indeed, will fix.

Signature · 1 line
Bye, Peter Korsgaard
#11 lore raw

PATCH 2/3 glibc: set version 2.20 as default

In reply to Vicente Olivert Riera
---
 package/glibc/Config.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/glibc/Config.in +1 -1
index 37e108e..890d007 100644
@@ -30,7 +30,7 @@ config BR2_PACKAGE_GLIBC
 
 choice
 	prompt "glibc version"
-	default BR2_GLIBC_VERSION_2_19
+	default BR2_GLIBC_VERSION_2_20
 
 config BR2_GLIBC_VERSION_2_19
 	bool "2.19"
Signature · 1 line
1.7.1
#12 lore raw

PATCH 2/3 glibc: set version 2.20 as default

Vicente, All,

On 2015-02-08 15:07 +0000, Vicente Olivert Riera spake thusly:

Quoted 1 line

Regards,
Yann E. MORIN.

Quoted 20 lines
---
 package/glibc/Config.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/glibc/Config.in +1 -1
index 37e108e..890d007 100644
@@ -30,7 +30,7 @@ config BR2_PACKAGE_GLIBC
 
 choice
 	prompt "glibc version"
-	default BR2_GLIBC_VERSION_2_19
+	default BR2_GLIBC_VERSION_2_20
 
 config BR2_GLIBC_VERSION_2_19
 	bool "2.19"
Signature · 1 line
1.7.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#13 lore raw

PATCH 3/3 glibc: remove version 2.19

In reply to Vicente Olivert Riera
---
 package/glibc/2.19/0001-CVE-2014-7817.patch |  173 ---------------------------
 package/glibc/2.19/0002-CVE-2014-6040.patch |  141 ----------------------
 package/glibc/2.19/0003-CVE-2014-9402.patch |   24 ----
 package/glibc/Config.in                     |    3 -
 package/glibc/glibc.hash                    |    1 -
 5 files changed, 0 insertions(+), 342 deletions(-)
 delete mode 100644 package/glibc/2.19/0001-CVE-2014-7817.patch
 delete mode 100644 package/glibc/2.19/0002-CVE-2014-6040.patch
 delete mode 100644 package/glibc/2.19/0003-CVE-2014-9402.patch
package/glibc/2.19/0001-CVE-2014-7817.patch deleted +0 -173
deleted file mode 100644
index cd20c42..0000000
@@ -1,173 +0,0 @@
-Patch from https://bugzilla.redhat.com/show_bug.cgi?id=1157689
-
-Signed-off-by: Gustavo Zacarias <[email protected]>
-
-WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!!
-EMBARGOED !!! EMBARGOED !!! EMARGOED !!! EMBARGOED !!! EMBARGOED !!!
-SECURITY !!! SECURITY !!! SECURITY !!! SECURITY !!! SECURITY !!!
-
-CVE-2014-7817:
-
-The function wordexp() fails to properly handle the WRDE_NOCMD
-flag when processing arithmetic inputs in the form of "$((... ``))"
-where "..." can be anything valid. The backticks in the arithmetic
-epxression are evaluated by in a shell even if WRDE_NOCMD forbade
-command substitution. This allows an attacker to attempt to pass
-dangerous commands via constructs of the above form, and bypass
-the WRDE_NOCMD flag. This patch fixes this by checking for WRDE_NOCMD
-in parse_arith(). The patch also hardens parse_backticks() and 
-parse_comm() to check for WRDE_NOCMD flag and return an error instead
-of ever running a shell.
-
-We expand the testsuite and add 3 new regression tests of roughtly
-the same form but with a couple of nested levels. 
-
-On top of the 3 new tests we add fork validation to the WRDE_NOCMD
-testing. If any forks are detected during the execution of a wordexp()
-call with WRDE_NOCMD, the test is marked as failed. This is slightly
-heuristic since vfork might be used, but it provides a higher level
-of assurance that no shells were executed as part of command substitution
-with WRDE_NOCMD in effect. In addition it doesn't require libpthread or
-libdl, instead we use the public implementation namespace function
-__register_atfork (already part of the public ABI for libpthread).
-
-Tested on x86_64 with no regressions.
-
-2014-10-27  Carlos O'Donell  <[email protected]>
-
-	* wordexp-test.c (__dso_handle): Add prototype.
-	(__register_atfork): Likewise.
-	(__app_register_atfork): New function.
-	(registered_forks): New global.
-	(register_fork): New function.
-	(test_case): Add 3 new tests for WRDE_CMDSUB.
-	(main): Call __app_register_atfork.
-	(testit): If WRDE_NOCMD set registered_forks to zero, run test, and
-	if fork count is non-zero fail the test.
-	* posix/wordexp.c (parse_arith): Return WRDE_NOCMD if WRDE_NOCMD flag
-	is set and parsing '`'. 
-	(parse_comm): Return WRDE_NOCMD if WRDE_NOCMD flag is set.
-	(parse_backtick): Return WRDE_NOCMD if WRDE_NOCMD flag is set and
-	parsing '`'.
-
-diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c
-index 4957006..5ce2a1b 100644
---- a/posix/wordexp-test.c
-+++ b/posix/wordexp-test.c
-@@ -27,6 +27,25 @@
- 
- #define IFS " \n\t"
- 
-+extern void *__dso_handle __attribute__ ((__weak__, __visibility__ ("hidden")));
-+extern int __register_atfork (void (*) (void), void (*) (void), void (*) (void), void *);
-+
-+static int __app_register_atfork (void (*prepare) (void), void (*parent) (void), void (*child) (void))
-+{
-+  return __register_atfork (prepare, parent, child,
-+			    &__dso_handle == NULL ? NULL : __dso_handle);
-+}
-+
-+/* Number of forks seen.  */
-+static int registered_forks;
-+
-+/* For each fork increment the fork count.  */
-+static void
-+register_fork (void)
-+{
-+  registered_forks++;
-+}
-+
- struct test_case_struct
- {
-   int retval;
-@@ -206,6 +225,12 @@ struct test_case_struct
-     { WRDE_SYNTAX, NULL, "$((2+))", 0, 0, { NULL, }, IFS },
-     { WRDE_SYNTAX, NULL, "`", 0, 0, { NULL, }, IFS },
-     { WRDE_SYNTAX, NULL, "$((010+4+))", 0, 0, { NULL }, IFS },
-+    /* Test for CVE-2014-7817. We test 3 combinations of command
-+       substitution inside an arithmetic expression to make sure that
-+       no commands are executed and error is returned.  */
-+    { WRDE_CMDSUB, NULL, "$((`echo 1`))", WRDE_NOCMD, 0, { NULL, }, IFS },
-+    { WRDE_CMDSUB, NULL, "$((1+`echo 1`))", WRDE_NOCMD, 0, { NULL, }, IFS },
-+    { WRDE_CMDSUB, NULL, "$((1+$((`echo 1`))))", WRDE_NOCMD, 0, { NULL, }, IFS },
- 
-     { -1, NULL, NULL, 0, 0, { NULL, }, IFS },
-   };
-@@ -258,6 +283,15 @@ main (int argc, char *argv[])
- 	  return -1;
-     }
- 
-+  /* If we are not allowed to do command substitution, we install
-+     fork handlers to verify that no forks happened.  No forks should
-+     happen at all if command substitution is disabled.  */
-+  if (__app_register_atfork (register_fork, NULL, NULL) != 0)
-+    {
-+      printf ("Failed to register fork handler.\n");
-+      return -1;
-+    }
-+
-   for (test = 0; test_case[test].retval != -1; test++)
-     if (testit (&test_case[test]))
-       ++fail;
-@@ -367,6 +401,9 @@ testit (struct test_case_struct *tc)
- 
-   printf ("Test %d (%s): ", ++tests, tc->words);
- 
-+  if (tc->flags & WRDE_NOCMD)
-+    registered_forks = 0;
-+
-   if (tc->flags & WRDE_APPEND)
-     {
-       /* initial wordexp() call, to be appended to */
-@@ -378,6 +415,13 @@ testit (struct test_case_struct *tc)
-     }
-   retval = wordexp (tc->words, &we, tc->flags);
- 
-+  if ((tc->flags & WRDE_NOCMD)
-+      && (registered_forks > 0))
-+    {
-+      printf ("FAILED fork called for WRDE_NOCMD\n");
-+      return 1;
-+    }
-+
-   if (tc->flags & WRDE_DOOFFS)
-       start_offs = sav_we.we_offs;
- 
-diff --git a/posix/wordexp.c b/posix/wordexp.c
-index b6b65dd..d6a158f 100644
---- a/posix/wordexp.c
-+++ b/posix/wordexp.c
-@@ -693,6 +693,12 @@ parse_arith (char **word, size_t *word_length, size_t *max_length,
- 	  break;
- 
- 	case '`':
-+	   if (flags & WRDE_NOCMD)
-+	     {
-+	       free (expr);
-+	       return WRDE_NOCMD;
-+	     }
-+
- 	  (*offset)++;
- 	  error = parse_backtick (&expr, &expr_length, &expr_maxlen,
- 				  words, offset, flags, NULL, NULL, NULL);
-@@ -1144,6 +1150,10 @@ parse_comm (char **word, size_t *word_length, size_t *max_length,
-   size_t comm_maxlen;
-   char *comm = w_newword (&comm_length, &comm_maxlen);
- 
-+  /* Do nothing if command substitution should not succeed.  */
-+  if (flags & WRDE_NOCMD)
-+    return WRDE_CMDSUB;
-+
-   for (; words[*offset]; ++(*offset))
-     {
-       switch (words[*offset])
-@@ -2121,6 +2131,9 @@ parse_backtick (char **word, size_t *word_length, size_t *max_length,
-       switch (words[*offset])
- 	{
- 	case '`':
-+	  if (flags & WRDE_NOCMD)
-+	    return WRDE_NOCMD;
-+
- 	  /* Go -- give the script to the shell */
- 	  error = exec_comm (comm, word, word_length, max_length, flags,
- 			     pwordexp, ifs, ifs_white);
package/glibc/2.19/0002-CVE-2014-6040.patch deleted +0 -141

141 lines not on this page · raw message

package/glibc/2.19/0003-CVE-2014-9402.patch deleted +0 -24
deleted file mode 100644
index d6d753e..0000000
@@ -1,24 +0,0 @@
-Fix CVE-2014-9402 - denial of service in getnetbyname function.
-Backport from https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=11e3417af6e354f1942c68a271ae51e892b2814d
-See https://bugzilla.redhat.com/show_bug.cgi?id=1175369
-
-Signed-off-by: Gustavo Zacarias <[email protected]>
-
-diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c
-index 0a77c8b..08cf0a6 100644
---- a/resolv/nss_dns/dns-network.c
-+++ b/resolv/nss_dns/dns-network.c
-@@ -398,8 +398,8 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result,
- 
- 	case BYNAME:
- 	  {
--	    char **ap = result->n_aliases++;
--	    while (*ap != NULL)
-+	    char **ap;
-+	    for (ap = result->n_aliases; *ap != NULL; ++ap)
- 	      {
- 		/* Check each alias name for being of the forms:
- 		   4.3.2.1.in-addr.arpa		= net 1.2.3.4
--- 
-1.7.1
-
package/glibc/Config.in +0 -3
index 890d007..1cf2f56 100644
@@ -32,9 +32,6 @@ choice
 	prompt "glibc version"
 	default BR2_GLIBC_VERSION_2_20
 
-config BR2_GLIBC_VERSION_2_19
-	bool "2.19"
-
 config BR2_GLIBC_VERSION_2_20
 	bool "2.20"
 
package/glibc/glibc.hash +0 -1
index f194de4..525a5ed 100644
@@ -4,6 +4,5 @@ md5	b395b021422a027d89884992e91734fc	eglibc-2.18-svnr23787.tar.bz2
 sha1	224d9e655e8f0ad04ffde47b97a11c64e2255b56	eglibc-2.18-svnr23787.tar.bz2
 md5	197836c2ba42fb146e971222647198dd	eglibc-2.19-svnr25243.tar.bz2
 sha1	8013c1935b46fd50d2d1fbfad3b0af362b75fb28	eglibc-2.19-svnr25243.tar.bz2
-sha256	2d3997f588401ea095a0b27227b1d50cdfdd416236f6567b564549d3b46ea2a2	glibc-2.19.tar.xz
 sha256	f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5	glibc-2.20.tar.xz
 sha256  aeeb362437965a5d3f40b151094ca79def04a115bd363fdd4a9a0c69482923b8  glibc-2.21.tar.xz
Signature · 1 line
1.7.1
#14 lore raw

PATCH 3/3 glibc: remove version 2.19

On 2015-02-08 15:07 +0000, Vicente Olivert Riera spake thusly:

Quoted 1 line

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#15 lore raw

cover glibc: bump version to 2.21

In reply to Vicente Olivert Riera
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

- Add version 2.21
- Add a hash value for it
- Set version 2.20 as default
- Remove version 2.19

Vicente Olivert Riera (3):
glibc: add version 2.21
glibc: set version 2.20 as default
glibc: remove version 2.19

Committed series to next, thanks!

Signature · 1 line
Bye, Peter Korsgaard