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=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 44AF7C388F7 for ; Mon, 9 Nov 2020 20:19:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EEA5520731 for ; Mon, 9 Nov 2020 20:19:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="JXgaaqDO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729871AbgKIUTw (ORCPT ); Mon, 9 Nov 2020 15:19:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729854AbgKIUTs (ORCPT ); Mon, 9 Nov 2020 15:19:48 -0500 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27792C0613D4 for ; Mon, 9 Nov 2020 12:19:47 -0800 (PST) Received: by mail-qv1-xf41.google.com with SMTP id ed14so4737711qvb.4 for ; Mon, 09 Nov 2020 12:19:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=HHHYB1ExYLieT1XHJGJI8HPhRjnPWnLekqDHsJKHIQY=; b=JXgaaqDOW62GJeK6LF9p9QXp4arZzjT+9gOkdgDMbbBoFO+8sUD00sB0JqVlcQZSxV vl2psYZJGXUFO5mwdAm7RkY4hAKaDkxQqxt9cCodVKzEWjgN2Avsu8bajD/+E6QYqqdC A1tRfbBTXbInfICRoJGTOSrrECkpnxpkzxbI7e/1OJCxzWq7kFD95wrfiSB8nZ6UecOk dClV/5rDLoThnRxwB0KwY4Vkv6oNJCO+A0hAlZU2ZqdpITWBVjpnAPdneJ9qCIAXfZVP ty/uyz1FELwQ29ayrN7FVG+4y3r6CEdfAZ6dA9hGacXCCPrSnv8g+b6mYWP6EPJDPMhi BDZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=HHHYB1ExYLieT1XHJGJI8HPhRjnPWnLekqDHsJKHIQY=; b=Ye5PYujQRSQ17w4TvmqD/H2iYkSFCQPMqg836XPpdS3/jlZJIfnGx2MzujiWFKhywD NgLpbNYkN1VwxXsLwpjC5ILGbWMpPbv2zL+dLYVZDaY3cR0kVmKnK4ltwnvCLKlGVilj IhLjKXi2t2mJQ1JK0Tun+3pcinMsroQY+TOq0Z8BarhsHrxpAVLCE5UeBqUarN8h4TtS X10uIRviYyyqcUPt9uptseAoZn87pw1GsnLUr2eUaxm9dPUwIxh4ePYFob8GqtsedcTe K9pf/ifyY/pyaVmTGOuwNstFp/VkAzgIntmlF/5VdwAcPMZGJ8bbGo85buvMatQeivvM HAug== X-Gm-Message-State: AOAM531CYd6bqZ96esoqcCobaTqRq/SQ9+JGLT17A4644PIU5EsBPTjc CRnu+0pybZ7x1jIBRg0SlMBm8Q== X-Google-Smtp-Source: ABdhPJzK9dM3acw0STrCk9csKCfXW/JXgGf/mN+se1YyATHnQetQCofOE1QIpslDFg5IZrWXLNthmQ== X-Received: by 2002:a0c:edb1:: with SMTP id h17mr15177616qvr.7.1604953186119; Mon, 09 Nov 2020 12:19:46 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id l28sm6916468qkl.7.2020.11.09.12.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 12:19:45 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kcDdg-0026FV-KT; Mon, 09 Nov 2020 16:19:44 -0400 Date: Mon, 9 Nov 2020 16:19:44 -0400 From: Jason Gunthorpe To: Thomas =?utf-8?Q?Hellstr=C3=B6m?= Cc: Daniel Vetter , John Hubbard , Christoph Hellwig , J??r??me Glisse , linux-samsung-soc , Jan Kara , Pawel Osciak , KVM list , Mauro Carvalho Chehab , LKML , DRI Development , Tomasz Figa , Linux MM , Kyungmin Park , Daniel Vetter , Andrew Morton , Marek Szyprowski , Dan Williams , Linux ARM , "open list:DMA BUFFER SHARING FRAMEWORK" Subject: Re: [PATCH v5 05/15] mm/frame-vector: Use FOLL_LONGTERM Message-ID: <20201109201944.GG244516@ziepe.ca> References: <20201104164119.GA18218@infradead.org> <20201104181708.GU36674@ziepe.ca> <20201105092524.GQ401619@phenom.ffwll.local> <20201105124950.GZ36674@ziepe.ca> <7ae3486d-095e-cf4e-6b0f-339d99709996@nvidia.com> <20201106125505.GO36674@ziepe.ca> <504d77b87c81b7027157e0c7b5286e17123c59d9.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <504d77b87c81b7027157e0c7b5286e17123c59d9.camel@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org On Mon, Nov 09, 2020 at 09:44:02AM +0100, Thomas Hellström wrote: > static inline bool vma_is_special_huge(const struct vm_area_struct > *vma) > { > return vma_is_dax(vma) || (vma->vm_file && > (vma->vm_flags & (VM_PFNMAP | VM_MIXEDMAP))); > } That is testing a VMA, not a PTE, which doesn't help protect get_user_pages_fast. Sounds like is has opened a big user crashy problem in DRM and the huge page stuff needs to be revereted.. Dan? Jason