Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66C40C433F5 for ; Thu, 16 Dec 2021 20:09:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 05FC3417CA; Thu, 16 Dec 2021 20:09:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L947tjSoOS-W; Thu, 16 Dec 2021 20:09:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 1F8F6417D3; Thu, 16 Dec 2021 20:09:32 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 39C931BF325 for ; Thu, 16 Dec 2021 20:09:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 35AA240465 for ; Thu, 16 Dec 2021 20:09:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=mind.be Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QrGICEbqUkO9 for ; Thu, 16 Dec 2021 20:09:30 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by smtp2.osuosl.org (Postfix) with ESMTPS id DE2D840B4E for ; Thu, 16 Dec 2021 20:09:29 +0000 (UTC) Received: by mail-ed1-x535.google.com with SMTP id z5so91771467edd.3 for ; Thu, 16 Dec 2021 12:09:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:cc:organization:in-reply-to :content-transfer-encoding; bh=6U3h8VOVll7tR1gz2lEIf7XV08lAxZjLKpTiKUxUeJg=; b=H2l7BjKsMnPw3oJ1DPCj/CLBXr45LPZ7vmCEyyARwfRvVsvzSZ2uNpdKGpqZ5XgiRf a1FJ90SNYkWmdu9IhMC+u2mY4W6DxWFQOs+G4tmf3bQT5PZp+T87SJL7ban5N2L3wiqj eBOrPASimVaBtYLfufr89Fp5NjhBjf8G+PRD7ib2+Nfg1kaB0KFSA9aDnSBx2AMUhZoX RpQAUKklNHXf92R5hshHUlhDw4gCJFTXOFP0LV96KTaOqMVL0aA8CzGlIW6Sk7mf63h1 SyRXHOXPp8kEogLzSvpuHXZlsHSh1xH65hHPQU7Zylvpvo9lNX5Pw31sM/+7Pj1Nfmiq LlZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:cc:organization:in-reply-to :content-transfer-encoding; bh=6U3h8VOVll7tR1gz2lEIf7XV08lAxZjLKpTiKUxUeJg=; b=8PBKV/4LrRMTeBq301hScdhx1Scc2ISMCXNmyQx7Zf1BJIreGX97I4JrjYgMcUyk1a 1caAIOFWCMmiFwR+sUNkULrl9WwvsEm0pCHY2f6X3gLOe8lleD75rWukZR0t7onir9Zt HLLs2ebVMCgdhKXEe4dkmZ0W09+fVamNlp+UwkYcSmH94yuyLtJqh/Ofwtfq1HH1CJz3 PNSN+G3/gwgOlQedisxDgTS4F23x5BimofSjhWveQO4e3aLlzsLc2CMuEUKPB+6solGB o9kB6wybMd6vnUQ/YRem45TceuMa19w1k3ItUrJpbB9t7iK22iBzThotHDCjyw0p7DeO Lx6g== X-Gm-Message-State: AOAM53243ayJdc4F/pWRbd22e7mvcK2p26UrS3fclmZiSxpwDemIA4+k e3Jw6g1nbhjbfrl2uFZE8jN+qQ== X-Google-Smtp-Source: ABdhPJyFTC1H2wzLD0xJwk0SHJiKxVBcysErffox55qQMfI+eBDVyfIX7u8Ov7tbtqsz2pDrB+nGcA== X-Received: by 2002:a50:fe8e:: with SMTP id d14mr22766159edt.51.1639685367481; Thu, 16 Dec 2021 12:09:27 -0800 (PST) Received: from ?IPV6:2a02:1811:3a7e:7b00:1400:24ea:cbca:e681? (ptr-9fplejn4os7m3x31ny9.18120a2.ip6.access.telenet.be. [2a02:1811:3a7e:7b00:1400:24ea:cbca:e681]) by smtp.gmail.com with ESMTPSA id e4sm2293696ejs.13.2021.12.16.12.09.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Dec 2021 12:09:27 -0800 (PST) Message-ID: <1fdffdf3-0711-adb7-a991-ced69ca90490@mind.be> Date: Thu, 16 Dec 2021 21:09:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-GB To: Fabrice Fontaine , buildroot@buildroot.org References: <20211216070925.123117-1-fontaine.fabrice@gmail.com> From: Arnout Vandecappelle Organization: Essensium/Mind In-Reply-To: <20211216070925.123117-1-fontaine.fabrice@gmail.com> Subject: Re: [Buildroot] [PATCH v3, 1/1] package/openblas: security bump to version 0.3.18 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" On 16/12/2021 08:09, Fabrice Fontaine wrote: > - Fix CVE-2021-4048: An out-of-bounds read flaw was found in the CLARRV, > DLARRV, SLARRV, and ZLARRV functions in lapack through version 3.10.0, > as also used in OpenBLAS before version 0.3.18. Specially crafted > inputs passed to these functions could cause an application using > lapack to crash or possibly disclose portions of its memory. I accidentally applied v2... Peter, could you make sure to take this patch for stable instead of cherry-picking? I'll leave it open in patchwork. Regards, Arnout > - Drop first and second patches (already in version) > > https://github.com/xianyi/OpenBLAS/blob/v0.3.18/Changelog.txt > > Signed-off-by: Fabrice Fontaine > --- > Changes v2 -> v3: > - Tag as a security bump > > Changes v1 -> v2: > - Fix patch renumbering > > ...sider-Os-when-determining-LAPACK_NO.patch} | 0 > .../0001-fix-gfortran-detection.patch | 30 ------------ > ...port-for-passing-FFLAGS-on-the-make-.patch | 47 ------------------- > ...on-t-specify-optimization-level-bui.patch} | 0 > package/openblas/openblas.hash | 2 +- > package/openblas/openblas.mk | 4 +- > 6 files changed, 3 insertions(+), 80 deletions(-) > rename package/openblas/{0003-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch => 0001-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch} (100%) > delete mode 100644 package/openblas/0001-fix-gfortran-detection.patch > delete mode 100644 package/openblas/0002-Makefile-fix-support-for-passing-FFLAGS-on-the-make-.patch > rename package/openblas/{0004-Makefile.system-don-t-specify-optimization-level-bui.patch => 0002-Makefile.system-don-t-specify-optimization-level-bui.patch} (100%) > > diff --git a/package/openblas/0003-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch b/package/openblas/0001-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch > similarity index 100% > rename from package/openblas/0003-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch > rename to package/openblas/0001-Makefile-also-consider-Os-when-determining-LAPACK_NO.patch > diff --git a/package/openblas/0001-fix-gfortran-detection.patch b/package/openblas/0001-fix-gfortran-detection.patch > deleted file mode 100644 > index 1fecdac3e5..0000000000 > --- a/package/openblas/0001-fix-gfortran-detection.patch > +++ /dev/null > @@ -1,30 +0,0 @@ > -From ece3ce581e3ec530eaccfe7f284c52e115ec7aa9 Mon Sep 17 00:00:00 2001 > -From: Martin Kroeker > -Date: Wed, 10 Feb 2021 14:22:59 +0100 > -Subject: [PATCH] Strip parenthesized (pkgversion) data from GCC version string > - to avoid misinterpretation > - > -See https://github.com/xianyi/OpenBLAS/issues/3099 for details. > - > -Upstream-status: backport > - > -[for import into Buildroot] > -Signed-off-by: Thomas De Schampheleire > - > - > ---- > - f_check | 1 + > - 1 file changed, 1 insertion(+) > - > -diff --git a/f_check b/f_check > -index e9aca4ff9..ffe9c6b46 100644 > ---- a/f_check > -+++ b/f_check > -@@ -75,6 +75,7 @@ if ($compiler eq "") { > - > - } elsif ($data =~ /GNU/ || $data =~ /GCC/ ) { > - > -+ $data =~ s/\(+.*?\)+//g; > - $data =~ /(\d+)\.(\d+).(\d+)/; > - $major = $1; > - $minor = $2; > diff --git a/package/openblas/0002-Makefile-fix-support-for-passing-FFLAGS-on-the-make-.patch b/package/openblas/0002-Makefile-fix-support-for-passing-FFLAGS-on-the-make-.patch > deleted file mode 100644 > index 72b387b93e..0000000000 > --- a/package/openblas/0002-Makefile-fix-support-for-passing-FFLAGS-on-the-make-.patch > +++ /dev/null > @@ -1,47 +0,0 @@ > -From 4d3829fa52240c2b7e48770ab19584db33ba7863 Mon Sep 17 00:00:00 2001 > -From: Thomas De Schampheleire > -Date: Fri, 5 Mar 2021 11:17:59 +0100 > -Subject: [PATCH] Makefile: fix support for passing FFLAGS on the make > - command line > - > -When openblas is built while passing FFLAGS on the make command line, the > -compilation of lapack objects will not contain the flags specified in > -Makefile but _only_ those passed in FFLAGS. > - > -This can lead to build failure, e.g. because -fPIC is not passed to the > -compilation of most lapack objects, but is given to the link command: > - > -.../buildroot/output/host/bin/x86_64-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DMAX_PARALLEL_NUMBER=1 -DVERSION=\"0.3.9\" -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I.. -shared -o ../libopenblas_nehalem-r0.3.9.so \ > --Wl,--whole-archive ../libopenblas_nehalem-r0.3.9.a -Wl,--no-whole-archive \ > --Wl,-soname,libopenblas.so.0 -lm -lgfortran -lm -lgfortran > -.../buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/9.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: ../libopenblas_nehalem-r0.3.9.a(sbdsvdx.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC > - > -In the initial support for this principle, added in commit > -d0e731e8b825e7a554f245aa8f1118dcec9e2728, the flags specified in the > -makefile were appended to the flags specified on the command-line. > - > -Fix this situation by using 'override' for 'FFLAGS' in > -lapack-netlib/make.inc. The flags passed on the command-line are already > -part of the LAPACK_FFLAGS variable, so no '+=' is needed here. > - > -Signed-off-by: Thomas De Schampheleire > ---- > - Makefile | 2 +- > - 1 file changed, 1 insertion(+), 1 deletion(-) > - > -diff --git a/Makefile b/Makefile > -index fc5fe3f5..8ae1ff47 100644 > ---- a/Makefile > -+++ b/Makefile > -@@ -248,7 +248,7 @@ prof_lapack : lapack_prebuild > - lapack_prebuild : > - ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN))) > - -@echo "FC = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc > -- -@echo "FFLAGS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc > -+ -@echo "override FFLAGS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc > - -@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc > - -@echo "FFLAGS_NOOPT = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc > - -@echo "PNOOPT = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc > --- > -2.26.2 > - > diff --git a/package/openblas/0004-Makefile.system-don-t-specify-optimization-level-bui.patch b/package/openblas/0002-Makefile.system-don-t-specify-optimization-level-bui.patch > similarity index 100% > rename from package/openblas/0004-Makefile.system-don-t-specify-optimization-level-bui.patch > rename to package/openblas/0002-Makefile.system-don-t-specify-optimization-level-bui.patch > diff --git a/package/openblas/openblas.hash b/package/openblas/openblas.hash > index c58def9d5d..a1e35f4fc4 100644 > --- a/package/openblas/openblas.hash > +++ b/package/openblas/openblas.hash > @@ -1,3 +1,3 @@ > # Locally calculated > -sha256 17d4677264dfbc4433e97076220adc79b050e4f8a083ea3f853a53af253bc380 openblas-0.3.9.tar.gz > +sha256 1632c1e8cca62d8bed064b37747e331a1796fc46f688626337362bf0d16aeadb openblas-0.3.18.tar.gz > sha256 190b5a9c8d9723fe958ad33916bd7346d96fab3c5ea90832bb02d854f620fcff LICENSE > diff --git a/package/openblas/openblas.mk b/package/openblas/openblas.mk > index 60b9d9b15b..4d506fa618 100644 > --- a/package/openblas/openblas.mk > +++ b/package/openblas/openblas.mk > @@ -4,8 +4,8 @@ > # > ################################################################################ > > -OPENBLAS_VERSION = 0.3.9 > -OPENBLAS_SITE = $(call github,xianyi,OpenBLAS,v$(OPENBLAS_VERSION)) > +OPENBLAS_VERSION = 0.3.18 > +OPENBLAS_SITE = https://github.com/xianyi/OpenBLAS/releases/download/v$(OPENBLAS_VERSION) > OPENBLAS_LICENSE = BSD-3-Clause > OPENBLAS_LICENSE_FILES = LICENSE > OPENBLAS_INSTALL_STAGING = YES > _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot