From patchwork Mon May 3 19:15:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 12236843 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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 94B89C433ED for ; Mon, 3 May 2021 19:17:24 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0642E6115C for ; Mon, 3 May 2021 19:17:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0642E6115C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ie+AygCE4w86kgrAMf13IITdfv0ynqSJgtlKEIcbnCc=; b=pEWMNyu8jInLy6mOGAoAbDSF8f kl4XxllGTkbEUUhzT1Jm8ikgFWC9AnbcTTg5OXxZ8Zn5X783g+b8x97HOxB2TNp6Rcx3JZBz1WqlT iYaua/P3Znq0QElcnvQOi/WiJEvUVNdxuXHBEw+sF/kc+yNHG12OabtO1ZNf3YQi4jdnT2jJyTir1 UORXACkAtwHgK6Lhi+1n8VKwRh/zNLm5dfpUXeeOPU5pFu15OfJPFpRBX2/qD5Qwg5LYfNRtKHO4/ 4tNJsJhqxh9zPXCbDb4fP3QA93CppGVQLr4+bht8WsBqNGtI5ipIhydSNHCVJvh1+IzhNCSJ0jvGJ QekhLSfw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lde2O-00EhKM-0v; Mon, 03 May 2021 19:15:24 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lde2K-00EhJv-Mw for linux-arm-kernel@desiato.infradead.org; Mon, 03 May 2021 19:15:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=fyFJP735XQXj4LkTnGwzm4qSEE25PUlvsZ5m+5XoeTg=; b=JeeUZziZ/OByfEp9V+d9zC2SP5 Fs1GFk+t1tVNR+EsfMM4zP7viCm9cm5oRbAvNnDUOqgybsrkzg/6yCXbTdSKUmpmvhsHlzbDwXUjc tvcyJ+1Ubmlbi1dU823ewMhUgJvNsiVt3iX61b49/sIBQ9AGCj4rwW+ZmlsvRLtJy10a6tsToBKmV Er40au5SDLUbvaOKPpLWweC4RZ+nwChRxfcEbFkiDntuz7EpvdSQyyzyWYk0Ag2Y6oLTwBik7GdSA M8JrAOm+WxhcFdsihaihMjrxBOvhpT9mnwHjBZXw2McVbTbkbh+SpXx4CB9VdVKrQxECy1cvF7ZRC +Ew5RVYg==; Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lde2H-003QYq-U6 for linux-arm-kernel@lists.infradead.org; Mon, 03 May 2021 19:15:19 +0000 Received: by mail-ed1-x531.google.com with SMTP id di13so7635849edb.2 for ; Mon, 03 May 2021 12:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-disposition; bh=fyFJP735XQXj4LkTnGwzm4qSEE25PUlvsZ5m+5XoeTg=; b=R5TKedJKe8jFlf9lMHC2G4AqVWRJE0dTCT/4m3gzvsre1icWgKAlqnQ/n8OCP5qBu6 OD201KjlWSPNGB7YCWZ0BEgT0iiYzJnMY8R9kBq7QxnWO5Ec69yWP5imZDzfjfI87Icq Vu9mz6P83IjWi+hHed0zvq1mo7iSp7BFBiuFo= 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 :mail-followup-to:mime-version:content-disposition; bh=fyFJP735XQXj4LkTnGwzm4qSEE25PUlvsZ5m+5XoeTg=; b=kFVFlRmS4rvv1rC71zcLh6Px1hwhxJhS5FNrvWinLqfDGG4xQdbOp/T7qUMRyPfmwD A/ebwI9UuwgVynuiHm4k9vnLyhY7Ehm8NGOpkfSqmWDddHzNc8ytvYzjo+pap8QqiW8a NljkOh+GCJmY1q5gW9eeAWEKUAaKFesVWnZNCxkE+EbjxwgIOE37hCyzWKVCZlb2FzAi DvNnL9AI0wjK5fpv2NQq6aqA42fg/qGAWeciEnglZ/UL9Ab8km71BXyVs7pjlCVbrdP7 bVn31OZNJsnczBsArEizPFrp6SxKPtKWRHIAWL5xYxMkgMkAra0z7W+E+280JBn2N005 MoTQ== X-Gm-Message-State: AOAM53065HoU+/T7SLV2Tcc5TaY1nFp27pVLSk+Fgwzy9GKq5walXn6o hEBX1U9m2PQPinglxw9yjmkxBw== X-Google-Smtp-Source: ABdhPJwHjMUFJwM40ARD1fhW9cBMZs1N9ixtJyT4oagDjJlQdPziQznBELdraes2Gu2qzngLQrV4Pw== X-Received: by 2002:a05:6402:c8:: with SMTP id i8mr22275371edu.57.1620069315093; Mon, 03 May 2021 12:15:15 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id sb20sm255703ejb.100.2021.05.03.12.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 12:15:14 -0700 (PDT) Date: Mon, 3 May 2021 21:15:08 +0200 From: Daniel Vetter To: Linus Torvalds Cc: DRI Development , LKML , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PULL] topic/iomem-mmap-vs-gup Message-ID: Mail-Followup-To: Linus Torvalds , DRI Development , LKML , linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux phenom 5.10.32scarlett+ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210503_121517_996508_F45B2ED1 X-CRM114-Status: GOOD ( 14.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Linus, It's still the same topic branch as last merge window, but the name isn't fitting all that well anymore :-) Anyway here's a small pull for you to ponder, now that the big ones are all through. It's been in -next almost the entire cycle, I've only done some non-code rebases due to the -rc1 fumble and to fix some commit message typos. Christoph Hellwig also looked at these and aside from wanting to outright remove it all didn't have objections. topic/iomem-mmap-vs-gup-2021-05-03: unexport follow_pfn Follow-up to my pull from last merge window: kvm and vfio lost their very unsafe use of follow_pfn, this appropriately marks up the very last user for some userptr-as-buffer use-cases in media. There was some resistance to outright removing it, maybe we can do this in a few releases. Cheers, Daniel The following changes since commit 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b: Linux 5.12-rc4 (2021-03-21 14:56:43 -0700) are available in the Git repository at: git://anongit.freedesktop.org/drm/drm tags/topic/iomem-mmap-vs-gup-2021-05-03 for you to fetch changes up to ac8b8400620a4b0d9ca903ee9ad440bec736f5fa: mm: unexport follow_pfn (2021-04-08 16:54:38 +0200) ---------------------------------------------------------------- unexport follow_pfn Follow-up to my pull from last merge window: kvm and vfio lost their very unsafe use of follow_pfn, this appropriately marks up the very last user for some userptr-as-buffer use-cases in media. There was some resistance to outright removing it, maybe we can do this in a few releases. ---------------------------------------------------------------- Daniel Vetter (3): mm: Add unsafe_follow_pfn media/videobuf1|2: Mark follow_pfn usage as unsafe mm: unexport follow_pfn drivers/media/common/videobuf2/frame_vector.c | 2 +- drivers/media/v4l2-core/videobuf-dma-contig.c | 2 +- include/linux/mm.h | 4 +-- mm/memory.c | 46 +++++++++++++++++---------- mm/nommu.c | 28 ++++++++++++---- security/Kconfig | 13 ++++++++ 6 files changed, 68 insertions(+), 27 deletions(-)