Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp92971lqo; Thu, 9 May 2024 13:42:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRksMLzm2F2ngqB0EgkXm05FWEZ4LAJdoUNot9he0VOSX7i3NoF+PfE3RlcbCHWZtQZB8JqxNvG+hICHnrICPzuRu+rj90hGhrXnvsnQ== X-Google-Smtp-Source: AGHT+IGSHiAYyo/RfFs88KuhMV4kxcZ4+iq3quEkBRx+QROW9AAvrXvrhMFwIgcma/xJ3SWy/gY9 X-Received: by 2002:a50:f699:0:b0:572:4041:5637 with SMTP id 4fb4d7f45d1cf-5734d5cff1emr553890a12.19.1715287341084; Thu, 09 May 2024 13:42:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715287341; cv=pass; d=google.com; s=arc-20160816; b=0NQZLZa+dRQqBj9Y1CGNMD7wqVnMROCTLE41oZ6IKjPOAM9MXH/4wmT+d+OGTYIjnJ zX/uo0N3DGEAGni72QRKIhIdcXJARq8ScPbOjbRrfDMrFhOe16Yms6h5dvvePfDZ57kP wShDlxy82jLX8p5sfvE4qYW8fk5WVU05at2gdA4q37cv4GgkkoYEhtXYXEr8hZR0T0cP qwSlg72CORcVH53Wcb9VoSfRHfo7ibobjXVHmZffWd0Ofx1LYthJRtdwMv2ThoiBYHQW dfGAI3SBAEi3lU6ppm83y3PZPKlOw7tnOPo77f6APHQSQoM9wXKY3Y1sdNzzabep9IbJ on7g== 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=SI1d8TVP4ORIA0O6m+VqC6+mUPlyhsfd4LpKaUgmzBc=; fh=0Hoz004CVqkSauOcyGo6w+Nffyo2aMpqRBWyE8Xt3B8=; b=MkVnR4nF9XWnlhZUQouyxVSFIcmHhDWXKbNxXk/c5ENjbzJLqSckrujbZUKZw/lAC6 H7H69HYLahw3lTNdWaqHeXTWeR8niaY24MTuyNY8QcyyU0iRv2d5yYKBvwsZYDRoLa5Q 1P+WHUYHzZiaGVKQjQxi5C7fCFy+uqnkF3ateH8yNxS+V3ZaRMptR4ARg1Iyg50eWGDP zW23FIaNFly0T7eC5stFszcpR/J3BzAhYiRDKYFrPW/FEJ2t7n71K0JeBpHj8ymZyPC6 ewQe7Y5ZnlDmGvlXkW/61j1cKKpQ7EhciTQ9nYfPPoga/d11GVfepgIFp9M8Vl9J9/Vz qVyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-174932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174932-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c378359si1126930a12.630.2024.05.09.13.42.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 13:42:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174932-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-174932-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174932-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 49F2D1F26087 for ; Thu, 9 May 2024 20:33:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1CB280BF7; Thu, 9 May 2024 20:33:13 +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 502B3376; Thu, 9 May 2024 20:33:12 +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=1715286793; cv=none; b=npUUdG01KBLtA8mfwbVqpmOtLRaHooEe+/u/AWjCWTZLDRkJrwpNcFhCKTQJoHEs6KZ6NIjORvxxX82/r4NWcyRUXQ0s4AYbRIXLadt6iWksxf04MYIfySYhWI9GCifc4ut6JW64uE1l4B1gRUvN73EaQL3o+3kUFYOgojse674= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715286793; c=relaxed/simple; bh=XRyn5/3SR/20zF82M4AG85UDuUuZLhgeU/U/+huhrpI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=txXraiHd7+qGwZPky9vb8ppw/JhlA73gOj1SlCNhAiOBiuwRofvW4bqh3ltDEu1a4NSkydA03R5Viza83/CZ5AcdItrgRCr0GyDgV9lYBs9doMO9KU4Ez5tgsV0/FT6KWF9qMvkDj9hHLMYIqMWs2A2kBwJhQoN1Z41Zb0uZwEw= 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 D6CB2C116B1; Thu, 9 May 2024 20:33:11 +0000 (UTC) Date: Thu, 9 May 2024 16:33:10 -0400 From: Steven Rostedt To: Mike Rapoport Cc: "Guilherme G. Piccoli" , "Luck, Tony" , Kees Cook , Joel Fernandes , "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 , "linux-hardening@vger.kernel.org" , Guenter Roeck , Ross Zwisler , "wklin@google.com" , Vineeth Remanan Pillai , Suleiman Souhlal , Linus Torvalds , Catalin Marinas , Will Deacon Subject: Re: [POC][RFC][PATCH 0/2] pstore/mm/x86: Add wildcard memmap to map pstore consistently Message-ID: <20240509163310.2aa0b2e1@rorschach.local.home> In-Reply-To: References: <3391c693-cf54-526b-79a8-d565e7140947@igalia.com> <20240411154007.5bdf8d95@gandalf.local.home> <20240412132243.053ad096@gandalf.local.home> <20240501105455.42b78a0b@gandalf.local.home> <20240509000023.096d4032@rorschach.local.home> <20240509133122.474130be@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (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 Thu, 9 May 2024 23:24:20 +0300 Mike Rapoport wrote: > On Thu, May 09, 2024 at 01:31:22PM -0400, Steven Rostedt wrote: > > On Thu, 9 May 2024 00:00:23 -0400 > > Steven Rostedt wrote: > > > > > I tried this approach and it unfortunately picks a different physical > > > location every time :-( > > > > > > So it is either adding to e820 tables or we create a new way to > > > allocate memory at early boot up. > > > > > > > Hmm, now I'm testing it more and it always seems to end up in the same > > location. I'm not sure why it failed the first three times I tried it :-/ > > If the kernel and the command line were the same, they shouldn't have. > e820 translates to memblock the same way every boot and the early > allocations also do not change from boot to boot. > > Could it be that three runs that failed had some differences in the kernel > parameters? > I wonder if KASLR caused it or not. But when I first added it to another machine, it failed to get the same address on the second boot, but was fine after that. Could be just something with my setup. I'm going to backport this to 5.15 and test this on a Chromebook and see what happens there (as that's the motivation behind this work). -- Steve