Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29676970rwd; Wed, 5 Jul 2023 15:58:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlHI9GGBFb5eROXrxBU9WX5wsC2PZYenFZKs3alEhb1s+wO+Sec72/Ww4cLo6JVQX7et/g6d X-Received: by 2002:a05:6a00:179c:b0:668:83b7:fd02 with SMTP id s28-20020a056a00179c00b0066883b7fd02mr186837pfg.31.1688597918711; Wed, 05 Jul 2023 15:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688597918; cv=none; d=google.com; s=arc-20160816; b=ML2T1AgkkfdybvUXNc+cQm3i/AWv8EU0hTkXP76NEQCe+SC6adZRwVD8jA5/zyvjEK efa75Gok1qPxFSIvnnQcpfmLe6wnaNRyYp3VNCdVznvVUG/8AFBu0/Emy5ccXiVhUJCG ZTywNJlSvCtjkkJgQN6iBAjhyWRhI70xSRmzKLqYxExKmBFdSudcNAntBrcNmL/EyGHe AajPAB6NxoR2nGXQa5Q0CEsxgsaYi5EqBHavxTlW6bJ+orEJuDrtjK7ybVo4fDuz34ta VBTFbNeE+ApCmXeDVFoqwPsIDMSE5Kwjjhwtq6Vyri4W7X6iIQc4ZzitWSSTh/lqKCAI xDHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4t/HHKLfozsv67Y5fojGuZxU83pEeYbU9lCaGZWyjqY=; fh=hAuja+GFgGuylKlMfLQ2HYjfWU33qXGMCZPIWf0yAGo=; b=CkTGFC/Am8iegaBciUKY9m53Puah3wg8W/InGU6GtD7h/6qTnRG1i9cW5OOelCnHbp cltHVludcTZlDOqFQaZctCiz8qzNSb9fgFZEOUqvOzEJmMhKXMzd/w4R/jbqLidSFLf5 Zn0RWQxoNdA3WUc1npn8FGRcFK0Zc6SogjTHSuWCxYfcbSrbndbtnaz/UTS8/zN5s3VB Wzm/wWqbc6firLUlzpNdRT9l6xrqrJmRq85i9trBQfjQg86xxWAOetjxYtLQASf/KIK6 8PQumHddZRAC5Btu1/HJCnf0fgWVG2ujHxpOogbd5TeF56reRzQYQwoYejEI32GVdg42 yqsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Te4W7od8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u35-20020a634563000000b0055ae207577csi152049pgk.650.2023.07.05.15.58.26; Wed, 05 Jul 2023 15:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Te4W7od8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbjGEWVK (ORCPT + 99 others); Wed, 5 Jul 2023 18:21:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbjGEWVI (ORCPT ); Wed, 5 Jul 2023 18:21:08 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37EF4139 for ; Wed, 5 Jul 2023 15:21:07 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6b711c3ad1fso46171a34.0 for ; Wed, 05 Jul 2023 15:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1688595666; x=1691187666; 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=4t/HHKLfozsv67Y5fojGuZxU83pEeYbU9lCaGZWyjqY=; b=Te4W7od8zDqp8hEuanxEO19H9IYsRKKKTlsuKFVa61Q1VTWbAxI1pKlXkm/ylV9aE1 XuNqtjFrnUW+vRwl5Tf6C9JSiHzM/fNbYk3uft864rJstXhk1ciMxX/bQupw9xuWZGtI z2sjU+7IyzKGpCmixvqckwbZVSCiSp8qgmG0k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688595666; x=1691187666; 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=4t/HHKLfozsv67Y5fojGuZxU83pEeYbU9lCaGZWyjqY=; b=dC7JSAaN2UVvi71Atpw3UXK7Y/rKnxCkIkWCKXUEM5HzUMtOlUTY8P6oDAX+DuSnO+ 59LGndaCfhArq8rj2knVlzeES/z4+A75AsS8ultdqXXUMqU6qGA5jZY0t+KyLBy73sYM Y5O65XQo1sqlTpSXR3vZEA+SIEsl7kj9jLTo2XA8C2KR8/VkIPu/230nA5+RVV7vaAZP WJjV6jDRWgMMPxp8FGo9/fspZHRQmhk6S+14vCODf13PKBCF6hs+ue/CsN4/lDSmG5Qu ij9iG61e8fuGhzXOud2Dx2Inna+R7iDl9LPGgCtPK6/CpNyrOBSfh43r1LUlJotDyxvo yMgg== X-Gm-Message-State: ABy/qLYI3oKWYWOo94xGdLwL/HOf6ZWX6DRjeTFCTkCgw3DgyHn64NK8 7uQrHxIkdqEqW+G7C+qgPWKc5Q== X-Received: by 2002:a9d:66c8:0:b0:6b8:67bf:fdf2 with SMTP id t8-20020a9d66c8000000b006b867bffdf2mr296865otm.11.1688595666568; Wed, 05 Jul 2023 15:21:06 -0700 (PDT) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id c8-20020a633508000000b005579c73d209sm56667pga.1.2023.07.05.15.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 15:21:05 -0700 (PDT) Date: Wed, 5 Jul 2023 15:21:04 -0700 From: Kees Cook To: Krzysztof Kozlowski Cc: Mukesh Ojha , Elliot Berman , Kees Cook , Isaac Manjarres , John Stultz , Tony Luck , "Guilherme G. Piccoli" , kernel-team@android.com, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Trilok Soni , Satya Durga Srinivasu Prabhala Subject: Re: [PATCH] pstore/ram: Add support for dynamically allocated ramoops memory regions Message-ID: <202307051516.AE6080BF@keescook> References: <20230622005213.458236-1-isaacmanjarres@google.com> <202306212212.5E53607@keescook> <3A2CFB4D-27D0-4FEB-93B4-2F888305DE5A@kernel.org> <696269e1-8b97-66ed-c9b0-ce1b8d637d24@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 04, 2023 at 08:07:09AM +0200, Krzysztof Kozlowski wrote: > On 26/06/2023 19:34, Mukesh Ojha wrote: > > I have tried multiple attempt already to get this patch in > > > > https://lore.kernel.org/lkml/1675330081-15029-2-git-send-email-quic_mojha@quicinc.com/ > > > > later tried the approach of patch #9 along with minidump series.. > > For all dynamic reserved-memory-ramoops thingy, I think Rob made clear > statement: > > "I don't think dynamic ramoops location should be defined in DT." > > https://lore.kernel.org/lkml/CAL_JsqKV6EEpsDNdj1BTN6nODb=hsHkzsdkCzzWwnTrygn0K-A@mail.gmail.com/ > > Please do not send three versions of the same patch hoping one will > sneak in. If I understand correctly, the driving issue here is that minidump wants to be able to find the crash report "externally". Perhaps pstore could provide either a known symbol that contains the address that was used, or could add something to the kernel crash image (like is done for KASLR), so that an external consumer of the kernel crash image could find it? And then the RAM backend for pstore could gain an option for "just allocate regular RAM" for holding the dump? In other words, the address is chosen by pstore, but an external consumer could still locate it. -Kees -- Kees Cook