From patchwork Fri Jun 9 03:41:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 103439 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp25958qgd; Thu, 8 Jun 2017 20:43:18 -0700 (PDT) X-Received: by 10.84.178.101 with SMTP id y92mr38192425plb.116.1496979798295; Thu, 08 Jun 2017 20:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496979798; cv=none; d=google.com; s=arc-20160816; b=RMemj8qv1mQn+6kjuO+/n4uTbSqHrttosNxoNhmBrv6yAxxZhccAKZmIyprCT4/WiD QTuOQZrg1KPx3zmnFSEdYcwGfnmN4ZULHO/zncCCI7VmnSkZjos0CxRsVMn/HmdAFJyq hyDYXo2QaXlSQ1FcHjF5VPhQCT6bqmOw5saOewZVPVmlX0O7ujrcQTjykI9H/GkB2IWW 5OO95XwLkxNZlEO6SmNkzgOTrSDDCo47MMLV9GeowB9qXCoj3uoo14dM08cojkgRH6cM u0FRFiKwSMtw5k+0JjKPXhRTQ5FkFBnwhbUURjr3f2qIMzCWn26P2BG7LsQeyhsfGq61 eWfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=yj3bLGr1kZndntgAj3LiCP0zJMj8yO1v2ooAFNWujRA=; b=slW76O9h/Klb16LyS5SWyMwLSuGSLknjO5zjw1JUq+IP7/E0ElE8fJDUKYgRh1r7i9 HI+lrJ8slQc5cFQufWqCdz0qDBrt77LEh7ntBbm2bpNvg0M/9An0T/lUm8qlVxysakLF 4uG4bEJVk8g7XugBslz7L7Woy6XTzSFt2O2sD0QjSCy+oa73ykkHAGdugIyQnVBf6tfq /d/z1XKZ9HxcRAU4y/eNzAugaKoKWGDUVA0jTFUSBvPBOSoQF/YV6Xxito2zHkJlRyWX wfmYzqNklbUi5mcIscg1P8Az0lY9ue1VO5zJZffwnYHj9rrWRoo/QzlLq1TQvIInjOo0 yBMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id u3si2215986pgc.192.2017.06.08.20.43.17; Thu, 08 Jun 2017 20:43:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6C15178279; Fri, 9 Jun 2017 03:43:15 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by mail.openembedded.org (Postfix) with ESMTP id 7683478273 for ; Fri, 9 Jun 2017 03:41:45 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id v14so6456618pgn.1 for ; Thu, 08 Jun 2017 20:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pYpP+1spuccw0hK4Ef6GUam8PMFMSPWD14OnQFdvYPc=; b=vghv7aeniwIkBrlM4ZbTtt4HWuse3oqB2fq/xGVYE5+UGgx1wbol8iOuz0aYTcZR0A Z41HLgEctBEaIwUXuf1fen3YdGp2SqQ1306jMtdt4GZp7BnLVVxlC1UJJWUndQrRCOI1 jB6klaYzMLv+p+MGRzEwydISlXI+Gww9W7HFGIdIYiBs/wpxKO4IamPvxIfs7Qo5G1Rc QFQzPAthdtb7T/d3OKX5g60au9N0sNnI/DycL8GaaJDDMdx+RtFg4ALJd2IqX4rikHNO kjYrqmjcMeytXQeZQ8yBXrjllY9gM4DaNvFKok+vfwixsNwknJGIaUiD08oJ/k96Bnp2 moQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pYpP+1spuccw0hK4Ef6GUam8PMFMSPWD14OnQFdvYPc=; b=fnDCY95weAzdhWgU/+eSXi8NUgbXsU4mZeozXYijt0OvB3xeEAvYOyWg+UcVbdfbt9 yDQNc8jsw/31LEQuL3cpijm0cPl1ZLFt7HsaJ+D0q4ehDLBi8Goz9PeS8aaSp7tyWsnu Q2WYdZ650lKF4npKOlddWMGdxGzzc8JmLC6jPa+2NUcQPlXzJiY30uOZcztJrrN4ClKt WH5Y8Df0nY2VOR01rsky6hulTM9S2cLGNlX7bIXOq7JRXqr57SEl5jlX86SyloxbRr2g Ms/cflAAo4X8H2J1EajdON5GMKCanOy4ckwgCUJNTZ+00noKalVQcEmHRZNoDaVFz/B8 HJWA== X-Gm-Message-State: AODbwcDoOchryyqSSE8eTyVhTKSgdrDcEJ9A3sx2OYSYu822z1PkJqra Rbu12sKGVid7LfTA X-Received: by 10.101.76.201 with SMTP id n9mr42033918pgt.40.1496979706562; Thu, 08 Jun 2017 20:41:46 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::264a]) by smtp.gmail.com with ESMTPSA id z64sm12587357pfd.20.2017.06.08.20.41.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 20:41:45 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 8 Jun 2017 20:41:33 -0700 Message-Id: X-Mailer: git-send-email 2.13.1 In-Reply-To: References: Subject: [OE-core] [PATCH 1/3] testimage.bbclass: Correct the comment to state right dir for test cases X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta/classes/testimage.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 1185593a1b..589ef5db93 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -13,7 +13,7 @@ # You can set (or append to) TEST_SUITES in local.conf to select the tests # which you want to run for your target. -# The test names are the module names in meta/lib/oeqa/runtime. +# The test names are the module names in meta/lib/oeqa/runtime/cases. # Each name in TEST_SUITES represents a required test for the image. (no skipping allowed) # Appending "auto" means that it will try to run all tests that are suitable for the image (each test decides that on it's own). # Note that order in TEST_SUITES is relevant: tests are run in an order such that From patchwork Fri Jun 9 03:41:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 103440 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp25969qgd; Thu, 8 Jun 2017 20:43:22 -0700 (PDT) X-Received: by 10.98.139.66 with SMTP id j63mr11976108pfe.183.1496979802624; Thu, 08 Jun 2017 20:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496979802; cv=none; d=google.com; s=arc-20160816; b=at6o1qpXp3x2NzHF3K8UaIr+fQyDMHmjYsPc8sEe1mnDLB9mfgURjpgjzMZtdRWE5E p00qJcVDTqxxsXH4txs05yVu3Z74z8bOUHQU4c6PmTyxfO1UnRI5g0vsVa1OdxwE/Fv5 8VqozhEPvvpcYOIxka2gjoek4cBCDKbe3eStYBaPAJRyMMMBH2kVS4maVEVast4JU2jB g+zT/wva0PhXN31Nx4UsZWvxH1WbQ0EevtwX+niPSZB1FLH40dtlOq8NoamWXz0mQ6C0 CMfSW6Zr9WUH08W+PInwDC0KoVSiN/1ogVeCUOYe0wolPHfE8cMeUs6Uft/5Zm5oIUpg UsVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=tAXKydQFW/69m7l09mnQ7WzAmJO68UvSBTVLo3RhXKQ=; b=tt/BcmpYfA27RDny2koBJylFKG0U5hxD1sfmY2lU4UP2L6/ymYqLKP6ukvJ2wlWBLM Y380XQka/yydcl9PeYc8bNy0FTOgqsig8nPjfRSKuNVIEOnqSLFpBZSG+lhrKN4b0Fz8 wFotlSWxV/61/TelgjCIHtxUowHInZNreHZ9aLGQLKLk5z0ooZtwVAtqvvYqEpV42Ky6 zHtySxzSAfXxqQktLfGK/8PJKDabFCnycBgbUNvp2vlB3zEfra4omrhkyhBONr9LR2gz 5vaAOzVahJ0wU3+9o1aKKGoFap2gUlg45BH8eyYF8yiHLLJ1xWZL5ExFsjlR3K0tv4M4 Lmyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id l62si5955600pfk.80.2017.06.08.20.43.22; Thu, 08 Jun 2017 20:43:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5E55578285; Fri, 9 Jun 2017 03:43:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by mail.openembedded.org (Postfix) with ESMTP id 9DABC78267 for ; Fri, 9 Jun 2017 03:41:47 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id v14so6456671pgn.1 for ; Thu, 08 Jun 2017 20:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fF0Yz8Rhz17lha3vXPqyumuR5qGesiSbp/3ShpTAjZA=; b=LEeSuEyHbuahHoUYVBbUBJlZQHrnsnkEJ+Ppez6xrYeyZvNLUYV5tvMmDc1Os1bSga 8qTNyhti3mFgS72TmK+2OzXWqv5/jl/FkHo+53U5oH3ZvNEZ+kGOwF7Xhts7aOmEqeik IENdDpyPJq7U91jkuVswCHW4+lea1v2TrZK8DkEd/4CvHrqAdiqJWAonamYwfBwTlTae 1G0FGg0agXRuxnXFJImj0K97TP2yI5HWheI+vueIN9VO4+4x1rU/21BiJFFkCUG5eYxI ya2Nq7YAuvPYB0E7CvdTW7rpo7hRKDrs+/WyAA7ee+r9zaQEKgy6s2j9VYCULrcFNEoN uCzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fF0Yz8Rhz17lha3vXPqyumuR5qGesiSbp/3ShpTAjZA=; b=o78C/g/alFX+5gX2NgqKKnR/YEOGzZqc/Pq57mZ9tTknoSKv7/WoW/Fu8g3G1TQ+DP IepDw134v2D6TmPvDE2GM0qn5FiY86sHju1wdXFZw0nAmD6GbsgYXLTtyBXJVZ0IycQ/ j1ypk+80JlkRo5mU5w91bXZvE0lKHUg93rxPCIO7u+R+6rLvnS1qKRD+bencAfO1wK4z rJuibYAjv3YG77j6X22uzLbOzGTM81iXshaYWRHcAYYAJ0+4DVeSpoE8xGPw6IgJ0idF Rv5DcobWJtTc7FPrTKt2HKG0FFEO8l+Ka5/eZkSUqmJUZouaRw7eEaZroBaxPTUk5XVB B59w== X-Gm-Message-State: AODbwcBgJFgnBYPBOQN+dYT6BtnfSBFeRoAnvozOqLHmhxeJnX3WylcW 41F1arsqsGwHAVz2 X-Received: by 10.84.174.131 with SMTP id r3mr22802975plb.90.1496979708551; Thu, 08 Jun 2017 20:41:48 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::264a]) by smtp.gmail.com with ESMTPSA id z64sm12587357pfd.20.2017.06.08.20.41.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 20:41:47 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 8 Jun 2017 20:41:34 -0700 Message-Id: X-Mailer: git-send-email 2.13.1 In-Reply-To: References: Subject: [OE-core] [PATCH 2/3] pulseaudio: disable PIE flags when hardened flags are enabled X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Fixes WARNING: pulseaudio-10.0-r0 do_package_qa: QA Issue: ELF binary '/mnt/a/oe/build/tmp/work/i586-bec-linux-musl/pulseaudio/10.0-r0/packages-split/pulseaudio-server/usr/bin/pulseaudio' has relocations in .text [textrel] This also makes bitbake -c testimage core-image-sato (hardened) build to pass all tests Fixes AssertionError: 1 != 0 : Log: /mnt/a/oe/build/tmp/work/qemux86-bec-linux-musl/core-image-sato/1.0-r0/dmesg_output.log ----------------------- Central error: [ 20.726960] pulseaudio[729]: segfault at 80052b6c ip b771b4fc sp bfc97940 error 7 in libc.so[b76b6000+97000] Signed-off-by: Khem Raj --- meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb | 2 ++ 1 file changed, 2 insertions(+) -- 2.13.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb b/meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb index f3a85737fc..3ea35e592a 100644 --- a/meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb +++ b/meta/recipes-multimedia/pulseaudio/pulseaudio_10.0.bb @@ -8,6 +8,8 @@ SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/${BP}.tar.xz \ SRC_URI[md5sum] = "4950d2799bf55ab91f6b7f990b7f0971" SRC_URI[sha256sum] = "a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57" +SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" + do_compile_prepend() { mkdir -p ${S}/libltdl cp ${STAGING_LIBDIR}/libltdl* ${S}/libltdl From patchwork Fri Jun 9 03:41:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 103441 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp25985qgd; Thu, 8 Jun 2017 20:43:26 -0700 (PDT) X-Received: by 10.84.233.204 with SMTP id m12mr39237354pln.273.1496979806555; Thu, 08 Jun 2017 20:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496979806; cv=none; d=google.com; s=arc-20160816; b=hGB1yOsZ+/TwhpDF+hbt0zBpBRy4Wt+xMF5DN2h7Y4a+U0NBEscm+qxpFvlTnsmtwc a1IjU6db8zcTGmCA3wU89seAhn0NwFEgGDwDV8fr3CX+ITXw5hQH8T9GVtooLvyjjQv5 MGRny3ah+gU+hUwdl9tw50of+h81ydcmVwE7anFaaJ4PkCg+DMYq5kJxy4DBqSUp2Hyc QrCut6dgGGOKBo63WN3NDVGuCIaxXLcil2yJLP7AYvHx7KAUohI9c4rMfqj0jinbPs40 TAqKJmBuQYsei7eTbCf1JXr6ilheFe2WdY/6hsvuwvXxHGnAU2VvT1/0Mn28Ut5WFkU+ sDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :references:in-reply-to:mime-version:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=Ca3dit/kghSQhAfy6R6SnlcPzHo7e3HOFMJrP9dKFNQ=; b=CJ2w9+BIvrHf/xSryBTFkwvB+grDsPUnSBNiJwSqBvEYalLKeSJcU8+iNGEDPuS0Bl mfVS34Iqj4IjbXqUmxwG4D3jmPx6pIheb3nC5xejKN+XlyuIUhjs8v0+PlMECTQXEc2v qUp6lWnsh+TOjjI4NIM3rPEBDZ/pJqVI9cbc2Kgx5v6HvjRw+m1lr86kO8l3dXX+MvHi 51PaYl2h6qH+Ig78Jn0j/BFt+R+DD6YRPdkWduzlot/KxmNuADvPdjdi0ouJHtZaorNy H8MHSvhdtn/eqdurq9J2NDXQgYsJBElQa45GWhFiIqrY8dA7EkIy5mei24pemgaGz3n4 WpEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s65si5995433pgs.186.2017.06.08.20.43.26; Thu, 08 Jun 2017 20:43:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 60D207828D; Fri, 9 Jun 2017 03:43:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by mail.openembedded.org (Postfix) with ESMTP id 47F9378267 for ; Fri, 9 Jun 2017 03:41:49 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id f127so6450556pgc.2 for ; Thu, 08 Jun 2017 20:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version:in-reply-to :references:content-transfer-encoding; bh=5FMFRxdl++jGGcOwPBfQz9/BZgHAFuIJj6IZUJZwVNc=; b=cyZikBT0mw1BH1Nwe8+DrmsSSJ+miKvQExsVXm7EPXGUqTsg2vAMwFQUFdkLNiDwOf Ifo05xNA/nyK00HJpwNLHBcgzhUwXKrXKk1NjneuZ9+qckYVi9t2jltM4c13Lz0b3gUj zGD8ETruoNBYavGcODghhGm/987roR1MpuEExGR2OwWA1jKr7fpblqicMeQ9NuehD6UG OUPiL0KZfk2AwLCYG2bjih5a0dnPK9dLNcYEJq27aBO2/gUDFQrmIKl0Z11a+IidYufq W72VVA55mHjZwgt98hIGd9FNJbr2r31ZRkKYXoJgpFx46zo6TV5TcK+eueWRdwfMCsGN gy/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :in-reply-to:references:content-transfer-encoding; bh=5FMFRxdl++jGGcOwPBfQz9/BZgHAFuIJj6IZUJZwVNc=; b=TMdWqGOulDCzfS5j4W+A4RqY3VrreMOIIY0qSp3lM1VpUaKHdSIFxCxoW45R8Ytb7n 047+ztEGZYkA/UXPSXsumop27bE4wvkhcI+EvD3wCsjHMNjmdL00c+lIyOtQhVVJGQeO hJvtacE6jxgUJ81wFHEMAh4uRnDVxtT0naNzrU84XK7cWDndmp+IRrUYuaHR+R5nUyC1 80SzY+uXWvZRLjxrbwUc/ptRVOwVN9594pBdCfNPmz31pzd0zcWTq2RTD3DkwCZHsyJv ZX2zAg+plQ2nmgMs0WtCkDokFzVqFUWrlKznbY+SmULkQxu+dfTdutQC+2uIDFLp8EZH 7Csw== X-Gm-Message-State: AODbwcD3jx71555sI6FZOk6LTLX5zPozKNYF1WMMdAowUUv6tDVxcuid 2pyxo29mDH9sSxBG X-Received: by 10.99.4.87 with SMTP id 84mr42182572pge.138.1496979710196; Thu, 08 Jun 2017 20:41:50 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::264a]) by smtp.gmail.com with ESMTPSA id z64sm12587357pfd.20.2017.06.08.20.41.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 20:41:49 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 8 Jun 2017 20:41:35 -0700 Message-Id: X-Mailer: git-send-email 2.13.1 MIME-Version: 1.0 In-Reply-To: References: Subject: [OE-core] [PATCH 3/3] rng-tools: Fix textrels on 32bit x86 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org When testing core-image-sato with hardening flags, it fails with SIGSEGV in libc.so during relocation time This is due to relocations in .text [textrel] build QA points it out clearly during qemux86 build as well AssertionError: 2 != 0 : Log: /mnt/a/oe/build/tmp/work/qemux86-bec-linux-musl/core-image-sato/1.0-r0/dmesg_output.log ----------------------- Central error: [ 19.043597] rngd[525]: segfault at 80098bb7 ip b77b14fc sp bfe9b380 error 7 in libc.so[b774c000+97000] Signed-off-by: Khem Raj --- .../rng-tools-5-fix-textrels-on-PIC-x86.patch | 104 +++++++++++++++++++++ meta/recipes-support/rng-tools/rng-tools_5.bb | 1 + 2 files changed, 105 insertions(+) create mode 100644 meta/recipes-support/rng-tools/rng-tools/rng-tools-5-fix-textrels-on-PIC-x86.patch diff --git a/meta/recipes-support/rng-tools/rng-tools/rng-tools-5-fix-textrels-on-PIC-x86.patch b/meta/recipes-support/rng-tools/rng-tools/rng-tools-5-fix-textrels-on-PIC-x86.patch new file mode 100644 index 0000000000..90c9d8c515 --- /dev/null +++ b/meta/recipes-support/rng-tools/rng-tools/rng-tools-5-fix-textrels-on-PIC-x86.patch @@ -0,0 +1,104 @@ +From: Francisco Blas Izquierdo Riera (klondike) +Subject: [PATCH] Fix assemby textrels on rdrand_asm.S on PIC x86 + +This patch updates the fixes in the assembly in rdrand_asm.S in +sys-apps/rng-tools-5 so it won't generate textrels on PIC systems. +The main fixes are in the use of leal in SETPTR for such systems, the rest is +the usual PIC support stuff. + +This should fix Gentoo bug #469962 and help fix #518210 + +This patch is released under the GPLv2 or a higher version license as is the +original file as long as the author and the tester are credited. + +Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=469962 +Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=518210 +Upstream-status: Not sent yet +Signed-off-by: Francisco Blas Izquierdo Riera (klondike) +Reported-by: cilly +Reported-by: Manuel RĂ¼ger +Tested-by: Anthony Basile + +Upstream-Status: Pending + +Index: rng-tools-5/rdrand_asm.S +=================================================================== +--- rng-tools-5.orig/rdrand_asm.S ++++ rng-tools-5/rdrand_asm.S +@@ -2,6 +2,7 @@ + * Copyright (c) 2011-2014, Intel Corporation + * Authors: Fenghua Yu , + * H. Peter Anvin ++ * PIC code by: Francisco Blas Izquierdo Riera (klondike) + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, +@@ -174,7 +175,19 @@ ENTRY(x86_rdseed_or_rdrand_bytes) + jmp 4b + ENDPROC(x86_rdseed_or_rdrand_bytes) + ++#if defined(__PIC__) ++#define INIT_PIC() \ ++ pushl %ebx ; \ ++ call __x86.get_pc_thunk.bx ; \ ++ addl $_GLOBAL_OFFSET_TABLE_, %ebx ++#define END_PIC() \ ++ popl %ebx ++#define SETPTR(var,ptr) leal (var)@GOTOFF(%ebx),ptr ++#else ++#define INIT_PIC() ++#define END_PIC() + #define SETPTR(var,ptr) movl $(var),ptr ++#endif + #define PTR0 %eax + #define PTR1 %edx + #define PTR2 %ecx +@@ -190,6 +203,7 @@ ENTRY(x86_aes_mangle) + movl 8(%ebp), %eax + movl 12(%ebp), %edx + push %esi ++ INIT_PIC() + #endif + movl $512, CTR3 /* Number of rounds */ + +@@ -280,6 +294,7 @@ offset = offset + 16 + movdqa %xmm7, (7*16)(PTR1) + + #ifdef __i386__ ++ END_PIC() + pop %esi + pop %ebp + #endif +@@ -294,6 +309,7 @@ ENTRY(x86_aes_expand_key) + push %ebp + mov %esp, %ebp + movl 8(%ebp), %eax ++ INIT_PIC() + #endif + + SETPTR(aes_round_keys, PTR1) +@@ -323,6 +339,7 @@ ENTRY(x86_aes_expand_key) + call 1f + + #ifdef __i386__ ++ END_PIC() + pop %ebp + #endif + ret +@@ -343,6 +360,16 @@ ENTRY(x86_aes_expand_key) + + ENDPROC(x86_aes_expand_key) + ++#if defined(__i386__) && defined(__PIC__) ++ .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat ++ .globl __x86.get_pc_thunk.bx ++ .hidden __x86.get_pc_thunk.bx ++ .type __x86.get_pc_thunk.bx, @function ++__x86.get_pc_thunk.bx: ++ movl (%esp), %ebx ++ ret ++#endif ++ + .bss + .balign 64 + aes_round_keys: diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb index 9329e8ad31..e2acaba91a 100644 --- a/meta/recipes-support/rng-tools/rng-tools_5.bb +++ b/meta/recipes-support/rng-tools/rng-tools_5.bb @@ -7,6 +7,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gkernel/${BP}.tar.gz \ file://0002-Add-argument-to-control-the-libargp-dependency.patch \ file://underquote.patch \ file://uclibc-libuargp-configure.patch \ + file://rng-tools-5-fix-textrels-on-PIC-x86.patch \ file://init \ file://default"