Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp762031rdg; Thu, 10 Aug 2023 20:51:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFTGEyfXFaTWHruSGlJTYzB3LZ/1TFAZfvfTtYwbep3BIOwY2wQIM+9912UeFpCsaDPOMM X-Received: by 2002:a17:902:da82:b0:1bc:1d1b:2314 with SMTP id j2-20020a170902da8200b001bc1d1b2314mr5979370plx.26.1691725899292; Thu, 10 Aug 2023 20:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691725899; cv=none; d=google.com; s=arc-20160816; b=1G7A8kx30++QNymabNLoamVyNgSntL+IiUsGQT1wXINYBV3ERfpLZit+/PcG80Mx4J uVkyIE9NlsgtIU+w2F3t57H1Bx8yiPyUpC8NZhBVaD01LNpBlWBVSzWREnRaPpCDD05E zhvYmfxRJPPLLu6PsZhdAbquHqXHkxfZI6mu/iMrkVElro0JiuPV7071v2DsgRWwna5Y yzQgW6553I1zg/EEOpHUP79QXWl7mj4hjU9spU3dGKq0LtbrDCGtnQBjyBWIEIFyuThR JoGzixb4gc9C6/gKdh0OGMgWnW9bhJhTCRrPqtDyqvPOcF7Du0M6ZRtlheCYYX+nHS/M vgfw== 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=zhB12dk8ZdnZdwj11biZ9b+hnnLzEWY6lozUSH8CqWk=; fh=lmxgBd+JPF1sqDtGw7YXp5zRBADYoWkw42sCPcoxhfM=; b=QBuFjeBGuGSWCB0+s3s2d9faRy7oI60oe6xtXg1HNRDx5ZD+6z9nR/4oosgoI7pFCr R5Jk49EbZyrdMrJbC42kiNL9iBYK08z7VZlFuO7GssbiIjto8SRZ9eVN51k4eBkYdI8A gbz1p2j3OlM1dl3mr+HFr6ARUDmFB/tZhM93JXg0Mqr7Yq71y2y9tdElJ8peT5q6OxzA j81kmI3Fb3vBZVK2a6sBifF7F8O8uQVmPCLOPvq+Q/nTriQgScn6Y3amIOjVmQFnJTib ef6M+qB6BFtR5SDXFXeLettnM9U81r34e3F3AKjGaiuOI+V9GLhWhnhN6S4qbf79FU5J wPRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BYW+L6ar; 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 d1-20020a17090ac24100b00262e650abadsi2704937pjx.117.2023.08.10.20.51.25; Thu, 10 Aug 2023 20:51:39 -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=BYW+L6ar; 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 S229658AbjHKDFp (ORCPT + 99 others); Thu, 10 Aug 2023 23:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjHKDFm (ORCPT ); Thu, 10 Aug 2023 23:05:42 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB26E76 for ; Thu, 10 Aug 2023 20:05:42 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1bc7e65ea44so11300535ad.1 for ; Thu, 10 Aug 2023 20:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691723142; x=1692327942; 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=zhB12dk8ZdnZdwj11biZ9b+hnnLzEWY6lozUSH8CqWk=; b=BYW+L6arNt/PBqcqYDViI0eMlBwWvh53Xb26ArI91EMF0L2dF4Xt7yB3d+66lh8NHD wvrSBponRKouOz5+6sHbVbjehaXoNPbRAIXtkkYT+p3Twr4s2pP3ovRyRJAYbZ6osRuL /wiafGdfBND3CA997sbiNNt/8/KjDV7TaFGuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691723142; x=1692327942; 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=zhB12dk8ZdnZdwj11biZ9b+hnnLzEWY6lozUSH8CqWk=; b=cTEbIMQ4fzr/ZWf9foogycQqFWSUmJmSrnSz5/1Wb6+GLc32A8IQQma4nEZd05OSau oXOvghzM97bnqkfzZZtix990rVtxwB76I0La2zJ+7NC6jBSSCgFWMR47zLFw3SCS6kDY WaJqWEgpP0No41nnHrj1nBtL53XWKfZ8TsD/OOKxiCETHDmQYGUEdoLAwHCTvE5R7Qaz E1uriaqFhNxRFAre3kg1uIrdLtnszKnLg+JceOmFO9wDSMoigTtWtPj0U614cb0fNSeE WEZjqPZ8SGygy+bbjk6GKsAHdEpgy5MYjjDxMoJoG6uSIe6fhYqLjN89qKqCNhuS8NKr 8Z0A== X-Gm-Message-State: AOJu0Ywnhz9uD47Z3FVQdD4y86B+PTKBprxgl8WgtSGkrGuKJOXFEmOc jYs4mA59cNcC26CfXi87NumOYw== X-Received: by 2002:a17:903:11d1:b0:1bb:d586:d29a with SMTP id q17-20020a17090311d100b001bbd586d29amr4754223plh.34.1691723141955; Thu, 10 Aug 2023 20:05:41 -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 e9-20020a170902744900b001b7e63cfa19sm2542835plt.234.2023.08.10.20.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 20:05:41 -0700 (PDT) Date: Thu, 10 Aug 2023 20:05:40 -0700 From: Kees Cook To: Vijay Balakrishna Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , John Ogness , Colin Cross , Tony Luck , Anton Vorontsov , linux-kernel@vger.kernel.org Subject: Re: pstore/ram: printk: NULL characters in pstore ramoops area Message-ID: <202308102001.55158F519@keescook> References: <202308040053.7F38C6D@keescook> <0220f601-14f8-1dda-f057-73a608fbe62b@linux.microsoft.com> <202308101649.337F4D8@keescook> <0dace822-ce13-906e-46bd-e1cb9274cafe@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0dace822-ce13-906e-46bd-e1cb9274cafe@linux.microsoft.com> 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_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 Thu, Aug 10, 2023 at 05:48:17PM -0700, Vijay Balakrishna wrote: > On 8/10/23 16:50, Kees Cook wrote: > > Can you share the .config you're building with? And what are you using > > to trigger an Oops? I will see if I can reproduce this... > > Config: https://paste.ubuntu.com/p/Vrcsf8Ry9g/ Thanks! I'll see how close I can get to this for my local testing... > > Just ran plain "sudo reboot" and inspected /var/lib/systemd/pstore/dmesg-ramoops-0 after reboot. If you have a "dmesg-ramoops-0" there, something Oopsed. On a clean shutdown, only "console-ramoops-0" will be recorded. Can you double check by deleting everything in /var/lib/systemd/pstore/ and rebooting? If you still get a dmesg-ramoops-0 file, can you upload that somewhere so I can look at it? Also, can you send the contents of /proc/iomem ? -- Kees Cook