Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3734402rdg; Wed, 18 Oct 2023 04:46:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHVbBj4l6yB6d8Xb1dYfWz+cnct5ZeVNMwS8NS3VwHmbftfiPDs9WYiBtT6m6tKEm0rBBL X-Received: by 2002:a17:902:d546:b0:1c7:8345:f377 with SMTP id z6-20020a170902d54600b001c78345f377mr5920207plf.29.1697629583764; Wed, 18 Oct 2023 04:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697629583; cv=none; d=google.com; s=arc-20160816; b=aJriCqx4o96vXZLH4kvN8TG2oXQMG/2kBtRYCYFKYnYu1FJEDXyhZrh/Oyfhu0TvtA Pqpb3qvf4bKT1c32So0BWprkZrGQnsWtzuHGXoA2ZHNaXVTrdOr92d2dNVmhcd4Ozngx HHZYdRuUaMV0wltajfw+TIHysyXZefjnwgD7c3mwFKZO+9QbWpOgSZkiXfanRIsKvvUO gynuOQIT3lfM1MdSSRrF0PB/3/BEKHHCyQRitsWdzj23u4JvZQpiM5advsdq3aaZwfIt 5B8bR9x05xtxV1mApko2dRzmb6UtnicjmnXbVVklcMVpgXQfZibY2/wXW/YbqqtAMafX hnqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=VTINOs7IVK0NtmhaZm8Hxfp0zmQge6ZaL9u3C96Qtkk=; fh=PF9bHWfjzSATH40+zNotwijoBA2qshI2sZS3MZWUX3I=; b=QTUF/ydkWtU1CKGE6xbtzDo6QFRlf6FM9Gn0JLgwkhLUv1rDqbpKAEexqz1X3qYlXC 7JW/85NuUL+XZwsJB7Mq429zzLqAOlLFwusbQANHigZiyf0C06lZUvePgujKvt5DlQfG 47rf+VhiozEEFsf7u2KcZ0dBnN+/hsSV5kjv3SJC5k7FR/fInh2Gih7NSo4ZRnr2cgMh utBVJjs0UQjA6WMtHL6SPlzWcOFCuigL4T9lEHvwSIvYxnS0Hdjajv5QqTvPnLaC5Ax+ SziNY5rRWn77QwDPJvqbCpGjD3TEjDc/+tsY+DOxkTRFEsLqBn1H7etAZDnpv9AUrJN1 0k0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RrSLeh03; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i16-20020a170902c95000b001ca335f71bbsi4213664pla.140.2023.10.18.04.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RrSLeh03; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2834E80F924B; Wed, 18 Oct 2023 04:46:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbjJRLqC (ORCPT + 99 others); Wed, 18 Oct 2023 07:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230059AbjJRLpt (ORCPT ); Wed, 18 Oct 2023 07:45:49 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2218FE for ; Wed, 18 Oct 2023 04:45:44 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-53f6ccea1eeso611318a12.3 for ; Wed, 18 Oct 2023 04:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697629543; x=1698234343; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=VTINOs7IVK0NtmhaZm8Hxfp0zmQge6ZaL9u3C96Qtkk=; b=RrSLeh03Z/Q/dAMWzai1S/m+J0txdbn5j10o+rQS7UxhfywO8gQb9hFuUcnmnWvQ1q nrGatzVJl7/NZS4KwmmR5U2qc7kg34Cq1st3cCVLeO/xUKYXa5nqY6SSM2fdfuB3gl0r 9DIK3WoHBDO3WcbkF7fKFoQq94vtoAT43uXQI8OEC3kktqbpioVnX3d2eqmTD3UWR93Z vOw12465Fe5SiSbwv6qRxmY7LujZcR1TACGrMNHByj+IQQCmr+XTVoJO+IwBTLZmBY77 YSoJD4EWNkhloUsCnZIXokTmn/Zg5YblrxAwFX3h+S77ev5XBoWM0sN4PtfmN0fqZh2T nOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697629543; x=1698234343; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VTINOs7IVK0NtmhaZm8Hxfp0zmQge6ZaL9u3C96Qtkk=; b=M+/SLogiqbt701pbJxuLO213ndKelJ2oqfzvkLqJtVIKrCEECMz6VDzivs43gzKuW+ C2Z07UJJcHSQJvw6lfQspHMUQU5dQOJvPkKcAx1M8OHVPnrzXlfhF5Ul/332viBLVMdn W+T/uM5jCUXNrvvJgJurT1aTX62EQnm6uA686n+XWR9tnquhEfVvR+c+F5cMM0JO5jyL UMBVoXx+lb2iOtZqbFqq2GG9N9jaVr255Kj/R1nLcha/2kU3wFq6QHnOt+l/ZT2FZMj6 xivTvDCIYNWEj9o1wedNhq5pIIJ3wx0E+ZpSsXMxnQNaGyw3gROXvuiPjws4jnxsdPie 5IUg== X-Gm-Message-State: AOJu0YzwgNDtwrbv41XRgkOPsTZbVgVaJ7bvgyF5f5RgFbe2L28FC/fv b1Gh3U42fUsHM+y10auhGlM= X-Received: by 2002:a05:6402:4410:b0:530:bd6b:7a94 with SMTP id y16-20020a056402441000b00530bd6b7a94mr4825384eda.24.1697629543307; Wed, 18 Oct 2023 04:45:43 -0700 (PDT) Received: from gmail.com (1F2EF7B2.nat.pool.telekom.hu. [31.46.247.178]) by smtp.gmail.com with ESMTPSA id t29-20020a50ab5d000000b0053ed70ebd7csm2720856edc.31.2023.10.18.04.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:45:42 -0700 (PDT) Sender: Ingo Molnar Date: Wed, 18 Oct 2023 13:45:40 +0200 From: Ingo Molnar To: "H. Peter Anvin" , Kristen Carlson Accardi Cc: Hou Wenlong , linux-kernel@vger.kernel.org, Lai Jiangshan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" , Josh Poimboeuf , Anshuman Khandual , Mike Rapoport , Pasha Tatashin Subject: Re: [PATCH RFC 1/7] x86/head/64: Mark startup_gdt and startup_gdt_descr as __initdata Message-ID: References: <20231017072311.GA46993@k08j02272.eu95sqa> <77B66FD0-ED28-4D3F-8D28-467AC4FCD00D@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77B66FD0-ED28-4D3F-8D28-467AC4FCD00D@zytor.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:46:21 -0700 (PDT) * H. Peter Anvin wrote: > If the goal is better KASLR, then what we really should spend time on was > Kristen Accardi's fgKASLR patches, which not only exponentially(!) > increases the randomization entrophy but also *actually* avoids the "one > leak and it's over" problem. Agreed. Going by this version of function-granularity KASLR from 3 years ago: https://lwn.net/Articles/824307/ https://lwn.net/ml/linux-kernel/20200623172327.5701-1-kristen@linux.intel.com/ The fgKASLR feature looks entirely viable to me. Back then I presumed it would get iterated beyond v3, and then it fell off my radar. :-/ If Kristen or someone else would like to dust this off & submit a fresh version it would be much appreciated! Thanks, Ingo