From patchwork Sat Jan 11 16:37:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Sommer?= X-Patchwork-Id: 55388 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C74F7E7719A for ; Sat, 11 Jan 2025 16:37:17 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.127]) by mx.groups.io with SMTP id smtpd.web10.18751.1736613433108478790 for ; Sat, 11 Jan 2025 08:37:14 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@navimatix.de header.s=selector1 header.b=sy5a+c3d; spf=pass (domain: navimatix.de, ip: 40.107.22.127, mailfrom: joerg.sommer@navimatix.de) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VbADq3d3wnH80svg6DiiT4/5YLPDZRAWlPcVS1uHWBu6M/8QiCgIhZs94FsovvYEGz2BZPsGxA536LkEtC+hx48r4g5ym5VcjFP3WhUA2L6hN/i0izbqVC/Yp6l6BBZCWN4eHNij7td7KexEbaEywnLE+dC57QGtQ2KsXumB2baXxtKnPug8I21o7lTPgr7AVl/3aRY6xJ/bE+rDCN9edGugbfVb0a1SeLH4Au2bTIwMKLzsQn0ujs7uhHlxwMF9Ue0NjzJdLeLTG4cPD6ihLbzNGbh++J2813ZnTn+SIC3O3CgM2EhssXRzJdKlQm8jeDMLvPMO0nsV0+sAtc9OYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=skOYKMsd6N/2Swv5ohY09ApPeemKd62leC2bAKA3gnk=; b=L2ey/PNUpSdexTA79sUyirvfXC5itQQ4yef+UwnnbldixIv+3jC1P0a2G0fkmhrSqtWyT6UELjrCp5F/ijl5NVvT3sD1AKaYuULdCuogHXPFidwCOzx+sxB7u0CpDGL99PsWQzqIRrAWzAgEoNrzJYxsqXvlqPoV4er5IggOhbvtqqO8iTUGzZUuHFvpLbLkYSDJ3TqEae8aT90fta5PBndVJCEEWZ5F9FK4b6Sl0YTYKoXAle1V5SQ5cj/SDr/uqqiE5r6yPj7mUWhIyRx7QLREUOlnNVYMI0c7tP2o2YJWaz6YfV+GNU6RB8A78kJyeMPtXwZejocGyqBwxXTBXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=navimatix.de; dmarc=pass action=none header.from=navimatix.de; dkim=pass header.d=navimatix.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=navimatix.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=skOYKMsd6N/2Swv5ohY09ApPeemKd62leC2bAKA3gnk=; b=sy5a+c3dm5MMNf3QphYH9t0PPLNtNroXc175K0n7cc2ZXeTE1MhZemT+vu6qG/4NrzWRXis71tSOlbL3PdSVIu3vd4lw4xQnd/Zj2vn2zcUuw9/PmU+y72oXLyuFP+CjzMuueU4Lj2OQIcv4l9TMDmEKEuxBwSJg5xTvHKfNs28= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=navimatix.de; Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) by VI1PR01MB6367.eurprd01.prod.exchangelabs.com (2603:10a6:800:154::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.14; Sat, 11 Jan 2025 16:37:08 +0000 Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7]) by DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7%3]) with mapi id 15.20.8335.014; Sat, 11 Jan 2025 16:37:08 +0000 Date: Sat, 11 Jan 2025 17:37:05 +0100 From: =?utf-8?b?SsO2cmc=?= Sommer To: openembedded-devel@lists.openembedded.org, joerg.sommer@navimatix.de CC: =?utf-8?b?SsO2cmc=?= Sommer Subject: [meta-oe][PATCH] spectre-meltdown-checker: New recipe to check hardware vulnerability Message-ID: X-Mailer: git-send-email 2.45.2 Content-Disposition: inline X-ClientProxiedBy: BE1P281CA0107.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7b::15) To DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR01MB8293:EE_|VI1PR01MB6367:EE_ X-MS-Office365-Filtering-Correlation-Id: dedc0ed7-07f9-4075-daef-08dd325e30d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: 8YKPYlrmVA5h0eCjHhQvqKcSSodr1Ntfk4Y1B1UODp4JXZqKtNLxnZvJfKk1OoAaLodGhl/hnwD5nA74mXO+dNzS6pInTd9Ciy//DBCkmYy4KxVDXKxWZ9TUI7Ex9HVG5WRMI9pTnl+Wuj3nLhTrkyiOBcwu6yYuK5CVBhbvR/OMspr6mO/E2nZnUjkgY6rXoF3xAbWaJ78FId0MkxyXOEDXX0BA7Ar38N0br8oUP2mn7zjPxwJ0v7GvfZW5TAJZuYXI+N46hstzLW8X89ZTL6DQJIVIoLiNsTrs2XTA6qOLJ5LnI0gfnoM7q6YD6TZaDGq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NLI;SFV:NSPM;H:DU2PR01MB8293.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W0O+yi/LBr8zSTZknvX0SHoHTwwJo9zdf5XHKnvWoyyG4KAt4kGLk2vvGwOxXheF3Xaa6BcaZ0HQp7Ruk0DjWTz6bJG3jNGSxW1llkHuNlNDKUFTyJ1PR1DviqVa/10xjiUlWbWCs2njQ4UCQoRW86ITYl+gvoFV45bJXd3E3w5KbRyo4hwXIBi0e2GNnVZS+o/kgNqShi32jY8sOQpMIyXpHMSwA3K2YmQ4vqLfBbQXNbhgAIbgFyonY8CRniZDB413eXDCVFz45eGV1NbZelTeFpaOuC2QgbMUFB+qFMIW7MlQ59XPuapcT+2hSQQx/y1nFI2WkUctFWhBLGO4V7uZpZAu5kuhFA0SMVJRjLBAQEdcUUNO1j6h1PNvc25CTsbx4FhcD0LhSqjqU+qkEcgOoFe1nv1w+SLGzz5XE/gam0D4EeqyhRKPqSLJ8P4MasTWEZJWZbXf3TzmuP0TRwWELRNssqAjDEKxwNNnXh+9Si4va0D3Fb63r5VJAhkjZSk0kdO8PlNaK6jhjQ+cn6eHWeozCLiAKmiNkNGoXb0zFFWES6BjFl5StejTWc0Ofz+ommW6OZlGl72tJuD6uYQWkF6xYJzMuAzwXyCl7KQZpG7zorSnapA2kIUjMU38Swb64bip7U+wNmRux3+a6+9GBpwvA/ZXH4kV5WFVn2UFHr+xjti+c/mvANk1cndXZmO7FhVFdUbb5/UBKkaI3DBNW4xLxbP/9Rn688U6mR2FfzLtJEh5jLMK+nqr7RhZyxavp/9VaL79bVpw1cxPdrrBmr4mxrSgUW+EwmnZwVvK+bSFirsfz+Vavr4b+qoORO3c8PgQfr+Vx71JlKl8u2hNLeKt1PT/tVi3fsurWBKps0x4Jve0t2rQE52JwzxE1RsFBqWw0fjRGdvx55RrBECSK1nJ56qd0v8k+VoxwSUcDOEfYZ6dQ7SLN4/XbgoTV3RebSGo+ZhTNRRJRdnsGKS9QTRjJdLwKFGepgYh/nJnZmFwGXEgXNEvEizKkQweQ+W1c01u1bfIWjNL7oz4/cZydU/KgDTWoJwI5uAKSkOUrdnoKsc0df+8O5HgmItopM1Ykh/FspR/6FHTlmmj0OHaCYVInb8SPbNWNaDfKr1EBtLErt8c5QaU8xNIxLJ7tBnUZAXjk86qEcwXtvg8GnQJq270g9TF0iSTQYy6spX+ekzF+WHYCiE1WnXN3ofjcHZT3/ARSMAvHiOfDnRx4SkjraxPGsHO71hoePKIXL6hyF89DuLFyG+vDKpmLliG7FrDiHakPokbUkCJY2LE0sorKbx6cXzSb2LIh1tdHa8IZoS+CSF55K8kRIBuK6dLzLKpJM77LwzihMoYSPMh8t2QhAAqdVG8Tp3wcrRWIIa8ppP6NusimA7kk41CqpM4KVHsoXbUtBF6/7/1oOdZbgyJ09u5VNSUdSmTzUVqaPYlQXsL5LVhSYuX3BkrbO6DZ7zNByIuHikV0skLQGz4HFS1H4vfM/+P14JdMf/tL9X0Whg4xBCQ/3icLzgvhte2TCIIbxjJoxpRAxjreRy1jP7NuOxHumy2DaCgBRLczt4hWa39uuvSN0gKoRv1Wb027aikrof2VlJ1Mm/GUixKdw== X-OriginatorOrg: navimatix.de X-MS-Exchange-CrossTenant-Network-Message-Id: dedc0ed7-07f9-4075-daef-08dd325e30d1 X-MS-Exchange-CrossTenant-AuthSource: DU2PR01MB8293.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2025 16:37:08.4940 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c87b4f54-b992-4813-8f3f-4a876324197f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v38RJdMmXsoDpeilZ/YsCK0ruKCHzRQDo78JkEK4osZDzwhk9Sg1YfZHB42WOPDoQX03IOShBUVcOZIwHrWVZo53koW2aGtmDySX82SRwNA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB6367 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 11 Jan 2025 16:37:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/114816 From: Jörg Sommer Signed-off-by: Jörg Sommer --- .../spectre-meltdown-checker_0.46.bb | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 meta-oe/recipes-security/spectre-meltdown-checker/spectre-meltdown-checker_0.46.bb diff --git a/meta-oe/recipes-security/spectre-meltdown-checker/spectre-meltdown-checker_0.46.bb b/meta-oe/recipes-security/spectre-meltdown-checker/spectre-meltdown-checker_0.46.bb new file mode 100644 index 0000000000..c2996415ad --- /dev/null +++ b/meta-oe/recipes-security/spectre-meltdown-checker/spectre-meltdown-checker_0.46.bb @@ -0,0 +1,36 @@ +SUMMARY = "Hardware vulnerability and mitigation checker" +DESCRIPTION = "\ + Reptar, Downfall, Zenbleed, ZombieLoad, RIDL, Fallout, Foreshadow, Spectre, \ + Meltdown vulnerability/mitigation checker for Linux & BSD \ +" +HOMEPAGE = "https://github.com/speed47/spectre-meltdown-checker" +BUGTRACKER = "https://github.com/speed47/spectre-meltdown-checker/issues" +LICENSE = "GPL-3.0-only" +LIC_FILES_CHKSUM = "file://spectre-meltdown-checker.sh;beginline=2;endline=2;md5=3ae5399e70af7be9b93f72568069e2f4" + +SRC_URI = "git://github.com/speed47/spectre-meltdown-checker;protocol=https;branch=master" +SRCREV = "b8f8c81d519435c0871b13f02b5c4a72c5bffd5e" + +S = "${UNPACKDIR}/git" + +# binutils: readelf,objdump might be used for deeper analysis +# coreutils: dd with iflag=skip_bytes oflag=seek_bytes in some cases +# kernel-dev: /boot/config is used +# perl: sometimes used when other tools (dd, rdmsr/wdmsr) are missing +RRECOMMENDS:${PN} = "\ + binutils \ + coreutils \ + kernel-dev \ + msr-tools \ + perl \ +" + +INHIBIT_DEFAULT_DEPS = "1" + +inherit allarch + +do_compile[noexec] = "1" + +do_install() { + install -m 755 -D ${S}/${PN}.sh ${D}${bindir}/${PN} +}