Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1831125rdd; Thu, 11 Jan 2024 10:23:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/nOsgkzk5iEhYSSmRE+7BAYQxrI3Ij8rg271XvJIN0D7tzlDBjptttUb9j1X4RA7y/1n3 X-Received: by 2002:a05:6870:4c15:b0:204:177d:bd32 with SMTP id pk21-20020a0568704c1500b00204177dbd32mr134720oab.38.1704997435438; Thu, 11 Jan 2024 10:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704997435; cv=none; d=google.com; s=arc-20160816; b=xeG7rS3MzYAqwc1Y13HG2P8j5cwD3I1PSdGsSbeZxUHEez/RIpMFB8j7DIuJ2Bra/h f6q+98fvP8NT4Q6rYccGnidbuAaSURjnctRDau0cBYebVRqSDjTfLQ8JaNfu+WnbI46Y kZElvPwd0liNVMUePGT9nJsW++4cOTg1auNJgJxhis5uY51poIZvuDEza1IjVVPqYwAl ZJAp0avObapC6DMFJ+F9yGginykNSSGRgHDh/lF21dQWCsnpLwldK7Hx70M6rxSrcN3W /IMkacMAcniPTgSkglv6WG2gdr81QhPJ/tc2X061wQroSjkkGeIdJIMfXnSePYwhGDmx X46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=erWBIThr9pC54q09KuNFGdP6PgPpSW4ZP4DGU/8aLhU=; fh=NO+OR3zM7ao2oyn030WU7zhu/+UQsl9Yv3B7QZJ30uk=; b=T0NxC8o1AYZfKs6drAR7AymLymwaM4YgTc11epCByP6mMozV4M3SEdNqwwNvcYDXuF zWxnXVQvR6SdApcxwYiZnKKtnROUwM1n2nLL6ccveTlBiqxRsbTd0+guZbK32yxJJ3ua TZx1CtStKB5Pu8Wq/pbQ9cdHK/weCHoBGs/qb8/djsLiQLN/70Zd1zCDANztnMXKqDRj JvLh2nURF88U9/svRv1QXVgHTfA9NgPdIkSfPyzFE5ozqGdYgCdiSK67HJy7RQR2tR6+ ABgLSoh/DIHcKLLU6fTN6VqPsDopEAV62S/0OiHzhieA4b7tgp2at0/LPE+r7jgXECxD 3Bew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fMkJKA6X; spf=pass (google.com: domain of linux-kernel+bounces-23976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23976-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 i8-20020a632208000000b005ce12777a0esi1546444pgi.880.2024.01.11.10.23.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 10:23:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23976-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=fMkJKA6X; spf=pass (google.com: domain of linux-kernel+bounces-23976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23976-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 17393285FC4 for ; Thu, 11 Jan 2024 18:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F64D54BC2; Thu, 11 Jan 2024 18:23:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="fMkJKA6X" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (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 0089253E1B for ; Thu, 11 Jan 2024 18:23:48 +0000 (UTC) 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-pj1-f42.google.com with SMTP id 98e67ed59e1d1-28bf1410e37so4752298a91.2 for ; Thu, 11 Jan 2024 10:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704997428; x=1705602228; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=erWBIThr9pC54q09KuNFGdP6PgPpSW4ZP4DGU/8aLhU=; b=fMkJKA6Xiuw8bcAhwdaujeTFqUUhyuE97YRZGykUS9Xd/FwHbz/Fun49y/n991FJ3y fVu26wPhODciYLMRvdr9u9QqISsCrxV6iPZ4+IEgTtZrJTrLuxa7E2WBJcJGU3ipM99w O1hAYcRx1qzMvCWUZ3mbQT9V2oBhLO2NYtPt0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704997428; x=1705602228; h=in-reply-to:content-transfer-encoding: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=erWBIThr9pC54q09KuNFGdP6PgPpSW4ZP4DGU/8aLhU=; b=wBDb+bY+caV4QOkTJjdslnwdvf3RoBg4fHKVLA7TTtJsr1+WBVMFub6VVq7nyXqOwf kdMd1MAKTU5QoSnjj8fRsV4MBhtkZS5IGZbD8tcMRTRqTvyn4f0V3EhEvlKc65XJKipF pmXP0HLSDBsc5Ti7pW0nEhKdXXTkWzTXrS8yeTfvbjB19A5kPiPn5YFjV6KJciXhkLl9 9EBVQEUId8ZSxEN6bc2bUIJ9fUXnwQJvs8mOmHxVI5CDofW/owsAWVtdkxxwP4/JvYgL 9BKTMD/mlGcmhBmGQif9aIlRQgEwaX8K1DX0xSmSoQaZs3PV43EVHDRW5DzEboNpFgJl C8cg== X-Gm-Message-State: AOJu0YwzyDA9FJiXJiQkbIuvT+WPuabJDnjHBKa5SPEnhVAWEnJK1Gxg Ea1ady7KjEX4TpXYK4XkJ0zRutIRaFiNXUePBP6PMcfjyno+ X-Received: by 2002:a17:90b:3447:b0:28d:dbd9:e8e1 with SMTP id lj7-20020a17090b344700b0028ddbd9e8e1mr226082pjb.1.1704997428272; Thu, 11 Jan 2024 10:23:48 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id sl5-20020a17090b2e0500b0028ae9cb6ce0sm4282609pjb.6.2024.01.11.10.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 10:23:47 -0800 (PST) Date: Thu, 11 Jan 2024 10:23:47 -0800 From: Kees Cook To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: kernel@collabora.com, AngeloGioacchino Del Regno , Arnd Bergmann , Bjorn Andersson , Catalin Marinas , Dmitry Baryshkov , Geert Uytterhoeven , "Guilherme G. Piccoli" , Konrad Dybcio , Krzysztof Kozlowski , Marek Szyprowski , Neil Armstrong , Tony Luck , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: defconfig: Enable PSTORE_RAM Message-ID: <202401111022.DAF55CF8@keescook> References: <20240110210600.787703-1-nfraprado@collabora.com> <20240110210600.787703-3-nfraprado@collabora.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240110210600.787703-3-nfraprado@collabora.com> On Wed, Jan 10, 2024 at 06:05:03PM -0300, N?colas F. R. A. Prado wrote: > Enable PSTORE_RAM, that is the ramoops driver, in the defconfig, to > allow logging and retrieving panics and oopses to/from RAM automatically > for platforms that have a ramoops reserved memory node in DT. > > Signed-off-by: N?colas F. R. A. Prado ARM maintainers, I can't speak to whether you want this defconfig change or not, but if you do and pick it up, please feel free to also grab patch 2. If you don't want this, I can carry patch 2 in the pstore tree. -Kees > > --- > > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig > index d48659217bb4..0b0ef6877a12 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -1589,6 +1589,7 @@ CONFIG_HUGETLBFS=y > CONFIG_CONFIGFS_FS=y > CONFIG_EFIVAR_FS=y > CONFIG_SQUASHFS=y > +CONFIG_PSTORE_RAM=m > CONFIG_NFS_FS=y > CONFIG_NFS_V4=y > CONFIG_NFS_V4_1=y > -- > 2.43.0 > -- Kees Cook