Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp78553lqe; Tue, 9 Apr 2024 15:19:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlFOvkTkndMArA+/s9uCA9mQXFh+TZSO3kNeiPBGLBZFOTZX6UFIalFPGgJt/F5fC7Zi3Hc0uPCGCRiqG2S5VS9ESGGaidykoeYu9jWg== X-Google-Smtp-Source: AGHT+IFpGBG7q4B6vBIwKeN/Y06WiyO5AQX/41jZT5r2qO/SZsrPRnaAkyB7XjehmK8i0lHq1Q2T X-Received: by 2002:a05:6a20:3d89:b0:1a7:8127:c919 with SMTP id s9-20020a056a203d8900b001a78127c919mr1359267pzi.43.1712701197965; Tue, 09 Apr 2024 15:19:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712701197; cv=pass; d=google.com; s=arc-20160816; b=LIp0BJHM2FSpjZJcRhGeHLpIuubXBdO/w0jAP89/wWjQj8x/Ug5UF2+uWJ+RF/wWHh wNxdLXNKpw1p6BNRvPrSfi6xEPih3V0Dgg1rL96e09Db9IMm3DV/UdarSSI0NlnehJ8/ SajPu1mI7MPys2XVdP448gq5mCugOwE85bWnPgzhDBdWAXclezYfL2CXAyJn01avS1SA usJa3MsaB/qzA+MYcYoc2gkzHwonuMfMUUXMNvnXQULKHcy+cex2SyM5U7p0sJgwMoYY nL0oxx9trVtJV93hyx/QQ1Hqm83SAa46zZoKmML7QQO8VpXrkKAz8XzUUIhDmiN/E7BV 5wlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dVGaEP7K5QMj4iEVzjXOSGPdsEqHFt6Mr5ict+7OkIA=; fh=k4SlrlEGTrHOMVXoccoVazQgKvryFofHyZeMb03is4E=; b=O9nWb86spSlWRE7Wl+hMQ4BGFeFNuoIShAVrsLJQroH4Kc2qg1keK/uMT+Su2r+hMC Yrxke7FkROcSdXcA8B3Y7KwTZKgg0cQGeIi3ndKpOTNXx3BXdRqfIMi7B3ywTPP+NBm2 b7qL6SrUt88BmEoTpDRXqWeugPGt39BfExA6qanPtrWtVA3QuDn/tZFWI4tisdRNrk4W 2Idfox18XWS61QxLlUggb1AkNcTExlO9beZwHdSvPdX67KSEWcerc9Ab+CQfIdr+PC1Z jAtmG9ej+FgRm8g7dz13Msz0Wa6jC5wx5+xMbg14bVCtFbZ1TR9dxsx5mvZcrG10YLq5 YwbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EkS3kAfm; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-137661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e3-20020aa78c43000000b006eaf877dcb5si9216292pfd.372.2024.04.09.15.19.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:19:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EkS3kAfm; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-137661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 A3DBA283EAE for ; Tue, 9 Apr 2024 22:19:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F90C158D8A; Tue, 9 Apr 2024 22:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EkS3kAfm" Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 70919158A2B for ; Tue, 9 Apr 2024 22:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712701191; cv=none; b=jyjXPYoPfha8gk1DqxQ3zvZskTIN5ZgyExjqoaZUp7MxDhqyweUAYzUCblmtwDD/4uolJxYdXsr1/0djDpISQPiSrFTHaUO3Y3gOTVg/1qXYTInRUOSV3hO19CR77lY95hZANjQJNALsh9nI0/MU42vjeVdnFvXPqz3KHO6sEQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712701191; c=relaxed/simple; bh=EYMsqegjT4OXpgUDL/2KYBA7Xq+Ay65w52yrQrkbRj4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E3T3gt+kVHvQz/iP8FsjAUnFF9KaNF6Mz0AEN5FYaRFFKkMRBRvmQwd6EvMX6sFbLAdPTm9l728Di/Mm0cvapzQJdgMu4Nqth4lBxIHCK0VfR4bqwf2rfJI+kD0G2M7Uxs/NN7ioWTH/RpAfrCAZhE0RpaZm9Vd3LZc7RaPRXDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=EkS3kAfm; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1e36b7e7dd2so39404855ad.1 for ; Tue, 09 Apr 2024 15:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712701190; x=1713305990; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dVGaEP7K5QMj4iEVzjXOSGPdsEqHFt6Mr5ict+7OkIA=; b=EkS3kAfm3b4tg5R0ENXz6MqqojkQDmkTIcn+4G7j29Pd4leFC1THFYzfl2xRFSAJyo vQINOf6H+q+RnxTUIFRcHdB994UNjBTgi1guHuCJtwc5Ae60hdlBcx6hbEhwOO8X95o5 g7r/zckXU3zj6QMeb4UlyzHTbz9rAuLUJPI10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712701190; x=1713305990; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dVGaEP7K5QMj4iEVzjXOSGPdsEqHFt6Mr5ict+7OkIA=; b=eTlqxbR1XNBXGteErokwxbnMAWnj7TtmabD+PCZDu2xEUW3q5X5gfpK8oikhvZZqAn JVzNjPQPTdo01Pwv+7Ga96J23QVRQ/nkP869lNhjUDbcO5JRxTvgIzgBm0K5tQx9WAoi 7DPv5Ct0Wz3zdzhDuBAdBX8Ei1zqmokRntmj1PI5/9xbhnQmn54/AJcvnWGUY93khasq ExbvnFQk6rCgMSH6c3MZYPN18E1QO0u3oTiGKfmZmxszDy7rWQoM1DSRan/BIZPk/45S 8rSHYOocVjXKmIvBrBEzguvv+xuqwsGuy/kQ73nbU8ByIPagk6o/fLss+lLFMXuC45Zg WqUA== X-Gm-Message-State: AOJu0YyhjqWaUqTb11JujylzymT6eu8PmBcZMMNJASyfoX0LCuH3XYmI ZWU6TUlf8X9YtyxdpwvPjpoq4uAKiutzJpU6nmEdDqMSZEhItKjUBouM5OKznw== X-Received: by 2002:a17:903:2441:b0:1e4:1fb8:3216 with SMTP id l1-20020a170903244100b001e41fb83216mr1246750pls.52.1712701189791; Tue, 09 Apr 2024 15:19:49 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id b3-20020a170902650300b001e4ea358407sm205887plk.46.2024.04.09.15.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:19:49 -0700 (PDT) Date: Tue, 9 Apr 2024 15:19:48 -0700 From: Kees Cook To: Steven Rostedt 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 0/2] pstore/mm/x86: Add wildcard memmap to map pstore consistently Message-ID: <202404091519.B7B2221@keescook> References: <20240409210254.660888920@goodmis.org> <20240409172358.34ea19f0@gandalf.local.home> 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-Disposition: inline In-Reply-To: <20240409172358.34ea19f0@gandalf.local.home> On Tue, Apr 09, 2024 at 05:23:58PM -0400, Steven Rostedt wrote: > On Tue, 09 Apr 2024 17:02:54 -0400 > Steven Rostedt wrote: > > > memmap=12M*4096:oops ramoops.mem_name=oops > > I forgot to mention that this makes it trivial for any machine that doesn't > clear memory on soft-reboot, to enable console ramoops (to have access to > the last boot dmesg without needing serial). > > I tested this on a couple of my test boxes and on QEMU, and it works rather > well. I've long wanted a "stable for this machine and kernel" memory region like this for pstore. It would make testing much easier. -- Kees Cook