Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp100528lqe; Tue, 9 Apr 2024 16:18:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsCf5fOaiY7CvNhxnJEQga4TIa0/P05+C4tzd04Q94rkVUHrweT2QVyvmQfjy+w+3S0g8EvEz2jY2yPW3cEnk+gNZwJGYIyZVkhGacxQ== X-Google-Smtp-Source: AGHT+IEydISovOIvHa98O6If+jD5tKRU5mX+45kaVR+HW3J1yQhOXHitfdOiV4ad07S95PZc/8IT X-Received: by 2002:a19:9108:0:b0:514:cbee:a261 with SMTP id t8-20020a199108000000b00514cbeea261mr455257lfd.27.1712704719178; Tue, 09 Apr 2024 16:18:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712704719; cv=pass; d=google.com; s=arc-20160816; b=u2hMDgE0iU+AjLdY9U1RSMEBPw3lftGUb6yAMgtg3vwnKJyvxTsNOfg/LgmCfpLZRV VAKhBQxlEqyv2y0j8JN7xDnZhlOFmgxZeajvfRsP3I9fSU+MrNrjh9Hj8k5O+gkVY58x LWLBNctAj076/9yQjKgJXSraVVK3UhKq7rupUQta7t9zqDs+97irecxHWzxmxYx+ga6y xeZ0iDC8IyOICBz0n3N66oH9O+PmxuOdiV+hg0KTGwR68i1YWxb7QWO1ss1DPC9zxbN0 Q+NwPBGd2kSehljYwRd4noBs0yDkQZMetMlHbUftjC4N67nKzjHc7/bcYOkfWEb4SD8i Gndw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=9fQdU5nAO7R939RxH7SSdOIQ3j5lyXRYukuzfa+NXNE=; fh=sqjMRHlm97LKfcjs7kVZBKvrPwI+KX5ISxqLEe/vPlk=; b=V3lqYQCvK9Os63MKRq4k/tId9Nm7f6VR8ueP3wLYtQFNgi9f1rlcEFNvq1gBNuI7OU tp6aZz0DwkpDUo+ZyAJOvSDStpaWB7qqMoRQdvrKMpJorLnDdrOC/DVWP3K/ko2x6sXp 5lUwvISgygMPW16TP8fkeSHCCLkjgr8O8gNMUfQW8yinBGVgEhqM1Ty+esjq9QpZ+BOS tr2fAlu4GTrg9gLxoyqz4IgTZkn33U0MZz0z+PaauQcZV3ijZeDcw9mVg7kCgAY52hXr zAfMnMm9wUvViox0+oMx9M+n73Y7l9g/xqT08xEXqvO8aD4w4vpCpLBUSLMe6yQGAmSl 4ndg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-137686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137686-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lo27-20020a170906fa1b00b00a51fed6e9absi871647ejb.6.2024.04.09.16.18.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 16:18:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-137686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137686-linux.lists.archive=gmail.com@vger.kernel.org" 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 436241F23AD9 for ; Tue, 9 Apr 2024 23:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D017158DCB; Tue, 9 Apr 2024 23:09:25 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACDEC158DBF; Tue, 9 Apr 2024 23:09:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712704164; cv=none; b=FPkkuv67qnd/CdteoUa/g+PjU82RTI6o+j1ROZNrXwy+6YesuCeFt8HruJM07uohzJsYbYHfLLzFFeo/3yBOi3mx/lcrKm1KOUYVM8/fCUo91duRK9V7gvw8zfc+G2ZNGiSCZ7yDDRDHg6+8GJpYEzH07e3WTXUWlfHWdEucRwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712704164; c=relaxed/simple; bh=9fQdU5nAO7R939RxH7SSdOIQ3j5lyXRYukuzfa+NXNE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=blyn0vpdpCIWQkgS5qyUmw08s72EvbubneMG8yfoZBRmzxVvARjmtgF3e0P4iTC1uhHOdVtAOof5zFObN/6XZNcXHoJP6bRCitccTJCMqrSpbJvtI7KwwJ+EfYQRPWzHLykT9JAjexQFB1YHWfGpzrtn+mm96UlczuKO/69Ge2Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4227CC433C7; Tue, 9 Apr 2024 23:09:21 +0000 (UTC) Date: Tue, 9 Apr 2024 19:11:56 -0400 From: Steven Rostedt To: Kees Cook Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Tony Luck , "Guilherme G. Piccoli" , linux-hardening@vger.kernel.org, Guenter Roeck , Ross Zwisler , wklin@google.com, Vineeth Remanan Pillai , Joel Fernandes , Suleiman Souhlal , Linus Torvalds , Catalin Marinas , Will Deacon Subject: Re: [POC][RFC][PATCH 1/2] mm/x86: Add wildcard * option as memmap=nn*align:name Message-ID: <20240409191156.5f92a15c@gandalf.local.home> In-Reply-To: <202404091521.B63E85D@keescook> References: <20240409210254.660888920@goodmis.org> <20240409211351.075320273@goodmis.org> <202404091521.B63E85D@keescook> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 9 Apr 2024 15:23:07 -0700 Kees Cook wrote: > Do we need to involve e820 at all? I think it might be possible to just > have pstore call request_mem_region() very early? Or does KASLR make > that unstable? Yeah, would that give the same physical memory each boot, and can we guarantee that KASLR will not map the kernel over the previous location? -- Steve