From patchwork Sat Jun 11 18:42:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 5658 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4LL6Bb75Pxz3x1x for ; Sat, 11 Jun 2022 18:42:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4LL6BZ5rtKz15; Sat, 11 Jun 2022 18:42:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4LL6BZ56Jtz2yxL; Sat, 11 Jun 2022 18:42:14 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4LL6BY1yCBz2yXv for ; Sat, 11 Jun 2022 18:42:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4LL6BW6ztvz15 for ; Sat, 11 Jun 2022 18:42:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1654972932; h=from:from: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; bh=WjMSNYVVt9cozPKJpNGVrfR8gmOJGbLM/oV9jaC4spc=; b=1GjeNj/ewY7LxZLW+b8tKuA/J0BOs8vIooEFZuvU4JFM2EBuewQigxQTuVyuXt10aQSBKn vgSiCw8aj1SgBvBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1654972932; h=from:from: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; bh=WjMSNYVVt9cozPKJpNGVrfR8gmOJGbLM/oV9jaC4spc=; b=EjiPHjbmEnY2LOD9SDtr55DQH9OJTPWET92yjBACyBTk4BlUAWuVbvusPsTxtEilegGTjH ikX/3t0iLx9FXbUEMedwV4tonxtcWR4K98wsR8phNppem6ZXlUPkTgPJWlWuRjcE6j+kTP NzlTMaQokr8I56p/JPV2jt6dFBLaaCTzmsEgYve/FcdsHj2Z0LKgjkU2I372Np8acbxTZh YO+YN/fP/4RPUeGN/T+3n5LlKiQl5SO6L3jnunHDAOPA4h+d1a3Mlksq5keo3E1sC2UVkr 2+C3ekv40u27p4NmlOQG5pqvxv8D/61y0VNv3IU7rBOp+9AtgswwWzSpM/S4mg== Message-ID: <90b61120-af35-a80b-a24a-fd3832c3268e@ipfire.org> Date: Sat, 11 Jun 2022 18:42:08 +0000 MIME-Version: 1.0 Content-Language: en-US To: "IPFire: Development" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] Kernel: Mitigate Straight-Line-Speculation on x86_64 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" See https://lwn.net/Articles/877845/ for the rationale behind this. The feature is currently only available on the x86_64 platform. Signed-off-by: Peter Müller Reviewed-by: Michael Tremer --- config/kernel/kernel.config.x86_64-ipfire | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire index b84698235..b88390314 100644 --- a/config/kernel/kernel.config.x86_64-ipfire +++ b/config/kernel/kernel.config.x86_64-ipfire @@ -322,6 +322,8 @@ CONFIG_X86_X2APIC=y CONFIG_X86_MPPARSE=y # CONFIG_GOLDFISH is not set CONFIG_RETPOLINE=y +CONFIG_CC_HAS_SLS=y +CONFIG_SLS=y # CONFIG_X86_CPU_RESCTRL is not set CONFIG_X86_EXTENDED_PLATFORM=y # CONFIG_X86_VSMP is not set