Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14397189pxu; Mon, 4 Jan 2021 23:52:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJytE+W++4Os2pqKngRGpGJ1vtm38BduYxQqiizmnjLWC11w3GDd3UQTF+mJp4cUQ1IR54kJ X-Received: by 2002:aa7:cb16:: with SMTP id s22mr21847620edt.53.1609833158369; Mon, 04 Jan 2021 23:52:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609833158; cv=none; d=google.com; s=arc-20160816; b=XsrZgFawVV957epto3If+LcHz7VfgH6i+OQ3ZZVv5L2nl2QgZLqvnTnV8Qpa9BIX38 hv7wh8ZV4O9CiLSmspc1j+tPh+Xkn9quDdI01w5qqzVG9zugaZjd9FRIbJaeimuiZX8Y niaeafp7CN8OYc3AT5BuYE5K9X1TqL9gb7N8zKL73D6QNUyqrAef4FLM4c8crxypqwHO /sG5vT8BGY03e7KTNaj5G5PYVnN/EYsp6HTIlgqGpI0NwGSeloNSEboqv1mo8+vVC5iZ Ct1uo1LOyP8HufA1tMvEjaB71XN1li5SG1JNQzQQe7tocyojYQJbh3NZ9cNj0vFxsKsS 7YRw== 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=zN1ZQptkDr2Sx20lZHpIUYbZZweZ0jHrozA2d7eEC+c=; b=DQSr51yEeR3d6YJISYvG8aeQgYrkgkRsdIVsGFu9Y2VyHClw0p+REsLr45YP6FCHcp phsisA/tKJvoN+yLxYFcANs3PrJF6tPYyNdpLHrLcHwcc962+H0RcM456YiNxf+jQoV+ VBqiOIG4q043DtosYC0QnoQf/0pELG2nBwxLr9yJTaa0L7a1aKysK/G6JUESLzceTK6g u87zQpjdW4owm+sZygQy3k8/VPgfa0y8GPfNxRV1F2SRD19GwGdJiJWL4TiECRazd5mo v2Gz6Ai5LbdPL6UK5MWCdqu69OwA2h5X/KAzCRh1ljd1PFWu/3KxUg21jmPZ3E1ZjKe7 tFLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=EPW3hX0C; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch18si30299292ejb.736.2021.01.04.23.52.15; Mon, 04 Jan 2021 23:52:38 -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=@suse.com header.s=susede1 header.b=EPW3hX0C; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727215AbhAEHvP (ORCPT + 99 others); Tue, 5 Jan 2021 02:51:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:41940 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbhAEHvP (ORCPT ); Tue, 5 Jan 2021 02:51:15 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1609833029; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zN1ZQptkDr2Sx20lZHpIUYbZZweZ0jHrozA2d7eEC+c=; b=EPW3hX0CHvyETxVQ+oZKb2FjUUWU1c6cS30QrikW+VmFz1wBFlbSlKVUeXjGw2U+864x01 jpK6IoTPuN1gR5ftY4QdElRbV2wI/xy4Lxupa69QEUDRWtVTmxGEsJzk3tn3A+/Ibyeagu Sioj6pFN6/sJP4frdYjP14ZOKNjwChk= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 72744ACAF; Tue, 5 Jan 2021 07:50:29 +0000 (UTC) Date: Tue, 5 Jan 2021 08:50:28 +0100 From: Michal Hocko To: Dan Williams Cc: David Hildenbrand , Linux MM , LKML Subject: Re: uninitialized pmem struct pages Message-ID: <20210105075028.GS13207@dhcp22.suse.cz> References: <20210104100323.GC13207@dhcp22.suse.cz> <033e1cd6-9762-5de6-3e88-47d3038fda7f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 04-01-21 21:17:43, Dan Williams wrote: > On Mon, Jan 4, 2021 at 2:45 AM David Hildenbrand wrote: [...] > > I believe Dan mentioned somewhere that he wants to see a real instance > > of this producing a BUG before actually moving forward with a fix. I > > might be wrong. > > I think I'm missing an argument for the user-visible effects of the > "Bad." statements above. I think soft_offline_page() is a candidate > for a local fix because mm/memory-failure.c already has a significant > amount of page-type specific knowledge. So teaching it "yes" for > MEMORY_DEVICE_PRIVATE-ZONE_DEVICE and "no" for other ZONE_DEVICE seems > ok to me. I believe we do not want to teach _every_ pfn walker about zone device pages. This would be quite error prone. Especially when a missig check could lead to a silently broken data or BUG_ON with debugging enabled (which is not the case for many production users). Or are we talking about different bugs here? -- Michal Hocko SUSE Labs