From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C678C43381 for ; Wed, 20 Mar 2019 14:56:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A5B92146E for ; Wed, 20 Mar 2019 14:56:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="FE175wIn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728346AbfCTOzw (ORCPT ); Wed, 20 Mar 2019 10:55:52 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53846 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728382AbfCTOzv (ORCPT ); Wed, 20 Mar 2019 10:55:51 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2KEhaFt051492; Wed, 20 Mar 2019 14:55:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=vyTalyJPAp/99xZSU46vuHhBhzH/5qMxRbhLufZJza8=; b=FE175wIndmjYqE9O1h9gs5/x/125rxIpTQyFuF9GQH3a6Qt22P3l4AlfYcZkplEIkwNy gL7VbxXqStMmQzDd7xdU1b0A57BVB8eoyezOVk6OCl1t5a1UMdVoKFq4Vw0/CxJ6C1ni hmF07JbaCWoErWy1V+EBBGOgYuvfftQ/Hclxb2Zh2YcX3qht8+vjjFLgvQpBSmpNyZeV FgHRKu1XeXc2w2qeNDJlMGA6OfsAYO+/xVIdbTPWmIgQ6xIjue2c/pJSTFqvDG7ArIP8 poCyhKg1J2b1Do1V6MWmoC7XL59Xaz+0GVdd/oY+2XtrqWGOcat534VBi/iLvPAvW5y6 dQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2r8rjuubhn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2019 14:55:24 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2KEtMju002103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Mar 2019 14:55:23 GMT Received: from abhmp0022.oracle.com (abhmp0022.oracle.com [141.146.116.28]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x2KEtKfb010967; Wed, 20 Mar 2019 14:55:20 GMT Received: from [192.168.0.110] (/73.243.10.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Mar 2019 07:55:20 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: [PATCH v4 1/1] mm: introduce put_user_page*(), placeholder versions From: William Kucharski In-Reply-To: <20190320043319.GA7431@redhat.com> Date: Wed, 20 Mar 2019 08:55:17 -0600 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 Content-Transfer-Encoding: 7bit Message-Id: References: <20190308213633.28978-1-jhubbard@nvidia.com> <20190308213633.28978-2-jhubbard@nvidia.com> <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> To: Jerome Glisse X-Mailer: Apple Mail (2.3445.104.8) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9200 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=913 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903200113 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org > 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.