From patchwork Thu May 13 16:22:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1478106 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=k1V1lO7B; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fgxlq5Mdvz9sW7 for ; Fri, 14 May 2021 02:23:03 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 71FB184446; Thu, 13 May 2021 16:23:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xPgO5mJ-fk-O; Thu, 13 May 2021 16:23:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id C00E884411; Thu, 13 May 2021 16:22:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 643241BF403 for ; Thu, 13 May 2021 16:22:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5FDC584411 for ; Thu, 13 May 2021 16:22:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jtwo5_5je3HO for ; Thu, 13 May 2021 16:22:57 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by smtp1.osuosl.org (Postfix) with ESMTPS id 7EF7B843A3 for ; Thu, 13 May 2021 16:22:57 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id n84so14902408wma.0 for ; Thu, 13 May 2021 09:22:57 -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 :content-transfer-encoding; bh=dI5pIxvQ+HI0zrVjSodh4fonK43k2ZvToOlCCDz3lK0=; b=k1V1lO7B3qB5vVkWKi7SB7ERZu4PtJePY5sgf5PWoBYlpW8G6O4FphWUlZlntg9kZj jKj252XhTEYb86iCGRGxijCg4q4Iziv6OqzmmABAnRDWq/83vWooYjhVUEo2RQBkh+0V kInJ8mtebhp+363/YicVJjIOdDwbROqM/fqW2gFtSpZXWMXxix1Ji9OeHXi1BC/RkhnZ 7NZKJjo1lTW3En8zq366J5XKA/GeGOKfucyGD0xjlcgLgBKpAFBHhlBHnVSOWJc/0Z1V FTJYHrusB6tRTq/jFdN8N6cUruDppA8BztF7vvdrnP0c2ra0iEnaToO9CqSLsBzmCJqY 7v/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 :content-transfer-encoding; bh=dI5pIxvQ+HI0zrVjSodh4fonK43k2ZvToOlCCDz3lK0=; b=AqClDTDzQx5yjABms4B166qZySkrL/VC8PsmCe4nVKNEt30dIFI1EunqGGpiRohoVF 4BnLAoRzeyCLEC25HquoZEAoMO6rSN6k1OgejwFmYn07H5PwUDuWf9BdOhcsOC1NndWr L7Yp0bAlQmZBrqADQ4J/KvDL3W1nlznEevhv1/3rl4yEYrCVsEGfOP0Kpa/PYZeEGKXu ljeJZbdft7DTt/KyILbuvtCOH/XBLnT9Ci+CAGYL6L+d1FjhhXY3ZndOdKp3oGGkqbj/ SKlfVZ0C8/FsFjzFQ38YkX9yj5NZmhVrSbycY6WDgoJkD5NjavAC3jkqACmqlmKBwwPB nQ4w== X-Gm-Message-State: AOAM5335YI2RidH56jkt84/YXaNO/h9H6Bkzbdb43mel7P0c+4EVZK7O rcdwjisBuE08J+G8pnxLKl52Da+KARI= X-Google-Smtp-Source: ABdhPJysJ/x2sknR0JWoZo/QOrVgT5lcPZZ2ZJLCbW3aoYZ7VDA7jXUnRS5FgJZYHw7VwHski6nrtA== X-Received: by 2002:a05:600c:4998:: with SMTP id h24mr4625862wmp.10.1620922975612; Thu, 13 May 2021 09:22:55 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a180022164e4eb697b4ce.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:2216:4e4e:b697:b4ce]) by smtp.gmail.com with ESMTPSA id 61sm3554800wrm.52.2021.05.13.09.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 09:22:54 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Thu, 13 May 2021 18:22:45 +0200 Message-Id: <20210513162245.3213498-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] support/testing: test_hardening disable PIC/PIE X-BeenThere: buildroot@busybox.net 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: , Cc: Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since [1], PIC/PIE is enabled by default but the TestRelroPartial test expect implicitely PIC/PIE being disabled. Disable PIC/PIE from the config fragment provided by TestRelroPartial. [1] 810ba387bec3c5b6904e8893fb4cb6f9d3717466 Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661757 Signed-off-by: Romain Naour --- support/testing/tests/core/test_hardening.py | 1 + 1 file changed, 1 insertion(+) diff --git a/support/testing/tests/core/test_hardening.py b/support/testing/tests/core/test_hardening.py index 60e14303a3..e9d30f3a38 100644 --- a/support/testing/tests/core/test_hardening.py +++ b/support/testing/tests/core/test_hardening.py @@ -52,6 +52,7 @@ class TestRelroPartial(TestHardeningBase): config = TestHardeningBase.config + \ """ BR2_RELRO_PARTIAL=y + # BR2_PIC_PIE is not set """ def test_run(self):