Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp103111lql; Fri, 12 Apr 2024 05:18:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvGYeYdo8qOQu6mHwXekkNhsnkUkTpF0PSlYCFVUqBF+PczbVcsYJFUtfsBREMYbuT3PpcIvqrimfs8VNgy2iReT22BBQqbPwIxJhHUw== X-Google-Smtp-Source: AGHT+IHh1kLwVyHgfTlVoj6OR5UOEXdRLqHU6Z/dSZwDUxowdbaWs75ZJUAMnVTtSeOzW1dQ+MYL X-Received: by 2002:a05:6e02:1985:b0:366:99ee:f14a with SMTP id g5-20020a056e02198500b0036699eef14amr2933965ilf.22.1712924281725; Fri, 12 Apr 2024 05:18:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712924281; cv=pass; d=google.com; s=arc-20160816; b=k6plIaBgfLJl6yjQ4ENqxxj/J0LBw5zXRSHVLSqn3CKQhpXBPrAYKS5n/PomuorFlF DbjQJlF2gecKNhnHVfuKqrn8DSmGBcZvlMUOoFzinWRDlV9CrLrjqCMQiwenoezs7xkY ykN7edxbIamkhC5qG+WfwmlUQgtFVsdvYoUaSXbO20EjmrdMmC7Qcc0r6wVwiBnm7eTi qHpe5GTbyErEcNC6Y1Jn/gD6GnRAu6MZ3nMWqZbsixpepxAlMMAIDZotVzKy0cyBbI+w /wRnGNnAwVb2xYbiFpOaVYF4WxnG6sGq6ueHktyWw4L/2xH4jLhcf3VoHTcqsTQT3NXM yqFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fK3CUsnE2KS17+ZVqrhoIng6qc6MzqyQJVHWjI4HNs0=; fh=C/a9qfzpaKS6jA+AZMS8N0oUzB/Qpb4C/FXiyOZnZ1o=; b=YTDwvTQoI6s2DsGRR4IbvNs+EoqfKhvwC9iSJLSANy3knSOMUVdLTXQDo3OXi3Qm1X Hkqfoz8IFWJZltk6vyMEp97UdJgXOg/2ChGmV29Pg8igeuwXAUBCIWCqKJXt18TGhrFb ciYMV7omZwfE5vVLUiMxs97HZmUbzuno04RcogaDotmU9hHhwS7+7mz16jItNHifzQqn TrhdEFCUhWKFLN61GHS98g2VlDKdXnXV3bVUTNvdednIN7kc6TJlEbO2aY8nFrpnFePW yOBty7YSRBKzz85b9tzuv2x2bexdXPh2gv77hjMtfcP3//7qentov2/DmRoQB9D2Ivs4 Petg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=NtAt7AQI; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-142634-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142634-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k184-20020a633dc1000000b005cf268638edsi3278080pga.177.2024.04.12.05.18.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 05:18:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142634-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=NtAt7AQI; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-142634-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142634-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4336B2845F9 for ; Fri, 12 Apr 2024 12:18:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CCE356773; Fri, 12 Apr 2024 12:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="NtAt7AQI" Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (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 ACCDF5028B; Fri, 12 Apr 2024 12:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.60.130.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712924275; cv=none; b=nVPSu5s5uKnaas+vl5aYZn/MQe3yBQ6EeEJV/7auRuO83G3mnlKmfuijxB2bF5bFN3+NpkuW91tfyi6DcivZv9lwayQF66wyEU7Uxo5kH7jMlngsyeCluOmUFbbb2Jfv3f6jp1ub08qu6NLXXo2SiaLbLVoJHpFGBRwXRgA4V/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712924275; c=relaxed/simple; bh=+U1LtVXjMahjN6b1v2hm6FPO3zfnpU3872uUOrfXgew=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NPu7Kr9xqcbQmroxkiPXJoO8czU+p9nTsP+2VdxofFHPa/Uf2LpvS0Pql+ycfOqF4sgut+FC3j++98pe2qWB/Bitnk60RotYgAQNdKA+9Mll3BSy5QmyBJLp1MHkxzxFlMLb1X+7PMbbpTdpjRrEKH/FD7FAYuYzQkCiod4HQ+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=NtAt7AQI; arc=none smtp.client-ip=178.60.130.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fK3CUsnE2KS17+ZVqrhoIng6qc6MzqyQJVHWjI4HNs0=; b=NtAt7AQID+2XDIlh/uCByo3tkv Gw1oyQ24Jr526Oylb4rmcmdCH0y5lMolTcl0LRahNZmn+YmwQZNwjfCUoAAxo7YhUd190xzj9lDFv rAjnxSHc3FIlFwUcnX30R3EEd7xPkUG6fpkbLBiSxeG4RMHwb3IrJy5vqUG18396hMWPwgbO8uitq hR6XyKq1AoNiH1KpJq1TdtshoH4MvU2qa08F/XVD/servFRIORylGeaMniTz2VGgKgsii/Igdv5oJ hNNuMXvYJUAm6O6wccu9MUw28vxK1AJr1OgrQLZm5/okG7XClgj4mun66yg5l0V+uoWrGWKN6HsYf vn/DYpcw==; Received: from [189.111.43.233] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1rvFqT-003tEf-Pd; Fri, 12 Apr 2024 14:17:30 +0200 Message-ID: Date: Fri, 12 Apr 2024 09:17:18 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [POC][RFC][PATCH 0/2] pstore/mm/x86: Add wildcard memmap to map pstore consistently Content-Language: en-US To: Steven Rostedt Cc: "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 References: <20240409210254.660888920@goodmis.org> <20240409172358.34ea19f0@gandalf.local.home> <202404091519.B7B2221@keescook> <3391c693-cf54-526b-79a8-d565e7140947@igalia.com> <20240411154007.5bdf8d95@gandalf.local.home> From: "Guilherme G. Piccoli" In-Reply-To: <20240411154007.5bdf8d95@gandalf.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/04/2024 16:40, Steven Rostedt wrote: > [...] > What I think I could do is to have a check after memory is allocated to > copy the table mapping (in the heap) if it is filled. The reason I did it > this way was because it was the easiest way to save the label to address > memory before memory is initialized. I use a __initdata array (why waste > memory if it's hardly ever used). > > But, after memory is initialized, we can check if the table has content, > and if so allocate a copy and store it there and use that table instead. > That would give modules a way to find the address as well. > > -- Steve > Thanks Steve, seems a good idea. With that, I could test on kdumpst (the tool used on Steam Deck), since it relies on modular pstore/ram. Cheers!