Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp649409lqp; Wed, 12 Jun 2024 11:53:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnJV5DZpwxZHbVu6QYgGfBdbBMRZf5pkxqe6+rorF7WSg2zzXnIqPyyFfv3z1JUuzup56Shx/AKb/221f0l9HwXWiRx+iseVcM8vUdNg== X-Google-Smtp-Source: AGHT+IFGF5Z3SLeGIMOMQJixhBpLqdSEI5gNNSQoUw0xrHUABfurNcHe1EqCJE8/WvF5k8Fzo9E9 X-Received: by 2002:a05:6a20:1e49:b0:1b7:733c:d1b with SMTP id adf61e73a8af0-1b8a9c3a6a4mr2270481637.42.1718218389767; Wed, 12 Jun 2024 11:53:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718218389; cv=pass; d=google.com; s=arc-20160816; b=UiZiwSs64SNePlZh1q/0ZiBbTFueRottfp1altI3ru1kD3Hoybx10J/CcUp/m9CnnZ 8iH2Opb6lNDlCqX+R3n0v9wFAEIyjBlIm5jauaRgZbaXU2OWrwadVlVtwE5eEYZvk7Ax gpqk7Rp1g+yMQCxUDExrwGcLkQ36Jnq+Srmux7DF38IoBmzzUpoNXoVjcev1uMvf7jCH viyqzZqxkSQDN+GsaGAG97RBPGbVpGuPICao+8Ih1h2gzGqy+6JM4PW0NawYq2iXaBem cjuwbek/cf72ULn2xgeQRjSHkfMczPa0Qn0UlczgU/0XOst1JU9dhVyqg9+aAf4ii3V8 J65w== 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=/PWbqMMFQclj8VRGDHcgsqWGpBy26Z/G/T84NEELnc4=; fh=qtFCexWCw92SszRvaiFRvOEL9inZ7nFla7NH9nOBlHU=; b=0LAuurI0WbJ/2JWY0K0Xn1gSo96zexbIV5tcy4O+TjM3fGzIV91cOygmwCztmDrPrO Ug8Zk+xMYtN5MeCLiX9xjqPAsoe6OLcgdlcThVKzYsSKTLUS0JTDnv+ac2Zb35/wY7GW 2i3imy2GPdmNUS9dXUnP8Z8dJN+57QufGqR2RS93u24W1gIMunueQFyzbUX/iR9GySyy V2vQvfMLCjvFfeO0FCzZnfcUuHm/aYOgvuFr62HF1iPaLrJ/qr7OVxU9GCN+WYUN7W/E DjTMRnMz9QOwtNPyOqPudVBWMGtZEOcICnrGAaGWqyHd+Ytjk2zWDd/7H0TbXvuMJ0Gz vPOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-212128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212128-linux.lists.archive=gmail.com@vger.kernel.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 41be03b00d2f7-6de29abf8aasi8965969a12.762.2024.06.12.11.53.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212128-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; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-212128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212128-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 EE8C528EFB3 for ; Wed, 12 Jun 2024 18:53:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79FE85FDA7; Wed, 12 Jun 2024 18:52:34 +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 EAF5F4F1EE; Wed, 12 Jun 2024 18:52:33 +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=1718218354; cv=none; b=dFw+gQQk0r5gGedfWFHPmBseGq2q+tCQR/Xo0BgpKSmEtIuN9+KRfKumliGsLyCW+LwGgpPz03CIxG3/yYmYm641m/ew+7eo3QD1QjBhfsEE7/jSckda5kZegqEnLsHN5FAxGKe9uB7XyJaHXGdyE8LYaH9U+JWO9lyyZitN9C4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718218354; c=relaxed/simple; bh=AFNQEyQz8NyIoVuU/XMy7q/Q54NFWdA/wuxRXPywRUs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=P40He/iEgyvZ2DTUP3+nNTDHcrf1QhFkFycbdJuogUwdT4TmMdpmJ2jutVsvlj/9J73PlYtMVyJYzZcsEvq8rJIeooBVj297jFnM2GuIRelbIsAYx4Z8CaGBODqoFpnQ9YBeeqe9aoO+TP5Y6zK6jRsDxtsgI8DOuUJ00vKqkh4= 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 DB7ADC4AF50; Wed, 12 Jun 2024 18:52:29 +0000 (UTC) Date: Wed, 12 Jun 2024 14:52:28 -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 , Ard Biesheuvel , Mike Rapoport Subject: Re: [PATCH v3 2/2] pstore/ramoops: Add ramoops.mem_name= command line option Message-ID: <20240612145228.5bf426e0@rorschach.local.home> In-Reply-To: <202406121145.8860502D7@keescook> References: <20240611144911.327227285@goodmis.org> <20240611144949.703297941@goodmis.org> <202406121145.8860502D7@keescook> 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 Wed, 12 Jun 2024 11:45:57 -0700 Kees Cook wrote: > On Tue, Jun 11, 2024 at 10:49:13AM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > Add a method to find a region specified by reserve_mem=nn:align:name for > > ramoops. Adding a kernel command line parameter: > > > > reserve_mem=12M:4096:oops ramoops.mem_name=oops > > > > Will use the size and location defined by the memmap parameter where it > > finds the memory and labels it "oops". The "oops" in the ramoops option > > is used to search for it. > > > > This allows for arbitrary RAM to be used for ramoops if it is known that > > the memory is not cleared on kernel crashes or soft reboots. > > > > Signed-off-by: Steven Rostedt (Google) > > Acked-by: Kees Cook > > Let me know if this should go via the pstore tree, if you'd rather carry > it? > I'm going to send out another version to cover some more comments that were made, and perhaps it's best if Mike Rapoport takes it through his tree. Thanks! -- Steve