Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp644827img; Wed, 20 Mar 2019 08:01:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8mhBpdKRuDs+9D+4V+Yhm2ODERtzuIyE6r1xeUZv/mdiRxzkbFQyEzDN9rjCVq1I50EwV X-Received: by 2002:a17:902:127:: with SMTP id 36mr8543234plb.268.1553094105996; Wed, 20 Mar 2019 08:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553094105; cv=none; d=google.com; s=arc-20160816; b=BTeRbS696axf7zexyLGN6UZN+l9KHkZw/v308FezieBrtAj4Kx+VA1///oBL9txaFG 6zCX1pk/jCTPLlBGkoah+rD0hsTjYnt/QlEfjbova8tsjZYFuPLIupbFLUpRsrJYN7UT ijGoCjwjjKe0w3pQW/STIuTPRq6FYVRyDDjZ1wThb8AnQ5FztJo6zWUuAdrArFkavgcH 7G+N17e+iZlqXNJ9w3Izn+fg3oA8/FhrpGo1VbXEhfegkSCDxUZyJKvP6moKN7eRW9gZ KBwXXrNeioAqjx1EDdzp1TIe4HrIwZf5VKvCBv5Ew8G2cnt9Bki4bX/U4+pS42r77KLF 1NXg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8+NFEdA7eV6jKlnhbgsAvv8kVflCeDHgDx4zrDqFGI0=; b=wq6zzYqtKHvovshOkyHiXFHoLJWlE/Gxy6/xhpB6Zj4WD1v+L7zc2Sce61aniYa7+0 HvEAeOhQZBAOXBgoTKCoiRrDNebugUVZGP9OBA5OFWDNSOUlbILfKVIHxy+hC2zLSOSE uM1HzxlChch7lKtvnUtXD3mMBysnMrkshwtyVb/mQaJU15DjEHblXUNnRFEeBx6zOd0X hM+X4lGTPfvhUjTfqo2zdi2mmNImBsNQ0xox6WUxR2gsiX5SKL319yQbLldcb279YhKx dBSOccRrINs0NxerbdrI+Y/OJnx5Qh+67Uvam3Rol1GCJMQGi1KIVUeFlZrYbjeKJfJ9 9ysQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si1818432pfe.189.2019.03.20.08.01.28; Wed, 20 Mar 2019 08:01:45 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728397AbfCTO7O (ORCPT + 99 others); Wed, 20 Mar 2019 10:59:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbfCTO7O (ORCPT ); Wed, 20 Mar 2019 10:59:14 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6EB206698A; Wed, 20 Mar 2019 14:59:13 +0000 (UTC) Received: from redhat.com (ovpn-123-180.rdu2.redhat.com [10.10.123.180]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C80A6CE59; Wed, 20 Mar 2019 14:59:04 +0000 (UTC) Date: Wed, 20 Mar 2019 10:59:02 -0400 From: Jerome Glisse To: William Kucharski Cc: John Hubbard , Dave Chinner , "Kirill A. Shutemov" , john.hubbard@gmail.com, Andrew Morton , Linux MM , Al Viro , Christian Benvenuti , Christoph Hellwig , Christopher Lameter , Dan Williams , Dennis Dalessandro , Doug Ledford , Ira Weiny , Jan Kara , Jason Gunthorpe , Matthew Wilcox , Michal Hocko , Mike Rapoport , Mike Marciniszyn , Ralph Campbell , Tom Talpey , LKML , linux-fsdevel@vger.kernel.org, Andrea Arcangeli Subject: Re: [PATCH v4 1/1] mm: introduce put_user_page*(), placeholder versions Message-ID: <20190320145901.GA3216@redhat.com> References: <20190319120417.yzormwjhaeuu7jpp@kshutemo-mobl1> <20190319134724.GB3437@redhat.com> <20190319141416.GA3879@redhat.com> <20190319212346.GA26298@dastard> <20190319220654.GC3096@redhat.com> <20190319235752.GB26298@dastard> <20190320000838.GA6364@redhat.com> <20190320043319.GA7431@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 20 Mar 2019 14:59:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 08:55:17AM -0600, William Kucharski wrote: > > > > On Mar 19, 2019, at 10:33 PM, Jerome Glisse wrote: > > > > So i believe best we could do is send a SIGBUS to the process that has > > GUPed a range of a file that is being truncated this would match what > > we do for CPU acces. There is no reason access through GUP should be > > handled any differently. > > This should be done lazily, as there's no need to send the SIGBUS unless > the GUPed page is actually accessed post-truncate. Issue is that unlike CPU access we might not be able to detect device access and thus it is not something we can do lazily for everyone. Cheers, J?r?me