Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp86224lqe; Tue, 9 Apr 2024 15:41:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXn/1uszAzsDy4ARiaGvsgD8j8ab0vEivaw8f+hhZAFmr3gA3zBUdZlMO6oT/A52oyOtL/28rOo1svlKMIIICWzmiJ210HKFqTkgcok0g== X-Google-Smtp-Source: AGHT+IF9lQUqKC3CRbdrtlQEH14k0tZhmI3OyUz4Rc0NeSc0eixJG9HQEIPaN4gLqmkMP2TC2Zoo X-Received: by 2002:a50:871c:0:b0:56e:3088:49a with SMTP id i28-20020a50871c000000b0056e3088049amr716443edb.37.1712702491465; Tue, 09 Apr 2024 15:41:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712702491; cv=pass; d=google.com; s=arc-20160816; b=XLKnOYgONZQlitXUzm0pxkrzPemssKTwY9Zi+QvOLiWntBSSKNCrUwwIZRQAhpktkk ajjKLcilyzA+oSb1aIcMYNPeHc3USlnfPs9B0W3I/3ASZFh+3xqoQi6/hHZWgQXarQdg 6eEEm1AC4409bDlJsgysvGWwTXzihqvqdJG+4zFJGZdJhx9fubT2eEfvggOME26ifmh1 SWp5l0yZrWQgwqliuA3W528kasGW5Rw++F1tyrLNDFJnVJ+xrvvfOUiZV8BxsEbasZLu hgrw+6CbtoybmspIWy2KFc/agXZ7v8gHcA6tS0xZ5bfi5ZG+MN+khJXOJm698QDO4gLV Lu5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:from :content-transfer-encoding:dkim-signature; bh=3NhGzvOWJu8inKax2x217roNis9rN/Ham5KfaPA0/Q4=; fh=tBQgSnwFzCHI8p89q52ox0RDHMcUnnxRhOUMaZG62Ak=; b=UKeUS8Eym/P8sa1P+Xpz0irfMilhOU/inIkEfdjwMRRFE8Sjf3bA4JXwdg6W72B0nK vjudl7sGB4IGUcl3fUgpp8Hqj18wM2Pkr4jt3AiMgzjYjpqB2XBSNRgN+frgHFCqKb1S spXVeXrsGkq5dl/rdwpi48geJIqiY6AZ+B2uy8hdj5+96ZQq1f1Bpc8iap8P6Gzwem9T U5KzYFKga3ks89myjsWxdfI0TGzbCnH2jhI2wk6izuiBAaLZNIKx3UG6bXBxBveJrxFK 87eQUJf1a7PwPy492RraVpevHJAIMKvspv8FrSG40KOcSLS4x8oHYgYgf4i0STFbCW8M y7jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=le6yobmN; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-137672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137672-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 h22-20020a50cdd6000000b0056e75d4cbffsi939614edj.389.2024.04.09.15.41.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:41:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137672-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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=le6yobmN; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-137672-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137672-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 0F1931F22461 for ; Tue, 9 Apr 2024 22:41:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59C5B158878; Tue, 9 Apr 2024 22:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="le6yobmN" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 022D4433A6 for ; Tue, 9 Apr 2024 22:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712702481; cv=none; b=FBA+QuAMlR17S/yc5rbeR5lP62icY44CPGBetJA7gM+AiQZTwGFMZOXR1RBFOeIOV6+t0zyONY1YY4757JDlq7nwTyIsunAMjKrRsmSXAwbxM29DFx1/Myc1qpoMFQz5Jv/hYOsJSFoWJxOxz7YUZ9s0G8rjt0jBGpibbMZDD+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712702481; c=relaxed/simple; bh=3NhGzvOWJu8inKax2x217roNis9rN/Ham5KfaPA0/Q4=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:References: Cc:In-Reply-To:To; b=mWIj0dmfklLTGwsoV2k3eFwCyWQdvCTcRK/DqAJBG5xqb84IJvWRdYLGAr13h1TPXCufKy+h7HHXIk3DK5AjNltO7y7VeEjld8lzIT2Eth1hfy0vyloAx0bnrewQoDOd08SOCX31DffCThYBFbPUJbMyO3ajD6BrAAUc9KBhkiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org; spf=pass smtp.mailfrom=joelfernandes.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b=le6yobmN; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6ecf05fd12fso5127135b3a.2 for ; Tue, 09 Apr 2024 15:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1712702479; x=1713307279; darn=vger.kernel.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=3NhGzvOWJu8inKax2x217roNis9rN/Ham5KfaPA0/Q4=; b=le6yobmNKIk7IcTrMR7Yh1AwzfvsJdsn82Viz0c1EC3SmHM/Rx+55n58Ug4HFiHvP+ mvLXPVPbToE1zLeMe7C1+f/FOd9XTiMtbuVNSEvBLoed+MtHbbtgyIThSBoEWKXyGwVF K7zRAWYmoqkOjBvgpPSaPytSO9wvKW7kAwOeA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712702479; x=1713307279; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3NhGzvOWJu8inKax2x217roNis9rN/Ham5KfaPA0/Q4=; b=Sv0b9Tw2ddHTASuApWZYTswSReN7a+DBdj/ACks1saQhzLr/NKvBDtoU1rAhgthR1x alghdP5r+rMa+jDG5J4Tem8CP50bqDhk5/63AJWZvjR5lxYp7szGSOA3RPbofN0ym12T T0YfEUV+3ldYfiCWyUwinvKIcyoAs9srPrl2Xw4lBA1lCk9oc/o+M4gcA8K9NbWupTsM VxF8e3nvA926rfggh5cLSEasyYB8Yo/wQHcL60dA5dJhZKbG0GV6RsPX3dkuteOLY5OX 5cKa78Xtr7feEbrEwvhkgx+Bs5UwTk/CTCGab8zocAZAd4G2A1y4k5xyPgKY7mFCMOuj zkKA== X-Forwarded-Encrypted: i=1; AJvYcCW+2C/ysZ1Cbgdd2t/w0stimUPMSrYPANw/964Wyk2s/xnWZegWB6YQ2oEFhL4G0DtoGFPbS9+E6hUKesfQ6wDCEe9uGcffQ9S9mE/q X-Gm-Message-State: AOJu0YzDqvWeO4GScYbNs4zmO5Er5npUep57xbbT/tXFcOye4iB7TE2B J/c9VTT1d8XasXYKMwgedXo3sC1WHBXwqtx0COPQv89/C1opPPB7TEZsw73D3nw= X-Received: by 2002:a05:6a21:1a9:b0:1a3:ae75:d6f5 with SMTP id le41-20020a056a2101a900b001a3ae75d6f5mr1505619pzb.20.1712702479019; Tue, 09 Apr 2024 15:41:19 -0700 (PDT) Received: from smtpclient.apple ([103.98.78.154]) by smtp.gmail.com with ESMTPSA id g26-20020aa79f1a000000b006ecee8c8c0fsm7200440pfr.176.2024.04.09.15.41.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 15:41:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Joel Fernandes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (1.0) Subject: Re: [POC][RFC][PATCH 0/2] pstore/mm/x86: Add wildcard memmap to map pstore consistently Date: Wed, 10 Apr 2024 04:11:05 +0530 Message-Id: <9F1B6537-F0BF-46E1-92A2-92C082DDB573@joelfernandes.org> References: Cc: Kees Cook , Steven Rostedt , 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 , "Guilherme G. Piccoli" , linux-hardening@vger.kernel.org, Guenter Roeck , Ross Zwisler , wklin@google.com, Vineeth Remanan Pillai , Suleiman Souhlal , Linus Torvalds , Catalin Marinas , Will Deacon In-Reply-To: To: "Luck, Tony" X-Mailer: iPhone Mail (21D61) > On Apr 10, 2024, at 3:55=E2=80=AFAM, Luck, Tony wrot= e: >=20 > =EF=BB=BF >>=20 >>> I forgot to mention that this makes it trivial for any machine that does= n't >>> clear memory on soft-reboot, to enable console ramoops (to have access t= o >>> the last boot dmesg without needing serial). >>>=20 >>> I tested this on a couple of my test boxes and on QEMU, and it works rat= her >>> well. >>=20 >> I've long wanted a "stable for this machine and kernel" memory region >> like this for pstore. It would make testing much easier. >=20 > Which systems does this work on? I'd assume that servers (and anything > else with ECC memory) would nuke contents while resetting ECC to clean > state. If that were the case universally, then ramoops pstore backend would not wor= k either? And yet we get the last kernel logs via the pstore for many years now, on em= bedded-ish devices. =46rom my reading, ECC-enabled DRAM is not present on lots of systems and II= RC, pstore ramoops has its own ECC. Or did I miss a recent trend with ECC-enabled DRAM? - Joel >=20 > -Tony