Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp646220lqp; Wed, 12 Jun 2024 11:46:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUce0FGM/7L4gPDeI48BSaWsH6tygC912QuCNvulhjEfbbi8btfCha++dEmCsa43UsfSzeRCmo5h+aHpSNh6WpV2D4h9laUxsc8Z35Dw== X-Google-Smtp-Source: AGHT+IEdUvSLu0C+/MwbEC30LixOsureMJurDicG9nmkfQdZK4Sp76bvqYyA9Hf2RxnjZvsaE1FG X-Received: by 2002:a05:6a20:f3a4:b0:1b8:13fd:c00f with SMTP id adf61e73a8af0-1b8bf063570mr610412637.22.1718217975352; Wed, 12 Jun 2024 11:46:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718217975; cv=pass; d=google.com; s=arc-20160816; b=PoSVTFTVKskIyceHFAnyYq44/DlkYnCBy3dBpJ58lRZ5FkaTTvd+qX6+Uq4dKwuu7c 8RpCVkeHMcA/RsTv0JXLsbnzvrUo8bmW/iaAZ6AdunhLaHyh34wcGCXd+DHwdktwhT15 7QZqgODzS3ddY2TstJkWnng/ibT4MRET3G7RpTVvI3VJdnjzCBeRdaYMSOQXpIySzN6b qz5k0zOtgfJBXf0MMqghbghAO4EiB2lnnwy80Qu3E5Y+2Oxj7lVzdk/Hi9EThX7+uKVY 5Inc+2OYTKufQgqGpY/bqjSiw16rQfwzN3Y/wv6zEi+TSCULL+/5fsW0k042JxtQy9cG pdjQ== 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=pknXtOKKO2oO8ItC47PqXes4W0sPmD2JIivUbQ5QqH0=; fh=C8z0JWFbe9TQQfCmvLv9ncTNXZoF0+Z2WVKHTV8lgdc=; b=er7Ube5gNG1/7AXeUQ08uR94BceCMUm8C6ZbHpL+/wxbdWd91awCSVbRafAUiLZQlD jQrhzL8CPoI4RyydbCpVqvBZLEv6UZBJmkJ+I1jr3qwHTXp1pGF4vaSFYT10qQFqAKIY Pm/NJdvhcI8N1prh62ZLGyf54YxsLrJxKjk+E3eQvpqnBbpozz8CVj/ocWjgFxCAgOAf ei/p1l7sB1WssBf1BjP4o+bk6e0Xr3fHSbtHiMjljzsZ0UQaOAO7jne1NXj9q/TZPMOT oTA1SI8MonJnFrPQz2dULgRqdOM0LzRmvkdjx/WrbThbMXcEX5QUyKXRMouKYIGDvZct uIZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HbFj2lOK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212115-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 41be03b00d2f7-6eb26acef3dsi6935599a12.852.2024.06.12.11.46.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212115-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=pass header.i=@kernel.org header.s=k20201202 header.b=HbFj2lOK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212115-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 EF71D28E2D3 for ; Wed, 12 Jun 2024 18:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D9754F1EE; Wed, 12 Jun 2024 18:46:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HbFj2lOK" 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 B4D5E2135A; Wed, 12 Jun 2024 18:45:58 +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=1718217960; cv=none; b=NjpPkgdGxlKUexMQx1nP07jaec/j4p1cOyVJ/l3w6RYr8gJz0Tno1jINZ9apVWmkLkaoWdESTtlM6IIyyM78ZBw6KpLOA7QrzPc8zVByd5ANRDs2D1yM9kWdDrBvGKoX4stHJQfadDmQ3PfWkwtcjE9TrPlSISwG+6YGzrZBQqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718217960; c=relaxed/simple; bh=dXhvjwM/0oFIvt2EbGPoQJdmtCjDsX+7C5LbE2ZsBNc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h4PcrEsmaE2HTDNQYkowTdBis6NaEdb/7E2ca4aedo8JR8U4V02PJfCauRpLNj3cmZ0E7v9cFPNYkjYm24SyRuRZLAjAmJ9RNAPwwb7dMQONoZV2AbkHK8SmVba26qw8wIcd7WvJV4GdaTs6DGfPh7N6Y4TBicSE/wIAGkf7pgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HbFj2lOK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29118C32786; Wed, 12 Jun 2024 18:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718217958; bh=dXhvjwM/0oFIvt2EbGPoQJdmtCjDsX+7C5LbE2ZsBNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HbFj2lOKKRLqmpNJyH1ELmss+TDEz4RJ1NB0NKtbvEQ2Q6/0z5WVXLtB/tOQOZ0KV EAy+4jYi1xAS63Q/3Nmc3D53yrduqGvkwkWy80rWFLxGYC/t3ubqBJD90Hw6ORZiAm tw+lzL1LOEn4fgoAEEB2R8Vb8Nu6CeOFEk1/4IECUnTQ1kPSF4v1GPdUyuW4gnaV8w h55x04pfatlIDpIiWLt2lDQPIYDhcA3YGu19NkxWsRwfKSuLPCjIGqMPtncmjSd6LE M0qxhxk+ERJ7Q6e3qi8IC4pbnahl/1I6ROoaU7q+pzDF+hzQWqOx0q76fNHfbPbuck 06aLuT5irhExQ== Date: Wed, 12 Jun 2024 11:45:57 -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 , Ard Biesheuvel , Mike Rapoport Subject: Re: [PATCH v3 2/2] pstore/ramoops: Add ramoops.mem_name= command line option Message-ID: <202406121145.8860502D7@keescook> References: <20240611144911.327227285@goodmis.org> <20240611144949.703297941@goodmis.org> 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: <20240611144949.703297941@goodmis.org> 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? -- Kees Cook