Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5802401ybi; Tue, 4 Jun 2019 12:31:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxusMHnAwC09Nej5x38/3q3FnFEJtlYe+zqa5ImU3+JZdlsUGxj/3KkYnDYkf3nR6g5TPeA X-Received: by 2002:aa7:83d4:: with SMTP id j20mr41614836pfn.90.1559676677067; Tue, 04 Jun 2019 12:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559676677; cv=none; d=google.com; s=arc-20160816; b=MF9FmikPKzAXbpHq9vR2iC/j5FW/UM71rwappMoVJkJTLDdxxg6NM08vQbw3yBtN/U HkPXfbkZXlyObXWB7Z1MlosCQUpBcW97JO5X18ZwK//6W/7GcYPUvRoeYHVoRZsM4VPt Z43dh4P5cBSP9zGxBgkvEn5tzZNrfwYE+Rz5xTbNuOcH7hd58P2RjBnukLOqbO1Aldpw hwXHo8bL+hvSehsPTqvuMpbM+8qutEtY93mEzlm/Y2dFLWE5gRKdN73f2Og2DkrJxnO8 bF+qImefKN3dpYCHOwyyo019v4hlmfsJUx0dBJ95xUkFvvgM3Nfaii0O3YYXSuEAldZ8 5QKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=L5ssfsr4CdbgOzijHbr9sPxMKKvikmBYGkIxWSlzZPI=; b=wxfq5jxvLi5XDE2jC5G5DD0aK/H8Za1s/O8NPAgx0nG0/0YaDVqp5kw/z05+kHi7mi edeK+Db2Dvf7HG7f3aRYaH+VwJ/mHi9XoDlI/8wBsxXmkHcWfC8xl/Uxdn/40+u/nNeJ ZdRP+61P3Zcx0ck8G4bZDIf1pr7XG6NiIN3pJsSwAxS9mMULkOM3FWeEDoCI8oeXW/HM Zm0TDnrEURw8k582VFY2fXPk4UbG/0fUn7i/9Mmf1kTVYowJN8KHgMxSjCyk47BCxmtM /V9jcdzb7mdIxsDpoy9qaG4NiZBa/xciovJy+TyNUy3MUFkrdp8Q8NiXIGBnZKCg5xBz XM5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=rQWBsgW5; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si23613624pgp.478.2019.06.04.12.31.00; Tue, 04 Jun 2019 12:31:17 -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=@nvidia.com header.s=n1 header.b=rQWBsgW5; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbfFDT3x (ORCPT + 99 others); Tue, 4 Jun 2019 15:29:53 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:1632 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfFDT3x (ORCPT ); Tue, 4 Jun 2019 15:29:53 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 04 Jun 2019 12:29:51 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 04 Jun 2019 12:29:52 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 04 Jun 2019 12:29:52 -0700 Received: from [10.110.48.28] (172.20.13.39) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 4 Jun 2019 19:29:52 +0000 Subject: Re: [PATCHv2 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast() To: Ira Weiny , Christoph Hellwig CC: Pingfan Liu , , Andrew Morton , Mike Rapoport , Dan Williams , Matthew Wilcox , "Aneesh Kumar K.V" , Keith Busch , , Sanket Murti , "Ralph Pattinson" References: <1559543653-13185-1-git-send-email-kernelfans@gmail.com> <20190603164206.GB29719@infradead.org> <20190603235610.GB29018@iweiny-DESK2.sc.intel.com> From: John Hubbard X-Nvconfidentiality: public Message-ID: <4b448fa6-dd85-ca45-5cb8-d2c950bddf37@nvidia.com> Date: Tue, 4 Jun 2019 12:29:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190603235610.GB29018@iweiny-DESK2.sc.intel.com> X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL103.nvidia.com (172.20.187.11) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1559676591; bh=L5ssfsr4CdbgOzijHbr9sPxMKKvikmBYGkIxWSlzZPI=; h=X-PGP-Universal:Subject:To:CC:References:From:X-Nvconfidentiality: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=rQWBsgW5BRDGBf1MYzgpB3Q35yRaA45Lx6vyonOmAVTZnpSbwf2zHeSvs8Yh0CtyO yhGbnjVHZsxQ5JRJtlCOI63vBIro0O+7q/ZqJChiGfgFQ7rX9uXSFWZNlqbwRei6tx Wppl46/8Xx/ObqeQ/f5M8qolzh+OKE4Qj2NM666ELlnpWDyKZgOEtM35jz1Nn8qOit VEDsbi7C6JAONUUIsKyZHjIMJ3mR9A0K80wih6aJYiEEMsA3vIynzzmfbveBjY0N6T 4gtxYjsCF2R7ZgYG9suvbq7rEE/CjgnJkNMDF+eAh9df3xa4fJ2Pof2ndbE7KfBelY YtdL+BuoLdNBg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/3/19 4:56 PM, Ira Weiny wrote: > On Mon, Jun 03, 2019 at 09:42:06AM -0700, Christoph Hellwig wrote: >>> +#if defined(CONFIG_CMA) >> >> You can just use #ifdef here. >> >>> +static inline int reject_cma_pages(int nr_pinned, unsigned int gup_flags, >>> + struct page **pages) >> >> Please use two instead of one tab to indent the continuing line of >> a function declaration. >> >>> +{ >>> + if (unlikely(gup_flags & FOLL_LONGTERM)) { >> >> IMHO it would be a little nicer if we could move this into the caller. > > FWIW we already had this discussion and thought it better to put this here. > > https://lkml.org/lkml/2019/5/30/1565 > > Ira > > [PS John for some reason your responses don't appear in that thread?] Thanks for pointing out the email glitches! It looks like it's making it over to lore.kernel.org/linux-mm, but not to lkml.org, nor to the lore.kernel.org/lkml section either: https://lore.kernel.org/linux-mm/e389551e-32c3-c9f2-2861-1a8819dc7cc9@nvidia.com/ ...and I've already checked the DKIM signatures, they're all good. So I think this is getting narrowed down to, messages from nvidia.com (or at least from me) are not making it onto the lkml list server. I'm told that this can actually happen *because* of DKIM domains: list servers may try to avoid retransmitting from DKIM domains. sigh. Any hints are welcome, otherwise I'll try to locate the lkml admins and see what can be done. (+Sanket, Ralph from our email team) thanks, -- John Hubbard NVIDIA