All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mittal, Anuj" <anuj.mittal@intel.com>
To: "vanusuri@mvista.com" <vanusuri@mvista.com>,
	"openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: Re: [oe] [meta-oe][kirkstone][PATCH v3 1/4] libssh: upgrade 0.8.9 -> 0.10.4
Date: Mon, 8 Jan 2024 02:14:36 +0000	[thread overview]
Message-ID: <422964d0680ba081bec487ebb01ac7d516bd3b1c.camel@intel.com> (raw)
In-Reply-To: <20231220085438.97520-1-vanusuri@mvista.com>

On Wed, 2023-12-20 at 14:24 +0530, Vijay Anusuri via
lists.openembedded.org wrote:
> From: Vijay Anusuri <vanusuri@mvista.com>
> 
> ChangeLog:
> https://git.libssh.org/projects/libssh.git/tree/CHANGELOG?h=libssh-0.10.4

I don't think this is allowed as per stable branch policy unless this
is a bug fix only upgrade.

Thanks,

Anuj

> 
> Drop CVE-2020-16135.patch
> 
> Ref:
> https://git.openembedded.org/meta-openembedded-contrib/commit/?h=stable/nanbield-nut&id=4b7e4341327e867208bfc3d8ba1954af66641e60
> 
> Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
> ---
>  .../libssh/libssh/CVE-2020-16135.patch        | 44 -----------------
> --
>  .../{libssh_0.8.9.bb => libssh_0.10.4.bb}     | 16 ++-----
>  2 files changed, 3 insertions(+), 57 deletions(-)
>  delete mode 100644 meta-oe/recipes-support/libssh/libssh/CVE-2020-
> 16135.patch
>  rename meta-oe/recipes-support/libssh/{libssh_0.8.9.bb =>
> libssh_0.10.4.bb} (62%)
> 
> diff --git a/meta-oe/recipes-support/libssh/libssh/CVE-2020-
> 16135.patch b/meta-oe/recipes-support/libssh/libssh/CVE-2020-
> 16135.patch
> deleted file mode 100644
> index 63b78688d..000000000
> --- a/meta-oe/recipes-support/libssh/libssh/CVE-2020-16135.patch
> +++ /dev/null
> @@ -1,44 +0,0 @@
> -From 0a9268a60f2d3748ca69bde5651f20e72761058c Mon Sep 17 00:00:00
> 2001
> -From: Andreas Schneider <asn@cryptomilk.org>
> -Date: Wed, 3 Jun 2020 10:04:09 +0200
> -Subject: CVE-2020-16135: Add missing NULL check for ssh_buffer_new()
> -
> -Add a missing NULL check for the pointer returned by
> ssh_buffer_new() in
> -sftpserver.c.
> -
> -Thanks to Ramin Farajpour Cami for spotting this.
> -
> -Fixes T232
> -
> -Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
> -Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
> -Reviewed-by: Jakub Jelen <jjelen@redhat.com>
> -(cherry picked from commit 533d881b0f4b24c72b35ecc97fa35d295d063e53)
> -
> -Upstream-Status: Backport
> [https://git.libssh.org/projects/libssh.git/patch/?id=0a9268a60f2d374
> 8ca69bde5651f20e72761058c]
> -CVE: CVE-2020-16135
> -Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
> ----
> - src/sftpserver.c | 6 ++++++
> - 1 file changed, 6 insertions(+)
> -
> -diff --git a/src/sftpserver.c b/src/sftpserver.c
> -index 1717aa417..1af8a0e76 100644
> ---- a/src/sftpserver.c
> -+++ b/src/sftpserver.c
> -@@ -64,6 +64,12 @@ sftp_client_message
> sftp_get_client_message(sftp_session sftp) {
> - 
> -   /* take a copy of the whole packet */
> -   msg->complete_message = ssh_buffer_new();
> -+  if (msg->complete_message == NULL) {
> -+      ssh_set_error_oom(session);
> -+      sftp_client_message_free(msg);
> -+      return NULL;
> -+  }
> -+
> -   ssh_buffer_add_data(msg->complete_message,
> -                       ssh_buffer_get(payload),
> -                       ssh_buffer_get_len(payload));
> --- 
> -2.25.1
> -
> diff --git a/meta-oe/recipes-support/libssh/libssh_0.8.9.bb b/meta-
> oe/recipes-support/libssh/libssh_0.10.4.bb
> similarity index 62%
> rename from meta-oe/recipes-support/libssh/libssh_0.8.9.bb
> rename to meta-oe/recipes-support/libssh/libssh_0.10.4.bb
> index 061f13912..3a57a728a 100644
> --- a/meta-oe/recipes-support/libssh/libssh_0.8.9.bb
> +++ b/meta-oe/recipes-support/libssh/libssh_0.10.4.bb
> @@ -6,10 +6,8 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=dabb4958b830e5df11d2b0ed8ea255a0"
>  
>  DEPENDS = "zlib openssl"
>  
> -SRC_URI =
> "git://git.libssh.org/projects/libssh.git;protocol=https;branch=stabl
> e-0.8 \
> -           file://CVE-2020-16135.patch \
> -          "
> -SRCREV = "04685a74df9ce1db1bc116a83a0da78b4f4fa1f8"
> +SRC_URI =
> "git://git.libssh.org/projects/libssh.git;protocol=https;branch=stabl
> e-0.10"
> +SRCREV = "e8322817a9e5aaef0698d779ddd467a209a85d85"
>  
>  S = "${WORKDIR}/git"
>  
> @@ -25,15 +23,7 @@ EXTRA_OECMAKE = " \
>      -DWITH_PCAP=1 \
>      -DWITH_SFTP=1 \
>      -DWITH_ZLIB=1 \
> -    -DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
> +    -DWITH_EXAMPLES=0 \
>      "
>  
> -do_configure:prepend () {
> -    # Disable building of examples
> -    sed -i -e '/add_subdirectory(examples)/s/^/#DONOTWANT/'
> ${S}/CMakeLists.txt \
> -        || bbfatal "Failed to disable examples"
> -}
> -
> -TOOLCHAIN = "gcc"
> -
>  BBCLASSEXTEND = "native nativesdk"
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#107650):
> https://lists.openembedded.org/g/openembedded-devel/message/107650
> Mute This Topic: https://lists.openembedded.org/mt/103278127/3616702
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-devel/unsub [
> anuj.mittal@intel.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


  parent reply	other threads:[~2024-01-08  2:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20  8:54 [meta-oe][kirkstone][PATCH v3 1/4] libssh: upgrade 0.8.9 -> 0.10.4 vanusuri
2023-12-20  8:54 ` [meta-oe][kirkstone][PATCH v3 2/4] libssh: add ptest vanusuri
2023-12-20  8:54 ` [meta-oe][kirkstone][PATCH v3 3/4] libssh: Fix build with clang16 vanusuri
2023-12-20  8:54 ` [meta-oe][kirkstone][PATCH v3 4/4] libssh: upgrade 0.10.4 -> 0.10.5 vanusuri
     [not found] ` <17A27E534D74AE07.24485@lists.openembedded.org>
2024-01-08  2:03   ` [oe] " Vijay Anusuri
2024-01-08  2:14 ` Mittal, Anuj [this message]
2024-01-08  2:40   ` [oe] [meta-oe][kirkstone][PATCH v3 1/4] libssh: upgrade 0.8.9 -> 0.10.4 Vijay Anusuri
2024-01-08  3:06     ` Mittal, Anuj
2024-01-08  3:10       ` Vijay Anusuri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=422964d0680ba081bec487ebb01ac7d516bd3b1c.camel@intel.com \
    --to=anuj.mittal@intel.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=vanusuri@mvista.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.