Received: by 10.223.185.116 with SMTP id b49csp679785wrg; Wed, 21 Feb 2018 05:17:21 -0800 (PST) X-Google-Smtp-Source: AH8x2275IfgwGk/XH7hDoTy6DKvx1gh06CoVbwpt3w/OYEzmufEI5jFGzTLPVWB7gM/fsX/Zq2Cf X-Received: by 2002:a17:902:2f41:: with SMTP id s59-v6mr3206497plb.422.1519219041426; Wed, 21 Feb 2018 05:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519219041; cv=none; d=google.com; s=arc-20160816; b=wZQaOlkTe5DSOYqYew3eggFjKaHemp0wt5oAb/pGrmNpbQvdeSWmGn1U9O/MlmXX2/ 5SCdfzSMtlRfJJbIvePjH4Ton39+LxotTX7MP25VI3JTKMfsY6uVmDe7OyzWSTlkHFiy 8Jkvvk4x3Y8l4xlwE0bYYiCCqLWv6paUWKK1n3/lSd3bs/CGul0Ethf+olcqFudecvPP vk5JsT9Jsnj3nEHz+KVxix+mG3A/IG5McBqgSkJC2/sriEHTD3y5t+xF2XFWNQ6TAYtt RUNcu2q3lvnkexj2RCWD/nAfhyigUgMTZu2tSDxvBi6sIditP6h8gzN9j6jJBdM9JH/1 Al7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Eywmp9abR1RtY2zl0ikfAcRDEGiiYw7KYmkvq5otBKM=; b=CWe03meASmZtjiGL6u+xFNbmR8+cHJwIZUbC9d7vfWqSfK3BhJe9c0/hPrGPCzTrWK LT8xdLFGZ7SNdvouz8MhIjdDhqzYtCX4hDGAj+A27HgZCojlkRPx8MZgZm4HKuCqxPdf T8zDBM/FdgMNUlS57hcMuiILIUcANBOa0onp8e9YPU1Z1j+7hh1OsHxjFgggkRmUwY9S CSzEE8rRIQr4zbUE2+oHtjj4PKVdhQDUn8Pu8WovMfj+tbAhMjsuNR1cKrvLVLf44YL7 SDHVtyGoCyuObUTYgllSVdZnXPJMorh1jCCly26ord/GO12aJc4OuQCckl0cbxofk/2r 7UwQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1-v6si7604990pln.138.2018.02.21.05.17.07; Wed, 21 Feb 2018 05:17:21 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918AbeBUMBw (ORCPT + 99 others); Wed, 21 Feb 2018 07:01:52 -0500 Received: from lhrrgout.huawei.com ([194.213.3.17]:26999 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751954AbeBUMBs (ORCPT ); Wed, 21 Feb 2018 07:01:48 -0500 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 762E6547A1014; Wed, 21 Feb 2018 12:01:44 +0000 (GMT) Received: from [10.122.225.51] (10.122.225.51) by smtpsuk.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 21 Feb 2018 12:01:43 +0000 Subject: Re: [PATCH 3/6] struct page: add field for vm_struct To: Matthew Wilcox CC: , , , , , , , , , , , References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-4-igor.stoppa@huawei.com> <20180211211646.GC4680@bombadil.infradead.org> <20180220205442.GA15973@bombadil.infradead.org> From: Igor Stoppa Message-ID: Date: Wed, 21 Feb 2018 14:01:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180220205442.GA15973@bombadil.infradead.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.122.225.51] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/02/18 22:54, Matthew Wilcox wrote: > On Tue, Feb 20, 2018 at 09:53:30PM +0200, Igor Stoppa wrote: [...] >> It was found while testing on a configuration with framebuffer. > > ... ah. You tried to use vmalloc_to_page() on something which wasn't > backed by a struct page. That's *supposed* to return NULL, but my > guess is that after this patch it returned garbage. it seems to return garbage also without this patch, but I need to clean up the code, try it again and possibly come up with a demo patch for triggering the problem. I'll investigate it more. However it doesn't seem to be related to the functionality I need. So I plan to treat it as separate issue and leave find_vm_area untouched, at least in pmalloc scope. -- igor