Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp187979lqq; Wed, 12 Jun 2024 23:04:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSaSQ1SSmNLIE9Tnx3Ji2ZXaYhMVSblchccTkhV/cAxdZEUqqpuI1MFjugJ7pmW3nKDquSPBWdDAcVXMD1WBtZZnbJhi/GVAhZo1DIyw== X-Google-Smtp-Source: AGHT+IGPr8fckxWNLn2wnbD7oSPWkIuacy0L3ue7s61BiAvllKwETpFDaO50l+jgGfMSvS46jT28 X-Received: by 2002:a17:907:7754:b0:a6f:501d:c228 with SMTP id a640c23a62f3a-a6f501dd0f3mr172602766b.9.1718258698820; Wed, 12 Jun 2024 23:04:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718258698; cv=pass; d=google.com; s=arc-20160816; b=QtjgsTKXNGbywCzt/SwGtxQIJyzeZO3mxKS/6Gmc7GKaDnDNFo0fIM5YVEq/XLHB7/ 7f18BJRtCFjralMx+B1jPLX7nqs70PcWlXDajh6/DyE5oPJWoc9cqb52cuyfTI+et76l aaC+nZO0gCqWKOmyXsJFGcHKolYI27Ugbp6z9Ncb9K2SZ8bYUPv42r5HDVJRp3WdMNQ8 dclqKFgdqgrRSJcq/LrCj7wMHQDyNHXm01I13NVjANMfHih4zuvVYcDdyL+0hVVEn+nu 46/Yi/1dj0ocHv8ZOIG9Yc9F+g8hMOPBMjlSnIyM9VHraHvzlJVLMMHQvgM09BfKHLQr ATLg== 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=kc+2k7k6saH29kFh2PBw2w5JNJv25ROll27IAGgv4Nk=; fh=BndQBHBtUzyLuqv/gz6d9QCRYVx31pD3RZaoTLqp1Ig=; b=tOIpcvD54kbXUcyUACmXiQRo+cKYwAmZdrglvGpLQN5CFAQHTeJYU+DY5Gbcs9McDR V44g9xSwnXZ+41/JGAkyfN2WeYt2694v5LsniEV36cMju1Vd+Zd8pUxbCkOjmIAhmAXV JSyTV9vLa42ZOhQlSvyVN6hq6Qva/BbJexQIqiv6RFrfIAW2vFLu7yzlzIS8QRk0UHJp J1Pta46OaovoGsKz9eN46wK9/xNnZWrewHmZORHMMv1KGXVjB6JM0AhxsLWq7hA2YFoq WQ0D2R2glm5sQh2ve+FM0Q30T9PHq0+Vzei7FrbYQZ8HIIBIvcE+Ti3TGjjvV1LfnxW4 ShoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DxcenJJR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212589-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 a640c23a62f3a-a6f56e3cc26si33818266b.893.2024.06.12.23.04.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:04:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212589-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=@kernel.org header.s=k20201202 header.b=DxcenJJR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212589-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212589-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 879811F2209A for ; Thu, 13 Jun 2024 06:04:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91F981369AE; Thu, 13 Jun 2024 06:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DxcenJJR" 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 ABEA537C; Thu, 13 Jun 2024 06:04:50 +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=1718258690; cv=none; b=fLK/FaVsjZ5AASP9xGSLHBCrF52mJjwWCe3S65HCnxywsPdI8GF/obtiFhzjwzNl4ejFzKJqvGwncud+ocwf1oTGZleqylgZrtcSGJGSB96N8kZhMI3tzmhbEIdBY/bzf3AHMq7HySJGRypyc8NB/n0/2HxjiEr4cFuQoojPgno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718258690; c=relaxed/simple; bh=7LdEa2cXZ92dCOV0tvIy2du3N9yfvC7ip0HcqkAwNEk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WC+T/aIK0cZExL9LyWc2gNRtPdB9HwADQoud1F8/wGk7XzCchg13vF/4ObfzIBHUwcfMDPpraOwIXjmTT3Yvw2Gv2sxzRhu6ke+raXLoGQ0Aafw/HDVgjJ0VD6MZWrbR0iXTX7MDpB3li+pBVqBKKmES0Ek5+ZfYGL2uKGs9LaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DxcenJJR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B256AC2BBFC; Thu, 13 Jun 2024 06:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718258690; bh=7LdEa2cXZ92dCOV0tvIy2du3N9yfvC7ip0HcqkAwNEk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DxcenJJRa56E3C/mgOBon5mdRqu/s2dglNrbBslIgsKqZQPnSv42myJqNdUwbwS86 ZnTchHadTKKdC/FsOKWRlJY8omawHNlOKkPziXgC9DmDiAkupXVVOQsQ+ubwLizPI6 Xh6ETy2wifOBbI0rjnd/lDv9abcX7hG+qotJOSiv56gj30hJvBW5uBRCj67ST8B8rx ozL4oegTH5D4RyqBIJEV512FvBfIYw7aiekKt73/D6257eVpL9t5t3JtnpHRwzBb9n XPtR7VKWr7LKbamwS2COeMJPpI3dqc/YsGCBjNqvKoLT0eCi1L/lptXVP0PFwDqf1i WKxkzWrcXAJ+Q== Date: Thu, 13 Jun 2024 09:02:34 +0300 From: Mike Rapoport To: Steven Rostedt Cc: Kees Cook , 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 Subject: Re: [PATCH v3 2/2] pstore/ramoops: Add ramoops.mem_name= command line option Message-ID: References: <20240611144911.327227285@goodmis.org> <20240611144949.703297941@goodmis.org> <202406121145.8860502D7@keescook> <20240612145228.5bf426e0@rorschach.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: <20240612145228.5bf426e0@rorschach.local.home> On Wed, Jun 12, 2024 at 02:52:28PM -0400, Steven Rostedt wrote: > 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. I've added one more comment to v5, with that fixed I can take this. > Thanks! > > -- Steve -- Sincerely yours, Mike.