Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp712636lqm; Wed, 1 May 2024 13:19:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOg0jvDGuFg0/CF5xOI0YgSgR4dkQtZbmh+FCSytV1wdHq57Y8l8tLzLbtv4JHXjdsDiViyFreNwdA97nqUDBJXuvibYIWlrklN20asQ== X-Google-Smtp-Source: AGHT+IEQqLTaKbLAHA1cA1amr/7lc9Evpz942bQdhRFBWmXE1N5riemOYOoKtZ9xAqHd4S9LiHJ9 X-Received: by 2002:a17:906:4a08:b0:a58:e505:c241 with SMTP id w8-20020a1709064a0800b00a58e505c241mr2365974eju.10.1714594769026; Wed, 01 May 2024 13:19:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714594769; cv=pass; d=google.com; s=arc-20160816; b=n6d+ZGoUaiMnl/j/+QRkre5I4u50ZoYExbpx1c9qKVqJ1lO6Qfznh7tKVFBTkBr3X+ qUSmlIB1dFrckZGxjSS7kk83gWA4cXVD+JBZimeVC7qsirPkexuTt13tbBuOYFavpasi 5Eji/HUXX5eSDGsxh+Oqo0fuQYF396Hd4tTgwn1jXEaXZWnSRTEK2VjKGKt477hkz6/m FB2V/mlw7sgHFcPlqRLnizKj2L7eFSlkr95MTRoXrIQCw7weQnd6Gj3TMAHNZZPk8zd2 p+9izBg6qtwcqgxTAkldc0WSImkw5ijwv4OZsze4doflIU6wSyGSbV/jQO3pYHmtSnc1 9FyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=/E3lGZnIdEvkShs7yZGABbxU5GtGlIugqdMHDWd9cxQ=; fh=7TpNWqDxbsy7R8oyeZZ8a2hRKmO/T4ofogSDr5Lr7lE=; b=wFvKtLvAGYYX2zF8ZZQn68oYVNRrxBYPuvBEP2KU8TbSgW/P/JG+jdv0mvy4vc9QwR sqOBpEVlLAeOhzTYtrZ5fBxmzdavKnEz02ZztU2R371ox4zLTVCVx3jT/DEWVnkGPaoc EhBynyiqKyUsYAeVtzSw5VPrOBXq7XEUS5rnYP0JwYPkyDWrgKvdBRhTFSR9yiLKjaLW hyXjIH2cLqamJyyCaM7f5hPXMZYx87NxlpVq/AXPF0KZ70OXiGZeN5Rt8HgnjLqTtNz2 baa46XxZFOI2d5VtDBzguJWoHKh+81F4bAMODGsAoiPkaQTIL/hgdaFMGnCDtNE9Hfs5 zCkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OXvTZX92; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-165745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l12-20020a170906794c00b00a58f69d9ec5si4844732ejo.477.2024.05.01.13.19.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 13:19:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OXvTZX92; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-165745-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B19751F24307 for ; Wed, 1 May 2024 20:19:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2692F1635B3; Wed, 1 May 2024 20:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OXvTZX92" Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 099885B69E for ; Wed, 1 May 2024 20:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714594761; cv=none; b=QGlO4wnnG9DtCo50ginV04Zbj86sp5qXwpDhwotkQ2psWL5A7gXGm6cGmcUT5xeV8SR+DRfkdoC1HSXsmqzcMxkAdO7XjI8dJqafFcSelsPw0f4i+Rpdef1vVzLVOQv02d66GuiAi8vrHqy7/vRn7vJw5sftqz3EF8X2iXiDu+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714594761; c=relaxed/simple; bh=/E3lGZnIdEvkShs7yZGABbxU5GtGlIugqdMHDWd9cxQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RC/lcU7CWFJd9htRIQntKBPzjA7xsHTtGeKZxR8T7rzQxQx5cXJ/MF5mgF/KPMeOQU6CnQy4LMtnZBVZZzud2Y7aaPddymdDDicfyVQqnkka+2C1zH6lXr2voxkr6RYCliYIhT9vS5U0N8NRWLwf16e7ZqVvkUDgCxws7z0VGZ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OXvTZX92; arc=none smtp.client-ip=209.85.222.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ua1-f53.google.com with SMTP id a1e0cc1a2514c-7f3aee7c531so320805241.0 for ; Wed, 01 May 2024 13:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1714594759; x=1715199559; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/E3lGZnIdEvkShs7yZGABbxU5GtGlIugqdMHDWd9cxQ=; b=OXvTZX92uCS0NPuRidZukMI+ZLB8ENlf10vWWkfPfaLv9m0O+9XWrJAuk/tgELNntJ /kZiDOZfbGGz2sKZg9vxniPUUuVQWaAxaQbh64gi0vMrIqpk77x2E1JGnmCeLqe9oQVg vKFwxjf4IcNijPapYJExpQd+VNJQfjdwcesRPP+Roj8bnrkTqHLVCIMm/iBAS+f151oi VjWLqqz7OOyDL3NX97RRDuJSUfREAXLeSdGimlApYAM7u6i4RLshPJ7ass4zI2SwKKPH 8Wb4zW5wzKViJdIm/yZWL0lxzEDzwyJthinZpep5Vium2S+5eE47JQdq5JY5mZ2baGoX RKtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714594759; x=1715199559; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/E3lGZnIdEvkShs7yZGABbxU5GtGlIugqdMHDWd9cxQ=; b=EjvNIRBM2IXHNSVreXBKya91lItp8RjtnXAGdELFplZPbkV0DBfFbXY9afA4R6X6B7 wU6xIaa9A2vYFe//Ut+FI8qSmQGa7t+6hYiLUTB5keNj6H2tqdhEdNV7axEQenbKrs8U 1u62q3zbBmAtJT68mAyc/sSifNSKAShLRSiAV0KXWjtvKdvKpgD2LYVXo5nDK4nmKF0a I6saWUEll2BCjeBqF5GqFqFm7YCtnkOI0eO8iWJh+yhh8qPzKw1sMm52zWvw0IGT4fG3 +CmI+k9QveAS2gbPOfthIhpkshkkJxODWNh5+/MqqAEvs8xdt1damNNkH5nZNwMk6wNr cnsA== X-Forwarded-Encrypted: i=1; AJvYcCW4BtnrvdA6L7hjwxT4DqIhnX6CdeR6dH+q4n1QWraYLAXV6wyRg3tLLErG0Jjekv1Zg7Fk+4thGW/DAT4V/HsQsjV6P9GtFUBBV2Rr X-Gm-Message-State: AOJu0Yyiinw60UicIIDEYVzVwhrZC8zf1qgxAi3vk9lXXjb24PPUXFuy IlUHHDyZZnj+p1NWJnC46V4uDuYDBjXHjIfGf+Eymtp8vRf3zLGgTnU+r2JHd6j7BSP6vhSeAUr FsWcGfHTwyPwIUJ16H0RsVhZCSVlsPGxAFZIM X-Received: by 2002:a05:6122:2219:b0:4d4:872:c68a with SMTP id bb25-20020a056122221900b004d40872c68amr3932462vkb.1.1714594758784; Wed, 01 May 2024 13:19:18 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501000218.work.998-kees@kernel.org> In-Reply-To: <20240501000218.work.998-kees@kernel.org> From: Sami Tolvanen Date: Wed, 1 May 2024 13:18:40 -0700 Message-ID: Subject: Re: [PATCH] x86/alternatives: Make FineIBT mode Kconfig selectable To: Kees Cook Cc: Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Alexei Starovoitov , Nathan Chancellor , Josh Poimboeuf , Juergen Gross , Breno Leitao , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2024 at 5:02=E2=80=AFPM Kees Cook w= rote: > > Since FineIBT performs checking at the destination, it is weaker against > attacks that can construct arbitrary executable memory contents. As such, > some system builders want to run with FineIBT disabled by default. Allow > the "cfi=3Dkcfi" boot param mode to be selectable through Kconfig via the > newly introduced CONFIG_CFI_AUTO_DEFAULT. > > Signed-off-by: Kees Cook > --- Reviewed-by: Sami Tolvanen Sami