Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14458532pxu; Tue, 5 Jan 2021 02:00:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjR+fQ+TnPtSlqVc0OaEYLLFC0rQ0uNUs8zdvrJHFBTpnPYNA6bakxFC4GVQDl67VoCWXc X-Received: by 2002:a17:906:4fcd:: with SMTP id i13mr6764617ejw.455.1609840835646; Tue, 05 Jan 2021 02:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609840835; cv=none; d=google.com; s=arc-20160816; b=InmOmYGcOIZdw635uU3nqrH6eBSXw9zPRmTruICV8aPAAVm/8k3FXLQUKVpeAUk2J2 vvhGnUhuxHzABrwWUu+sQe0WfGV4WF86zPspAMOFsiEIKpl/8+MXe0jbfUXpXexBI7Uz DhhUNHmRtYb631ibG3AjrAyRs2CMItAW5+vD1Q9BS+Nq0ssE5/ZHo9T5gyObKwIiRqhf zsK3flOA6Sz8yoAXx1++f0Ss57duCVTx0ZFnMm2DPRtSG09w+48aoIv765MB9JId01cB jWm4m+cTaBffollR73Uhs5uI+OoOU3BGd8B2rCh72TK3I+IhTDtVHvYCuKzRB0VC7oLT ORuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=iSoCoG28BB3krzJrBO/as9WWlyGiL/7dmvac6i2JgK0=; b=U32C5BgrQof2E3JY81bfkQzS3Ku7uTvg0PjyhfWoTTdgQWn6+AMTQQa0fU6YyE/YWS fiLsnONy0Kk6x0JPQm0jiQbo5KRBJ3v+N1BaOYrYtfIRTNKfo/EcO0lzubNC4YUyMt3t bEt9jUygsmPdSWP0dNmFfgZaSd8mUjAxqysWDCwsgLjj0RzfW4iImidKz4d6MMki3v5V sTASQdWMwWw1UeUvlLD8KtBPCAzp7CHI5lnPhVBXv3ckEAg/byp/iANret6ctOY9gUuP yTT/8Gx500o2OeWwfNQvWQRV4QpYLnsyc1glMLLupcTbeVAKIWMMrAW/luYWHkF/CfXL 7Plw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZICvsoic; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si29468360ejn.15.2021.01.05.02.00.11; Tue, 05 Jan 2021 02:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZICvsoic; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728455AbhAEJ5x (ORCPT + 99 others); Tue, 5 Jan 2021 04:57:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:40964 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727860AbhAEJ5w (ORCPT ); Tue, 5 Jan 2021 04:57:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609840586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iSoCoG28BB3krzJrBO/as9WWlyGiL/7dmvac6i2JgK0=; b=ZICvsoicbQ2VvMc+kox3daFFL8iYYGjJLP8k4Hc4dQR+X0f+dMhndkG83sHWykREBFXhiV OMqDP2kQFB/mYxwOoBbOLpU/F7T+yZjmExUFoH+mWtxEA6Bk5K5OJ5Xw+OMCA/dKvD9O7Y /CQgGTpUhovkZe+SXEh/62CWb6Cc5rI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-272-Vz0ly2cJPByUxjFY3U60EQ-1; Tue, 05 Jan 2021 04:56:24 -0500 X-MC-Unique: Vz0ly2cJPByUxjFY3U60EQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 512F815734; Tue, 5 Jan 2021 09:56:23 +0000 (UTC) Received: from [10.36.114.117] (ovpn-114-117.ams2.redhat.com [10.36.114.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 429A227C4E; Tue, 5 Jan 2021 09:56:22 +0000 (UTC) Subject: Re: uninitialized pmem struct pages To: Michal Hocko Cc: Dan Williams , linux-mm@kvack.org, LKML , Oscar Salvador References: <20210104100323.GC13207@dhcp22.suse.cz> <033e1cd6-9762-5de6-3e88-47d3038fda7f@redhat.com> <20210104142624.GI13207@dhcp22.suse.cz> <23a4eea2-9fdb-fd1d-ee92-9cd8ac6e8f41@redhat.com> <20210104151005.GK13207@dhcp22.suse.cz> <26db2c3e-10c7-c6e3-23f7-21eb5101b31a@redhat.com> <20210104153300.GL13207@dhcp22.suse.cz> <20210104155931.GN13207@dhcp22.suse.cz> <20210105074459.GR13207@dhcp22.suse.cz> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: Date: Tue, 5 Jan 2021 10:56:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20210105074459.GR13207@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05.01.21 08:44, Michal Hocko wrote: > On Mon 04-01-21 17:30:48, David Hildenbrand wrote: >>>> Let's assume this is indeed a reserved pfn in the altmap. What's the >>>> actual address of the memmap? >>> >>> Not sure what exactly you are asking for but crash says >>> crash> kmem -p 6060000 >>> PAGE PHYSICAL MAPPING INDEX CNT FLAGS >>> fffff8c600181800 6060000 0 0 0 fffffc0000000 >> >> ^ this looks like it was somewhat initialized. All flags zero, nid/zone >> set to -1 (wild guess) and thus the crash? weird > > Yes that made me scratch my head as well. My best guess would be that this is indeed part of the altmap reserve with a memmap on the altmap. Maybe these values are just leftovers on the PMEM device (e.g., from older kernels)? In the kernel, I cannot find anything that would initialize node/zone to -1 only. @Dan: Will get_dev_pagemap() return a valid dev_pagemap for pfns falling into the altmap reserved region? I think we should also initialize the memmap of the altmap reserved region somewhow. -- Thanks, David / dhildenb