From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SOQ8Ge9PEGE95wAAgWs5BA (envelope-from ) for ; Sun, 08 Aug 2021 23:43:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oHzYFO9PEGEjYwAA1q6Kng (envelope-from ) for ; Sun, 08 Aug 2021 21:43:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 79ECEBCB7 for ; Sun, 8 Aug 2021 23:43:10 +0200 (CEST) Received: from localhost ([::1]:40276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCqZZ-0008AZ-5v for larch@yhetil.org; Sun, 08 Aug 2021 17:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCqZS-0008AP-2a for guix-patches@gnu.org; Sun, 08 Aug 2021 17:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCqZR-0007hx-SL for guix-patches@gnu.org; Sun, 08 Aug 2021 17:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCqZR-0006hp-Ob for guix-patches@gnu.org; Sun, 08 Aug 2021 17:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49898] [PATCH v3] gnu: Add spectre-meltdown-checker. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Aug 2021 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49898 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: phodina , 49898@debbugs.gnu.org Received: via spool by 49898-submit@debbugs.gnu.org id=B49898.162845893825728 (code B ref 49898); Sun, 08 Aug 2021 21:43:01 +0000 Received: (at 49898) by debbugs.gnu.org; 8 Aug 2021 21:42:18 +0000 Received: from localhost ([127.0.0.1]:54905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCqYf-0006go-6L for submit@debbugs.gnu.org; Sun, 08 Aug 2021 17:42:18 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:25672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCqYb-0006gb-C2 for 49898@debbugs.gnu.org; Sun, 08 Aug 2021 17:42:12 -0400 Received: from nijino.local (194-118-35-216.adsl.highway.telekom.at [194.118.35.216]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GjXjn2s9Yz3wnp; Sun, 8 Aug 2021 23:42:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1628458925; bh=4Le8d5bFwCwXdBmnjm60lHApcSd2TyGlsRW5v+GH9Jg=; h=Subject:From:To:Date:In-Reply-To:References; b=Qd5ZwmmvIvLhRxPtRPKfeMX24aMM6AA43FQJ5K/hMxi+mwwtaD3YyjDB9oReXhq4v 9qkrvFC28QCIdjWtv5x/lP+9PnOzdjYMLh/B+g4zHJXHw17AJ2TQ9Yh28Q6/yajaLs tiURrro+joF9QDshYi/6nGriqpWWR5S8aiFwYe+I= Message-ID: From: Leo Prikler Date: Sun, 08 Aug 2021 23:42:03 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628458991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4Le8d5bFwCwXdBmnjm60lHApcSd2TyGlsRW5v+GH9Jg=; b=CnwpV082gRUJQ6OZeLikl9GHxYnSgJ7Hdtfrs4XYrWS19jA/iCVkAq+gZTDGyKXhfhZk2t NKXtAYRJO9piIdRNM5/1Pk53a19Yn6P6d7HnNuw9qHgjEqTGK3GiXPmlXyZwd4IZgkcA0u tX6vvPM6UtlS/li6RboiSa+FSy0JbzKWKRoF0Sys30VISt1XU7nxY3IHgUcsoTNBXSAdp+ A9mWdLIbhwnxk6NtwoLlIiQ6zRe+JC/HM6H17xtX/d82ywYxCHFgQJjY1iYZUwijit9H4z dt5J91khM8e92RRtQP/P5sj7KoW3Kr2eWLtOUULvqNvoGYZcHUIw0FSjczeS7w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628458991; a=rsa-sha256; cv=none; b=NwbvYPLIEBbpaZqgIUnuGUXmqgSx8YkmaQqcNGJbaxl6YDwlb/1aa2bd72kepk7V1NtsUq bJOHM+eD16HK9hOjbWNo4b+c4wgONkmEUr1pvRDCXIY73zukjSirykoFIsvulRMVRUAXTa a+9eIYX8CHmmQeZ6mAIOboFOfkBQw/JF+XTO9mc8WT6wqSgiu/PQb3bBzWOv0skC0bj8GL ohfwP69XRKV3yq6+v1IjJPx9lRhUl0wn6NmAWdhNsecb8VNtH0+uiXHXzhndkS4ZUlqQHu MGYqu/OMqyt+NaCih0BnZii9d2eaB2csSbPr3N3gab1f/XE/snxKo5YFrJezxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=Qd5Zwmmv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=Qd5Zwmmv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 79ECEBCB7 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: Xr2EsaqnrEOK Hi, Am Sonntag, den 08.08.2021, 11:05 +0000 schrieb phodina: > Yes, it's unfortunately well hidden and there seems to be a mix of > tools also available only for BSD. I wanted to run it in pure > environment and with =-e= but there are many condtitions that exit at > once. I don't think the BSD ones should be too much of an issue, but if we ever decide to ship a BSD kernel, that might become relevant. > So I went throught the whole script and listed the commands. > Not sure regarding the admin priviledges. I'll create issue on the > upstream regarding the requirements. The Dockerfile gives some hints > but it's not exhaustive. As far as I can see, I don't think it claims sudo on your behalf, so that should be fine. > ----------------------------------------------------- > > * gnu/packages/linux.scm (spectre-meltdown-checker): New variable. > > diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm > index 4ca2a386e1..24f7d43b33 100644 > --- a/gnu/packages/linux.scm > +++ b/gnu/packages/linux.scm > @@ -53,6 +53,7 @@ > ;;; Copyright © 2020 pukkamustard > ;;; Copyright © 2021 B. Wilson > ;;; Copyright © 2021 Ivan Gankevich > +;;; Copyright © 2021 Petr Hodina > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -137,6 +138,7 @@ > #:use-module (gnu packages video) > #:use-module (gnu packages vulkan) > #:use-module (gnu packages web) > + #:use-module (gnu packages wget) > #:use-module (gnu packages xiph) > #:use-module (gnu packages xml) > #:use-module (gnu packages xdisorg) > @@ -148,6 +150,7 @@ > #:use-module (guix build-system cmake) > #:use-module (guix build-system gnu) > #:use-module (guix build-system go) > + #:use-module (guix build-system copy) > #:use-module (guix build-system meson) > #:use-module (guix build-system python) > #:use-module (guix build-system trivial) > @@ -7191,6 +7194,44 @@ interfaces in parallel environments.") > (supported-systems '("i686-linux" "x86_64-linux")) > (license (list license:bsd-2 license:gpl2)))) ;dual > > +(define-public spectre-meltdown-checker > +(package > + (name "spectre-meltdown-checker") > + (version "0.44") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url " > https://github.com/speed47/spectre-meltdown-checker") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1b47wlc52jnp2d5c7kbqnxmlm4g3cfbv25q30llv5mlmzs6d7bam" > )))) > + (build-system copy-build-system) > + (arguments > + `(#:install-plan '(("spectre-meltdown-checker.sh" > + "bin/spectre-meltdown-checker.sh")))) > + (inputs `(("binutils" ,binutils) > + ("coreutils",coreutils) > + ("gawk" ,gawk) > + ("gzip" ,gzip) > + ("lzop" ,lzop) > + ("perl" ,perl) > + ("procps" ,procps) > + ("sqlite" ,sqlite) > + ("util-linux" ,util-linux) > + ("util-linux-with-udev" ,util-linux+udev) Why both? > + ("wget" ,wget) > + ("which" ,which) > + ("xz" ,xz) > + ("zstd" ,zstd))) Are you sure that mere presence of these packages as inputs will do anything to patch them? Because I'm not so much. Regards