Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2650814ybb; Sun, 22 Mar 2020 04:35:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuaMIHvu/3N97J3rRmfevE+uV2MqLkUQSnMDicE2dFFLcDdzn0E1hdJibWAE8Aj70Hy+3ix X-Received: by 2002:aca:7213:: with SMTP id p19mr3426105oic.159.1584876909924; Sun, 22 Mar 2020 04:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584876909; cv=none; d=google.com; s=arc-20160816; b=IGEhG7bzsFoNmtdZx9BLiZqwVetfWPV0qSBBGAel/Vrbzr6EJuj2N0ByhLgqKQ25tr nouAZxDWhHSQVH0AuFhpCTo8f2CZVuCK03i1qbFFJZz4qmjUh7/gdqCU09M49lT+FVpb zgzArnwHzM9xeK7FkWQcJHcHV+fVdFQXv3zdwMmnxXQ4MrD9H5/yNPPlGWLkqYzNtvHY HRwEzN7D8268fOAxnToyjfZKpi6PYdxxQ10hMpDVnbJa7lOCCxkD5qRLd+3uLIrzjVP7 OP+E49hVSh0Rt0YkkI2dGCmUlQ/ffUMeu6mDjldlHF0hprbwWOQJ9ctxQkY22lNaRMVQ l5og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=zDGPRLuuarDLZQ+WNCYaUMcWvomGYPw+wDeEhFuyAxg=; b=ogKeMmU32nA3KIM0dYm5ixHKAaZVjXCNGijvPafhW3M2Fm+Eck5Q92IfguhPAocFdr Rzd/ZJxZfChHKxr1SZYHCAfLk/0cUNWv3Pu9HY35431HPysh/YWPqPYWjbf26CXxqfru Szresx4UHNSm3Iew2Sz/4yNCCPMIN+aiWF2tA/O79V3YBiCiXihxB1gHPYALLm3dcA9v vo7oCt0rDaapwljnpshinWD720AvV+I3+UhvKKoCkd4ALmuteH5GblG7hbCBhlH3p0el qNUR4vWUwDd/J/Du+OAHnojSaHPwLDn6i5OpmUw3AbrK1B1J5dlWaDwumPX5QvE9UpcK 4rXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tTZ4qqI8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si5707619otq.73.2020.03.22.04.34.56; Sun, 22 Mar 2020 04:35:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tTZ4qqI8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726976AbgCVLeg (ORCPT + 99 others); Sun, 22 Mar 2020 07:34:36 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:40863 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgCVLeg (ORCPT ); Sun, 22 Mar 2020 07:34:36 -0400 Received: by mail-pj1-f67.google.com with SMTP id bo3so4680508pjb.5 for ; Sun, 22 Mar 2020 04:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zDGPRLuuarDLZQ+WNCYaUMcWvomGYPw+wDeEhFuyAxg=; b=tTZ4qqI8gga79iORQO4aSwsOLs8Yx/oiMadUveAi+Lccml/GBARWHBhFicqu031aPq WL91VEhgpk5NsD+uLMsEHY0JDeAKGVuJIUcbbN3s0WFjvjMNSNRSmd3kbCQBgZrYJV60 y59imIi8lqIU4BX4NIGophpxyiM5ZACJlRD/t4IsBwOm8x/zmg3idt3MYLxqSMGHQrXF dSbv9mIB6aXY04+JUgguuI3eQZ3IuwfN25GTbJFPeluQD6eUc7O/PMI2Rq26/ce2ZU1c NqBVwhGEvwXntep14zfUTemq84+sclsnly4JYyrsbRL0oVzicqJWCrAUivU52NwG2XlG rmUg== 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=zDGPRLuuarDLZQ+WNCYaUMcWvomGYPw+wDeEhFuyAxg=; b=D9MlgpuKxAACTxComsoyMe53oH4827b47s2+LghUDMGLaX/tUUhIMbHyOJLnrIrTNs Bv9brbV/KVEnU6vdBLW3YNGmwlFcPOJrdAyhRGybwpW91pJPBia+Mf7aBFVoQskqiPOb fgHRy+L6UEZ6jzOcrXS+g1FQbx2y3saB4FyGY2tRYkP3wDdQlFb5dXifAMeiDp3LuaAR chJ2XKUrfohND/O3XgXXA51GVV5atNrB7cwJHc7L8F7AXFZjE3lyOXYtWJUiRtHuvjKz Q8cZjS6JLF9dja67Zgf4KmH7N6deNxzQFFBYSpKxJhFDggAzbbaW35sIDjYZl+nJ+ece ZCKA== X-Gm-Message-State: ANhLgQ0BpOwWc1HBsndsPrz2hLxZY4n+xmj/9qzJGK9QzIZyu4HNlOX0 VPaenjiGQ4zpX/k6WsYZbA== X-Received: by 2002:a17:90a:33d1:: with SMTP id n75mr19066395pjb.167.1584876874787; Sun, 22 Mar 2020 04:34:34 -0700 (PDT) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id i23sm10474445pfq.157.2020.03.22.04.34.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2020 04:34:34 -0700 (PDT) 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" , Christoph Hellwig , Shuah Khan , Jason Gunthorpe , linux-kernel@vger.kernel.org Subject: [PATCHv8 0/2] fix omission of check on FOLL_LONGTERM in gup fast path Date: Sun, 22 Mar 2020 19:32:11 +0800 Message-Id: <1584876733-17405-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v7 -> v8: - drop the [3/3] in v7, which is a test case without real use case now. - apply renamming in __get_user_pages_fast() besides internal_get_user_pages_fast() - improve the note in code with [2/2] Cc: Ira Weiny Cc: Andrew Morton Cc: Mike Rapoport Cc: Dan Williams Cc: Matthew Wilcox Cc: John Hubbard Cc: "Aneesh Kumar K.V" Cc: Christoph Hellwig Cc: Shuah Khan Cc: Jason Gunthorpe To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Pingfan Liu (2): 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.c | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) -- 2.7.5