From patchwork Fri Feb 28 11:32:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pingfan Liu X-Patchwork-Id: 11412043 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D11014BC for ; Fri, 28 Feb 2020 11:34:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E4659246A8 for ; Fri, 28 Feb 2020 11:34:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lNZ+X5bP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4659246A8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2F29A6B0005; Fri, 28 Feb 2020 06:34:52 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2A28E6B0006; Fri, 28 Feb 2020 06:34:52 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 192556B0007; Fri, 28 Feb 2020 06:34:52 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0005.hostedemail.com [216.40.44.5]) by kanga.kvack.org (Postfix) with ESMTP id F2AD96B0005 for ; Fri, 28 Feb 2020 06:34:51 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9B780824556B for ; Fri, 28 Feb 2020 11:34:51 +0000 (UTC) X-FDA: 76539328782.15.roof21_64994ba7f6b26 X-Spam-Summary: 2,0,0,e0a5e9e81a30232b,d41d8cd98f00b204,kernelfans@gmail.com,,RULES_HIT:41:69:355:379:541:800:960:967:973:988:989:1260:1345:1431:1437:1534:1541:1711:1730:1747:1777:1792:1801:1981:2194:2198:2199:2200:2393:2525:2559:2564:2682:2685:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4605:5007:6261:6653:6742:7903:8634:9010:9025:9413:10004:11026:11232:11658:11914:12043:12296:12297:12517:12519:12555:12683:12895:12986:13069:13161:13229:13311:13357:13845:13846:14093:14096:14181:14384:14394:14581:14687:14721:21080:21220:21251:21444:21451:21627:21666:21740:21749:21811:30012:30054:30056:30064:30070,0,RBL:209.85.215.195:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: roof21_64994ba7f6b26 X-Filterd-Recvd-Size: 4323 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Fri, 28 Feb 2020 11:34:51 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id t3so1387163pgn.1 for ; Fri, 28 Feb 2020 03:34:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=K5rhY3MMsxBQjyesCT+5yyhC1P4a9tgFxlDIS5/IhpI=; b=lNZ+X5bPCD5azWhtyH3092bOsJD/JsoVPQmyDEr9YX7kZ0t8QzVt1ajadkMsSvuIg3 rPa44oREe1N7leU8ifhF5nS42eb9HZgs6+Jda+uCpKLfp2pZce0kQ3yyttYfEVLRpzB9 8zkUQ5M8NNLZMfzoatqvGSXdZ3/BgsVdY2aKUhjNd4/uDeMBM+cHhRZcUYaP3OPR9RoY Yiw2eOo4aLeav49tFCLkSxWTueZDWffJ5UHU9pZgFEdmlCCDEQKntfQapwgk/ykcF1Ih TV4w6WhULcRU2oqf3jyg8jDj8p4/WbtGW2gJeoFSyhngaf8DhVggrOcKRf47PzyHcIGP PrLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=K5rhY3MMsxBQjyesCT+5yyhC1P4a9tgFxlDIS5/IhpI=; b=FcHsWdEHE4hZRJNrP5JRQNxkZgVUwDxOImnOgTw0oSgQhA28eEp5yFxq5lkZJAEb0p V0Q7/6LRkaC5atUBYpyzkveQK+K0Xb9OWOcI6HFEZ93BWcCE9QE0dxXFyrDH/69VOm3b 5mDwHPYpvhoCHKmWVt2C8f91Nkoz+sYBkZgMXCFrS3uh7WXj9h9YZ6izRsz1l9mbtEuH QFWPbUgB70Des+uRNkgU4WVXSfeLgC1KbF8BIgN3Q1LHGzIHPQ4ZGgWE8Rvz5pAnodaO iaMmzRF6nEUT3nVgdgZnfAa3dnTtoyzvRCgeV5w8m0srzZjXZCz0mKUxkWIHUrkKr+gd 93JQ== X-Gm-Message-State: APjAAAUr8A0kNZI62Ihtp2eJS6hG+jX9WCAtk7o9oxGva4KYQhclMPJG IyeoUE6+Ul7kRZhkwBe346Mjo5lK0g== X-Google-Smtp-Source: APXvYqzcZfzXLBSX4VhzuXgeuqgybu00cuBY/mmXgK1gb23gnWBxpCcjiDygt0vcWezVMn+CsG0itA== X-Received: by 2002:a63:4763:: with SMTP id w35mr4278259pgk.113.1582889689803; Fri, 28 Feb 2020 03:34:49 -0800 (PST) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id d14sm11402168pfq.117.2020.02.28.03.34.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Feb 2020 03:34:49 -0800 (PST) From: Pingfan Liu To: linux-mm@kvack.org Cc: Pingfan Liu , Ira Weiny , Andrew Morton , Mike Rapoport , Dan Williams , Matthew Wilcox , John Hubbard , "Aneesh Kumar K.V" , Keith Busch , Christoph Hellwig , Shuah Khan , linux-kernel@vger.kernel.org Subject: [PATCHv5 0/3] fix omission of check on FOLL_LONGTERM in gup fast path Date: Fri, 28 Feb 2020 19:32:27 +0800 Message-Id: <1582889550-9101-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The last V4 series: https://lore.kernel.org/patchwork/project/lkml/list/?series=397950, and be dropped from mm tree due to conflict with "RFC: switch the remaining architectures to use generic GUP" [1] I rebase it and sent out V5. V4 -> V5: move around the patched code due to code change. [1]: https://lore.kernel.org/linux-mm/20190601074959.14036-1-hch@lst.de/ Cc: Ira Weiny Cc: Andrew Morton Cc: Mike Rapoport Cc: Dan Williams Cc: Matthew Wilcox Cc: John Hubbard Cc: "Aneesh Kumar K.V" Cc: Keith Busch Cc: Christoph Hellwig Cc: Shuah Khan To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- Pingfan Liu (3): mm/gup: rename nr as nr_pinned in get_user_pages_fast() mm/gup: fix omission of check on FOLL_LONGTERM in gup fast path mm/gup_benchemark: add LONGTERM_BENCHMARK test in gup fast path mm/gup.c | 46 +++++++++++++++++++----------- mm/gup_benchmark.c | 7 +++++ tools/testing/selftests/vm/gup_benchmark.c | 6 +++- 3 files changed, 41 insertions(+), 18 deletions(-)