Skip to contentSkip to conversation

: readline fixes

PATCH In review Petter Mabäcker 1 participant 5 messages Nov 24, 2015

lore
Share & tools
lore
#0 lore raw

cover : readline fixes

The following changes since commit 1b25a70991589ed1f123015c16ee4806c46e3199:

yocto-project-qs, ref-manual, poky.ent: CentOS Package updates (2015-11-18 16:42:22 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/bug8451
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug8451

Petter Mabäcker (2):
readline: prepare for readline6.3 upstream patches
readline: apply missing upstream patches

 .../readline/{files => readline-6.3}/norpath.patch |  0
 .../readline-6.3/readline-cve-2014-2524.patch      | 43 ----------------------
 .../readline-6.3/readline-dispatch-multikey.patch  | 32 ----------------
 meta/recipes-core/readline/readline.inc            |  5 +--
 meta/recipes-core/readline/readline_6.3.bb         | 30 ++++++++++++++-
 5 files changed, 29 insertions(+), 81 deletions(-)
 rename meta/recipes-core/readline/{files => readline-6.3}/norpath.patch (100%)
 delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-cve-2014-2524.patch
 delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-dispatch-multikey.patch
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 readline: apply missing upstream patches

In reply to Petter Mabäcker

Some readline-6.3 upstream patches was missing. Also ensure that the upstream patches are applied in the same way as in readline-5.2.

Remove 'readline-dispatch-multikey.patch' and 'readline-cve-2014-2524.patch' since they are already included in upstream patches 'readline63-002' and 'readline63-003'.

[YOCTO #8451]

---
 .../readline-6.3/readline-cve-2014-2524.patch      | 43 ----------------------
 .../readline-6.3/readline-dispatch-multikey.patch  | 32 ----------------
 meta/recipes-core/readline/readline_6.3.bb         | 31 ++++++++++++++--
 3 files changed, 27 insertions(+), 79 deletions(-)
 delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-cve-2014-2524.patch
 delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-dispatch-multikey.patch
meta/recipes-core/readline/readline-6.3/readline-cve-2014-2524.patch deleted +0 -43
deleted file mode 100644
index 98a9d81..0000000
@@ -1,43 +0,0 @@
-readline: Security Advisory - readline - CVE-2014-2524
-
-Upstream-Status: Backport
-
-Signed-off-by: Yue Tao <[email protected]>
-
-			   READLINE PATCH REPORT
-			   =====================
-
-Readline-Release: 6.3
-Patch-ID: readline63-003
-
-Bug-Reported-by:
-Bug-Reference-ID:
-Bug-Reference-URL:
-
-Bug-Description:
-
-There are debugging functions in the readline release that are theoretically
-exploitable as security problems.  They are not public functions, but have
-global linkage.
-
-Patch (apply with `patch -p0'):
-
-*** ../readline-6.3/util.c	2013-09-02 13:36:12.000000000 -0400
---- util.c	2014-03-20 10:25:53.000000000 -0400
-***************
-*** 477,480 ****
---- 479,483 ----
-  }
-  
-+ #if defined (DEBUG)
-  #if defined (USE_VARARGS)
-  static FILE *_rl_tracefp;
-***************
-*** 539,542 ****
---- 542,546 ----
-  }
-  #endif
-+ #endif /* DEBUG */
-  
-  
-
meta/recipes-core/readline/readline-6.3/readline-dispatch-multikey.patch deleted +0 -32
deleted file mode 100644
index 54d1ac6..0000000
@@ -1,32 +0,0 @@
-From 8ef852a5be72c75e17f2510bea52455f809b56ce Mon Sep 17 00:00:00 2001
-From: Chet Ramey <[email protected]>
-Date: Fri, 28 Mar 2014 14:07:42 -0400
-Subject: [PATCH 04/10] Readline-6.3 patch 2
-
-Fixes multi-key issue identified in this thread:
-http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00010.html
-
-Upstream-Status: Backport
-
-Signed-off-by: Saul Wold <[email protected]>
----
- readline.c | 3 ++-
- 1 files changed, 2 insertions(+), 1 deletions(-)
-
-diff --git a/readline.c b/readline.c
-index eb4eae3..abb29a0 100644
---- a/readline.c
-+++ b/readline.c
-@@ -744,7 +744,8 @@ _rl_dispatch_callback (cxt)
-     r = _rl_subseq_result (r, cxt->oldmap, cxt->okey, (cxt->flags & KSEQ_SUBSEQ));
- 
-   RL_CHECK_SIGNALS ();
--  if (r == 0)			/* success! */
-+  /* We only treat values < 0 specially to simulate recursion. */
-+  if (r >= 0 || (r == -1 && (cxt->flags & KSEQ_SUBSEQ) == 0))	/* success! or failure! */
-     {
-       _rl_keyseq_chain_dispose ();
-       RL_UNSETSTATE (RL_STATE_MULTIKEY);
--- 
-1.8.3.1
-
meta/recipes-core/readline/readline_6.3.bb +27 -4
index dbb9f0a..8ec7c4a 100644
@@ -1,11 +1,34 @@
 require readline.inc
 
-SRC_URI += "file://configure-fix.patch \
+SRC_URI += "${GNU_MIRROR}/readline/readline-6.3-patches/readline63-001;name=patch1;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-002;name=patch2;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-003;name=patch3;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-004;name=patch4;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-005;name=patch5;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-006;name=patch6;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-007;name=patch7;apply=yes;striplevel=0 \
+            ${GNU_MIRROR}/readline/readline-6.3-patches/readline63-008;name=patch8;apply=yes;striplevel=0 \
+            file://configure-fix.patch \
             file://config-dirent-symbols.patch \
-            file://norpath.patch \
-            file://readline-cve-2014-2524.patch;striplevel=0 \
-            file://readline-dispatch-multikey.patch"
+            file://norpath.patch"
 
 SRC_URI[archive.md5sum] = "33c8fb279e981274f485fd91da77e94a"
 SRC_URI[archive.sha256sum] = "56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43"
 
+SRC_URI[patch1.md5sum]    = "4343f5ea9b0f42447f102fb61576b398"
+SRC_URI[patch1.sha256sum] = "1a79bbb6eaee750e0d6f7f3d059b30a45fc54e8e388a8e05e9c3ae598590146f"
+SRC_URI[patch2.md5sum]    = "700295212f7e2978577feaee584afddb"
+SRC_URI[patch2.sha256sum] = "39e304c7a526888f9e112e733848215736fb7b9d540729b9e31f3347b7a1e0a5"
+SRC_URI[patch3.md5sum]    = "af4963862f5156fbf9111c2c6fa86ed7"
+SRC_URI[patch3.sha256sum] = "ec41bdd8b00fd884e847708513df41d51b1243cecb680189e31b7173d01ca52f"
+SRC_URI[patch4.md5sum]    = "11f9def89803a5052db3ba72394ce14f"
+SRC_URI[patch4.sha256sum] = "4547b906fb2570866c21887807de5dee19838a60a1afb66385b272155e4355cc"
+SRC_URI[patch5.md5sum]    = "93721c31cd225393f80cb3aadb165544"
+SRC_URI[patch5.sha256sum] = "877788f9228d1a9907a4bcfe3d6dd0439c08d728949458b41208d9bf9060274b"
+SRC_URI[patch6.md5sum]    = "71dc6ecce66d1489b96595f55d142a52"
+SRC_URI[patch6.sha256sum] = "5c237ab3c6c97c23cf52b2a118adc265b7fb411b57c93a5f7c221d50fafbe556"
+SRC_URI[patch7.md5sum]    = "062a08ed60679d3c4878710b3d595b65"
+SRC_URI[patch7.sha256sum] = "4d79b5a2adec3c2e8114cbd3d63c1771f7c6cf64035368624903d257014f5bea"
+SRC_URI[patch8.md5sum]    = "ee1c04072154826870848d8b218d7b04"
+SRC_URI[patch8.sha256sum] = "3bc093cf526ceac23eb80256b0ec87fa1735540d659742107b6284d635c43787"
+
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 readline: prepare for readline6.3 upstream patches

In reply to Petter Mabäcker

Upstream patches are always preferred to be applied first (before integration patches). In order to apply readline-6.3 specific upstream patches in a preferred order we need to apply the integration-patches at the end in the 6.3 specific recipe (this is already the case for readline-5.2).

Also take the oppertunity to move 'norpath.patch' to readline-6.3 dir since this patch is not shared between the 5.2 and 6.3 recipe.

[YOCTO #8451]

---
 meta/recipes-core/readline/{files => readline-6.3}/norpath.patch | 0
 meta/recipes-core/readline/readline.inc                          | 5 +----
 meta/recipes-core/readline/readline_6.3.bb                       | 5 ++++-
 3 files changed, 5 insertions(+), 5 deletions(-)
 rename meta/recipes-core/readline/{files => readline-6.3}/norpath.patch (100%)
meta/recipes-core/readline/readline-6.3/norpath.patch renamed from meta/recipes-core/readline/files/norpath.patch +0 -0
similarity index 100%
rename from meta/recipes-core/readline/files/norpath.patch
rename to meta/recipes-core/readline/readline-6.3/norpath.patch
meta/recipes-core/readline/readline.inc +1 -4
index 3f662c3..30892e1 100644
@@ -11,10 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 DEPENDS += "ncurses"
 
-SRC_URI = "${GNU_MIRROR}/readline/${BPN}-${PV}.tar.gz;name=archive \
-           file://configure-fix.patch \
-           file://config-dirent-symbols.patch \
-           file://norpath.patch"
+SRC_URI = "${GNU_MIRROR}/readline/${BPN}-${PV}.tar.gz;name=archive"
 
 inherit autotools texinfo
 
meta/recipes-core/readline/readline_6.3.bb +4 -1
index fc362ae..dbb9f0a 100644
@@ -1,6 +1,9 @@
 require readline.inc
 
-SRC_URI += "file://readline-cve-2014-2524.patch;striplevel=0 \
+SRC_URI += "file://configure-fix.patch \
+            file://config-dirent-symbols.patch \
+            file://norpath.patch \
+            file://readline-cve-2014-2524.patch;striplevel=0 \
             file://readline-dispatch-multikey.patch"
 
 SRC_URI[archive.md5sum] = "33c8fb279e981274f485fd91da77e94a"
Signature · 1 line
1.9.1
#3 lore raw
In reply to Petter Mabäcker

Hi all,

I can see that I missed the [OE-core] tag in this patch-serie... Please ignore this patchset and I will send up a proper one shortly.

BR Petter

Petter Mabäcker

Technux
<[email protected]>
www.technux.se

2015-11-24 10:50 skrev Petter
Mabäcker:

Quoted 1 line

The following changes since commit

1b25a70991589ed1f123015c16ee4806c46e3199:

Quoted 2 lines

yocto-project-qs,

ref-manual, poky.ent: CentOS Package updates (2015-11-18 16:42:22 +0000)

Quoted 4 lines

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/bug8451

Quoted 1 line

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug8451
[1]

Quoted 3 lines

Petter Mabäcker (2):
readline: prepare for readline6.3

upstream patches

Quoted 3 lines

readline: apply missing upstream patches

.../readline/{files => readline-6.3}/norpath.patch | 0

Quoted 1 line

.../readline-6.3/readline-cve-2014-2524.patch | 43
----------------------

Quoted 1 line

.../readline-6.3/readline-dispatch-multikey.patch | 32
----------------

Quoted 2 lines

meta/recipes-core/readline/readline.inc | 5 +--

meta/recipes-core/readline/readline_6.3.bb | 30 ++++++++++++++-

Quoted 1 line

5

files changed, 29 insertions(+), 81 deletions(-)

Quoted 1 line

rename

meta/recipes-core/readline/{files => readline-6.3}/norpath.patch (100%)

Quoted 1 line

delete mode 100644

meta/recipes-core/readline/readline-6.3/readline-cve-2014-2524.patch

Quoted 1 line

delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-dispatch-multikey.patch

Links:
------
[1]
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug8451

#4 lore raw

Hi again....

It seems it was the cc mail send-pull-request sent me
that fooled me (the tag was missing there)... But everyrhing seems to be in order so plz go ahead and review this serie after all =)

Sorry for
the confusion..

Petter Mabäcker

Technux
<[email protected]>
www.technux.se

2015-11-24 11:00 skrev Petter
Mabäcker:

Quoted 3 lines

Hi all,

I can see that I missed the [OE-core] tag in

this patch-serie... Please ignore this patchset and I will send up a proper one shortly.

Quoted 6 lines

BR Petter

Petter Mabäcker

Technux

<[email protected]>

Quoted 3 lines

www.technux.se

2015-11-24 10:50 skrev Petter

Mabäcker:

Quoted 2 lines
Quoted 2 lines

The following changes since commit

1b25a70991589ed1f123015c16ee4806c46e3199:

Quoted 2 lines
Quoted 2 lines

yocto-project-qs,

ref-manual, poky.ent: CentOS Package updates (2015-11-18 16:42:22 +0000)

Quoted 4 lines
Quoted 4 lines

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib petmab/bug8451

Quoted 1 line
Quoted 1 line

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug8451
[1]

Quoted 3 lines
Quoted 3 lines

Petter Mabäcker (2):
readline: prepare for readline6.3

upstream patches

Quoted 3 lines
Quoted 3 lines

readline: apply missing upstream patches

.../readline/{files => readline-6.3}/norpath.patch | 0

Quoted 1 line
Quoted 1 line

.../readline-6.3/readline-cve-2014-2524.patch | 43
----------------------

Quoted 1 line
Quoted 1 line

.../readline-6.3/readline-dispatch-multikey.patch | 32
----------------

Quoted 2 lines
Quoted 2 lines

meta/recipes-core/readline/readline.inc | 5 +--

meta/recipes-core/readline/readline_6.3.bb | 30 ++++++++++++++-

Quoted 1 line
Quoted 1 line

5

files changed, 29 insertions(+), 81 deletions(-)

Quoted 1 line
Quoted 1 line

rename

meta/recipes-core/readline/{files => readline-6.3}/norpath.patch (100%)

Quoted 1 line
Quoted 1 line

delete mode 100644

meta/recipes-core/readline/readline-6.3/readline-cve-2014-2524.patch

Quoted 1 line
Quoted 1 line

delete mode 100644 meta/recipes-core/readline/readline-6.3/readline-dispatch-multikey.patch

Links:
------
[1]
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=petmab/bug8451