Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp793249ybp; Wed, 9 Oct 2019 04:27:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIfFWopB9DgdpKvyLFPn3rzpk27dyhxjMmpp3S4fFHtkojzY8C037mYPnoCvKpx5TcTEiP X-Received: by 2002:a17:906:f254:: with SMTP id gy20mr2365822ejb.180.1570620424065; Wed, 09 Oct 2019 04:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570620424; cv=none; d=google.com; s=arc-20160816; b=J1B+IFEFFTjbb6JYeERyKNKO+TDv3TtlFfTk13kwylaKWwrx2Yhchb0Ub21XdHKOXk 2WXWdL5XjflRsFYzfGQb0ukf5+pJpInUYLoZAltaWX3ndovC7eOKWQKqgXUxMVGeJdiY 7BU1JfdadeMfWRivw8+h5R9TcXYwO0tszLyLKj6jqw+S47Ji+dR/wtYe0+4IqLAYUtQE NS7e9Fwcm2qdvYzoYcSmK+nD+dKz/2A0ErckB6sWDh33i6H94s/lG/LFEJBVkSuACRKu CCezV/ySzsvT2YIerPgrTpXazCMRwI5Zyp/V6Img76HSrmhxq2Ykg1b1hsodXBzpXp0C hGtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XYQJVmGBKwIgo8kmbYzwBJUq9QxHlhT1+ERXMkwy47k=; b=KD1Eta9Dker+uP7Pbou21J0CTPiRvfnsWB0LmGAUJdBCDjFBxYBbTh0CwjLDM2/LkV p7WvJdQyqKonx31HnQaivMnc7oaGBZaYyGiDYjpsGI5cUV6y9bNUO0v1RmujzmuaKW35 GAKhCU5j74m/hrK5eZM2Cgw3joPqPFb5IDh4hZoQdXTtX5yvxBldV1vMX4Qh5OLLkiKX BA3r/JMHDN+LVcvG77IwFnRURuleOkzmRlll++og6z1AcLWaIlFcUciALevEmqq65cON qynJ/Rc2GWzSce5CzbB5CBXu6hd+hc2f9s1/IjbiL+TI+HpN/jrGZ/A7p6TSkKl9bfSi gtkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z42si1205431edz.23.2019.10.09.04.26.40; Wed, 09 Oct 2019 04:27:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730588AbfJILY2 (ORCPT + 99 others); Wed, 9 Oct 2019 07:24:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:37662 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727035AbfJILY2 (ORCPT ); Wed, 9 Oct 2019 07:24:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5C333AF05; Wed, 9 Oct 2019 11:24:26 +0000 (UTC) Date: Wed, 9 Oct 2019 13:24:24 +0200 From: Michal Hocko To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Qian Cai , Alexey Dobriyan , Naoya Horiguchi , Andrew Morton , Stephen Rothwell , Toshiki Fukasawa , Konstantin Khlebnikov , Mike Rapoport , Anthony Yznaga , Jason Gunthorpe , Dan Williams , Logan Gunthorpe , Ira Weiny , "Aneesh Kumar K.V" , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v1] mm: Fix access of uninitialized memmaps in fs/proc/page.c Message-ID: <20191009112424.GY6681@dhcp22.suse.cz> References: <20191009091205.11753-1-david@redhat.com> <20191009093756.GV6681@dhcp22.suse.cz> <67aeaacc-d850-5c81-bd17-e95c7f7f75df@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67aeaacc-d850-5c81-bd17-e95c7f7f75df@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 09-10-19 12:19:59, David Hildenbrand wrote: [...] > > pfn_to_online_page makes sense because offline pages are not really in a > > defined state. This would be worth a patch of its own. I remember there > > The issue is, once I check for pfn_to_online_page(), these functions > can't handle ZONE_DEVICE at all anymore. Especially in regards to > memory_failure() I don't think this is acceptable. Could you be more specific please? I am not sure I am following. > So while I > (personally) only care about adding pfn_to_online_page() checks, the > in-this-sense-fragile-subsection ZONE_DEVICE implementation requires me > to introduce a temporary check for initialized memmaps. > > > was a discussion about the uninitialized zone device memmaps. It would > > be really good to summarize this discussion in the changelog and > > conclude why the explicit check is really good and what were other > > alternatives considered. > > Yeah, I also expressed my feelings and the issues to be solved by > ZONE_DEVICE people in https://lkml.org/lkml/2019/9/6/114. However, the > discussion stalled and nobody really proposed a solution or followed up. I will try to get back to that discussion but is there any technical reason that prevents any conclusion or it is just stuck on a lack of time of the participants? -- Michal Hocko SUSE Labs