Received: by 10.223.185.116 with SMTP id b49csp1079780wrg; Tue, 20 Feb 2018 12:57:47 -0800 (PST) X-Google-Smtp-Source: AH8x225w7YqPBdiuf/47aSjXOmjGlafxNw3EzuWen1e0E2lZ0n8W4QUnOPnIdj+ys2240dBS+Z9v X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr814860pla.149.1519160267849; Tue, 20 Feb 2018 12:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519160267; cv=none; d=google.com; s=arc-20160816; b=wR//FPt8suxac03SRO7cC02Tsro//LMuCR2TMlTZKjeXb8AF++U77GxdD7PQRDbxqS sMUC1Io2hafyd6OL9hRS7B7PcrhtqLSvWozvjwSCyB5QnPmDNzVZh2ooNjG6IWWCECNA PCRWHwodNIqG8HcPgE6+alFaPa8Ztlkh6/Mahiy7sZe+2u7tOSrrvP/1s0mHd0yQRp3Q qJ/86K3xijQGhjPGEG3DMsPUfCSaVhONnhbbCzF9igyng8aPZwCTBaquGhBkekdyZQWs xDYHikjlK2E2EdddwNYYMUi3VSGe+fvkXSbe6DaZqYDz4mQUWh0xDtfU5390zpN55Dbu xbcQ== 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:dkim-signature:arc-authentication-results; bh=UAY3MVuU9RbvgUL4++A0GOVSQmjzCY52mYYDtGVoGQ4=; b=OyoDaPAZPVn4FVHhXFf/W8q2ixadYVcoRUwvRGPt1ew0xO8I2/Wy7pgwyBrBmnKZeM FNtir1UMJhz5bof60gr2arVw/zAyama0tCZtnmqGW4fwWh6cX+9RvnVjFU+ZZO39ONVa imp050fRxoJk2krWayjXtNySxh2npyHigBoQx56KgwH5D7GLU+GV4q3WBya7/EKYfnH3 2jBpMCoE1LKBEPXVX/G25qzQYtO8bKQDy4BJ8Jr8eQngz1UhfXqLoe/hikrG/0vG99ui DkDw27kQkhJ1He9W6oDVibD+HDYBVf66jgb8szpiDr32hmspo+ICijdJ+lMoSffAeonE BYrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=d9s2+xnY; 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 m21si4281719pgn.405.2018.02.20.12.57.33; Tue, 20 Feb 2018 12:57:47 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=d9s2+xnY; 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 S1751391AbeBTUyt (ORCPT + 99 others); Tue, 20 Feb 2018 15:54:49 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:50138 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbeBTUys (ORCPT ); Tue, 20 Feb 2018 15:54:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UAY3MVuU9RbvgUL4++A0GOVSQmjzCY52mYYDtGVoGQ4=; b=d9s2+xnYTvpdiKNBzTPtC3t+z B0Wo5nNGtjz49D9wmnXSmbA2woGAAZFMoR+Ltew9dNMiTU9BUziBqE1GWchTzMZxjdxC8C5lPCIUX ypinOZU9IycmI0xzrU92/oKz7yFEpzxj7mDhtjTDSneu04OR1UGgCeHzq8yi0Fs5mIhfGjGeJ3xyj L+0IlaQWjx8vQqMdiTPAH43BQpY6+dEOam8gD0OBsCTUwx3Nv5i/lLV98qUYexf/K4Bax2DZtZhvk rhoujVLoKbvuirq2ZqiDbhzO3RTnuC9l4Upoa/tD8gXh8Wy1A1Cb+dawus8sPaHshgMw9/dbRq81t G/47nHX7w==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eoEvy-00067x-JN; Tue, 20 Feb 2018 20:54:42 +0000 Date: Tue, 20 Feb 2018 12:54:42 -0800 From: Matthew Wilcox To: Igor Stoppa Cc: rdunlap@infradead.org, corbet@lwn.net, keescook@chromium.org, mhocko@kernel.org, labbott@redhat.com, jglisse@redhat.com, hch@infradead.org, cl@linux.com, linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 3/6] struct page: add field for vm_struct Message-ID: <20180220205442.GA15973@bombadil.infradead.org> References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-4-igor.stoppa@huawei.com> <20180211211646.GC4680@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 20, 2018 at 09:53:30PM +0200, Igor Stoppa wrote: > The patch relies on the function vmalloc_to_page ... which will return > NULL when applied to huge mappings, while the original implementation > will still work. Huh? vmalloc_to_page() should work for huge mappings... > 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.