Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2219865pxb; Thu, 3 Feb 2022 01:52:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxFuY1IQRaUksdwXoNcf2S3CsJKQQUhRadQD/LI+GULwARTcXzfCsKsP8xzSVnqOTXrTWy X-Received: by 2002:a17:903:11c5:: with SMTP id q5mr34912985plh.136.1643881972496; Thu, 03 Feb 2022 01:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643881972; cv=none; d=google.com; s=arc-20160816; b=zU/WXipo/crauiJb+FBest7jFlNEQBXnEKdEF8Gqmql4MufGrXYyE2o4V9BOZQe/kV 3vHhKguZqZrvKOqtYRiA+IuzXbrAC6+POC4ve6MfCIqPWRJWvWM0rL/nO3ggPxYIicO3 wKCsZG2u1DqKIM/kvXE3Qla9SgeZPZ1JVkK01iN6/4sgB2s/7ISruygNWJDphzL5+nCm EnLR1UfryWZ3hs+4qvcfe8evcv9t3qmC8keHg6X761/NSGRVpPOCgSZl46/a3av2h5oF b6ZKL5xcVArfecb1uiNK3NKhMDA3/Vk5r98Adj7X7RNK4Wiinh/1KfJ6HOoRxxioaUc1 ptrQ== 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=kBjoQP6Uo0tPLosDtcT2XD2WLyNHA0G/D9g0cgaEJ1s=; b=AT6S2mxnr4Mb6I4DZxflGOqCkpfFZCVjNqBT6V4YV4YyAhkLi6sw2MBeJAWpqd/OAh TrNHFVBhFYSh1QhYODTzbJv1ragBCXbT362xoslW2zNVP+G0irDHYfdJTBKZv25tSQcn qwLER1E/H+rxkG9aVXCkXu+CdJWWI2B/Sx2T+ebgf/P+wMwim0iNhsvCzdRdp9A6eQKI NEZtTPkQuAaAXd5qXE0KZ6iXS8D3zTEQgxYA5QFJ2EW4aRVFoMzsZlqdP+VzmsJQqzWn XLgX6yTpzUs0qzZpu0l9GcP00ENK7hC50rK7Zz+ZjVYTu73gyZwmeid9MRAFXRfPukVL HhsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qNrg5H1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 141si21954807pgh.535.2022.02.03.01.52.41; Thu, 03 Feb 2022 01:52:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qNrg5H1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236875AbiBBOE2 (ORCPT + 99 others); Wed, 2 Feb 2022 09:04:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbiBBOE0 (ORCPT ); Wed, 2 Feb 2022 09:04:26 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5600FC061714 for ; Wed, 2 Feb 2022 06:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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; bh=kBjoQP6Uo0tPLosDtcT2XD2WLyNHA0G/D9g0cgaEJ1s=; b=qNrg5H1tXfWMIelRnu2c5IChMR SxvYzy2q1Qz/V/D+1qgvX4VYVALTKEa4QCT8dJHlH/codrG1FAGGdbcRZHQ/Z8l5QUt8lgVgnAUO/ VQ1wS6B+RO+uMUvnBQLumW86x4+TRQ56B9bhcaDiDnQQEZozriePY+mt3LG7/sFEzdWt4y41Z+f5S gyrBw+GCA6Un0Z70N7HdEA5sACSh6NvcsW+CQ8gyLZ4u+wbKz+luSGxP27ANbUMrYXGws4KdKdaqd WOdBX5g/Isz6KQJhk8S90Z7SdeqIWNwNDTEOajzHe1D5ble409oUMkBPd6vqTtBHoFV/Kl3r4jQQN SXt9saFA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFGF8-00FWUe-0f; Wed, 02 Feb 2022 14:04:18 +0000 Date: Wed, 2 Feb 2022 06:04:17 -0800 From: Christoph Hellwig To: John Hubbard Cc: Andrew Morton , Peter Xu , Jason Gunthorpe , Jan Kara , Claudio Imbrenda , "Kirill A . Shutemov" , Alex Williamson , Andrea Arcangeli , =?iso-8859-1?B?Suly9G1l?= Glisse , LKML , linux-mm@kvack.org Subject: Re: [PATCH 1/4] mm: Fix invalid page pointer returned with FOLL_PIN gups Message-ID: References: <20220131051752.447699-1-jhubbard@nvidia.com> <20220131051752.447699-2-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220131051752.447699-2-jhubbard@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 30, 2022 at 09:17:49PM -0800, John Hubbard wrote: > From: Peter Xu > > Alex reported invalid page pointer returned with pin_user_pages_remote() from > vfio after upstream commit 4b6c33b32296 ("vfio/type1: Prepare for batched > pinning with struct vfio_batch"). This problem breaks NVIDIA vfio mdev. I haven't actually seen any nvidia mdev module in the tree.