From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yNfyHENADWF9PQAAgWs5BA (envelope-from ) for ; Fri, 06 Aug 2021 15:59:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qIR5GENADWHYHQAAbx9fmQ (envelope-from ) for ; Fri, 06 Aug 2021 13:59:31 +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 C2BC8240E3 for ; Fri, 6 Aug 2021 15:59:30 +0200 (CEST) Received: from localhost ([::1]:41184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mC0Nl-0005g8-Qu for larch@yhetil.org; Fri, 06 Aug 2021 09:59:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mC0NK-0005fz-QE for guix-patches@gnu.org; Fri, 06 Aug 2021 09:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mC0NK-0000I2-Jh for guix-patches@gnu.org; Fri, 06 Aug 2021 09:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mC0NK-0002qk-Im for guix-patches@gnu.org; Fri, 06 Aug 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49898] [PATCH] gnu: Add spectre-meltdown-checker. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Aug 2021 13:59:02 +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.162825833710943 (code B ref 49898); Fri, 06 Aug 2021 13:59:02 +0000 Received: (at 49898) by debbugs.gnu.org; 6 Aug 2021 13:58:57 +0000 Received: from localhost ([127.0.0.1]:51130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC0NB-0002qO-Oi for submit@debbugs.gnu.org; Fri, 06 Aug 2021 09:58:57 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:59360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mC0N9-0002qD-1X for 49898@debbugs.gnu.org; Fri, 06 Aug 2021 09:58:53 -0400 Received: from [10.0.0.4] (194-118-35-216.adsl.highway.telekom.at [194.118.35.216]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Gh6X76Q3dz1LB21; Fri, 6 Aug 2021 15:58:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Gh6X76Q3dz1LB21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1628258328; bh=sfHMJwkjWhMYHfcs9nH5/EG1fMJgq8gdhXaVoARM1Zk=; h=Subject:From:To:Date:In-Reply-To:References:From; b=VDETPWay08QKjehdWR5TDWTEudXZp85gStds97AqOihiEaH0FutCbcZgBYQywAda+ fBmfmiusfmcp8oKZid53NUOIvJmcSkpLDl6W0Nq8qqpBLiGzFHc/aXWyv+mSPuxm+A Tj32XqJNQCFTxRAfGcuUpP7KxBAuXdcQM2lpKWRM= Message-ID: From: Leo Prikler Date: Fri, 06 Aug 2021 15:58:26 +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.116 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=1628258370; 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=sfHMJwkjWhMYHfcs9nH5/EG1fMJgq8gdhXaVoARM1Zk=; b=ZXLpEnJp2G96qPqS4QG7H+Oc/o+dRUf/evRyIlfpJx/+qrrYooyO2Haly9nRNfZ7Vlgnt2 bVOTfHqyYnCZ3jcBiqVhaEIC4gJh+Af5If9GRRBJx3vkYLe5Umm/rZ0AdWSiUP6lhOo8SA bXMrsyLV1d94c6mVDN51rAOgWvCzZZJjD3GhopgTAVEt5rNBd+inElZ8xgsr3R9aDRaD1+ u97IT5WryjtqMz5Bv8Ei4fXzCV9eFC4Ask4oynRNCpRzxZy90PD/cToH8GSA0LLwzs3bqS Bizd7ZAd7GPCwFtVn1hvoD+tuDg3RD3U1ii5/O163/uHaSExV3Jw/thsUN1iaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628258370; a=rsa-sha256; cv=none; b=P8DZH8EXShaDlLKi7+qgtZO2ytHqIk//XH2PW01zsxmBpOkehL58ZSI0LziNJyqUqS72gd v6oFrih2/porf/O6ilCZ1p6QDj3XSOdDgR6cPTm2seAgP8JH1cUKCAzTIPnkdkd2F248vt ube7EJ1tQUqkUoJHrqb0ApvfcGRiir+FHgpciQgEnIAfZ/04mJhpDfEcI5xM4nPEoYh8zB IXYmXZSR5ZEWBIjaGHmVKi7C5Xu/u6ASAJ6onN3AY1Ae8sXyFodupolCGEeC9pe32umZS6 Xh0Q+0s/nKlBwS9TMY9/G5BisZ3FxHM3EwJfckgNuCoJtvL+/P0JjenpYqUs0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=VDETPWay; 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.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=VDETPWay; 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: C2BC8240E3 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Lvz4/Z9A5o7P Hi, Am Donnerstag, den 05.08.2021, 17:00 +0000 schrieb phodina: > * gnu/packages/linux.scm (spectre-meltdown-checker): New variable. > > diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm > index 4ca2a386e1..f89f6f259e 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. > ;;; > @@ -148,6 +149,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 +7193,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 "v0.44") Version should be "0.44". > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url " > https://github.com/speed47/spectre-meltdown-checker") > + (commit version))) Use (string-append "v" version). > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1b47wlc52jnp2d5c7kbqnxmlm4g3cfbv25q30llv5mlmzs6d7bam" > )))) > + (build-system copy-build-system) copy-build-system needs an install plan to be meaningful. > + (inputs `(("util-linux" ,util-linux) > + ("binutils" ,binutils))) > + (synopsis "Spectre, Meltdown ... vulnerability/mitigation > checker") > + (description "A shell script to assess your system's resilience > against > +the several transient execution CVEs that were published since early > 2018, "the several CVEs" is quite an obscure formulation if correct English. Just "several CVEs" should mean about the same while being more understandable. > +and give you guidance as to how to mitigate them. > +@enumerate > +@item Bounds Check Bypass > +@item Branch Target Injection > +@item Rogue Data Cache Load > +@item Rogue System Register Read > +@item Speculative Store Bypass > +@item L1 Terminal Fault (SGX, OS, VMM) > +@item Microarchitectural Store Buffer Data Sampling > +@item Microarchitectural Fill Buffer Data Sampling > +@item Microarchitectural Load Port Data Sampling > +@item Microarchitectural Data Sampling Uncacheable Memory > +@item TSX asynchronous abort > +@item Machine Mheck Exception on Page Size Changes > +@item Special Register Buffer Data Sampling > +@end enumerate") Not sure if we want to maintain this enumeration tbh. > + (home-page "https://github.com/speed47/spectre-meltdown-checker") > + (license license:gpl3))) Regards