Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3625217imm; Mon, 18 Jun 2018 01:03:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLSVKleuny3DEzOQIxmdDb16ptQ7ZxSwDYb1WAL8FQIZ3EACbntEF8tj8FOM+GNxCsaWVxp X-Received: by 2002:a65:61c7:: with SMTP id j7-v6mr10349036pgv.358.1529308994699; Mon, 18 Jun 2018 01:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529308994; cv=none; d=google.com; s=arc-20160816; b=xmpEC5yP3gV6xNCSZKxdlM0Gj56vvoXpsF2X+5lGNzVdKaGw29LS0iBv9L5y4ADtaX RBoXDlQPqcZmnimLAS7t8A4SSl64S91HzU59f3s8x5A8PHcl8/bWF7UOChsJ8pqQZX++ StYggwq05X4r6f1fCEvEj26JBedZAZML81PCPtyh9eOASBOVdYdFhROXGhBao/U9eacH ksxvaHE59bmZRSzy+fEVR6AzUMb3Vz7iZUNj3/U3rz2HhqR4URV2NlCptiuvYWfQp+Hq CMZOJimO8YPm2tUnZbyDBmoHm/NBewebPLa/QxG/fw8nzbAZBRCZ7YCy4QX72HsF4s8o PTCA== 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:arc-authentication-results; bh=UqKBRUjlBSgt6NBhY2xjBjv8geNP1OTygX7nN4Ssn7k=; b=DQag2AAvZ4xwE5q86ROidVJ/lNnpdgbGF+YAKYgtOtQFSwKY85nms4hqEQzI1GB5Rf T0qCRfxYpgqVmTjW/BIUCx4WipVv0kdn1fw7ixVc2egdC7yfoICzunqExBPE7Nn8Ps/h uLZ3qYJgkhj6A5NggcLXPZjG/xINHO2TE51AE+S/IGF9JTUCsNV5Fm34QLPrUFvQLIgn Jw0zIe4DYlRzzyxO7Fi7yDkYGeHHujI0gVV2PLvXZNYsvNu8x6qMjOVuX809Otp2SB3R wXEhIiRlerV7M9LP/ffD3FlYIZvCKuR9Ge/qc+sipR9b65abK5rgMjuDAOupGkrtCycZ 4Wqw== 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 q86-v6si14282465pfg.298.2018.06.18.01.03.00; Mon, 18 Jun 2018 01:03:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933204AbeFRICX (ORCPT + 99 others); Mon, 18 Jun 2018 04:02:23 -0400 Received: from verein.lst.de ([213.95.11.211]:33928 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932723AbeFRICW (ORCPT ); Mon, 18 Jun 2018 04:02:22 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 5D73B68E44; Mon, 18 Jun 2018 10:11:13 +0200 (CEST) Date: Mon, 18 Jun 2018 10:11:13 +0200 From: Christoph Hellwig To: Dan Williams Cc: Jason Gunthorpe , john.hubbard@gmail.com, Matthew Wilcox , Michal Hocko , Christopher Lameter , Jan Kara , Linux MM , LKML , linux-rdma , John Hubbard , Christoph Hellwig Subject: Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*() Message-ID: <20180618081113.GA16991@lst.de> References: <20180617012510.20139-1-jhubbard@nvidia.com> <20180617012510.20139-3-jhubbard@nvidia.com> <20180617200432.krw36wrcwidb25cj@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 17, 2018 at 01:10:04PM -0700, Dan Williams wrote: > I believe kernel behavior regression is a primary concern as now > fallocate() and truncate() can randomly fail where they didn't before. Fail or block forever due to actions of other unprivileged users. That is a complete no-go.