From patchwork Tue Mar 16 15:33:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 12142491 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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 DB07DC433DB for ; Tue, 16 Mar 2021 15:35:09 +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 7CDEB60200 for ; Tue, 16 Mar 2021 15:35:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CDEB60200 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:Date:Subject:Cc:To:From: 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=0NqlWkwZbObJw8coiFzcAaQx1xd/ZbC2/BCpf+5xqAQ=; b=aYF1M3dingFkaAeydsxzqgWqNt HO+CVHheGrApOgcWh3eBi86zKV0IjQFf0jdUtqukETsvccn7YhGXkGSxt+AYh714waCOmmuMxZGIG xO/prTcJIW00qvDOdKV66TDqD42KloYaBuH3/NLq+wOyN4Z5nYkSgK82EGLIriCuogJ6qFs4etqmj azB0YT6UKcZLv80Qv6TMjAbVZ3Qn9PO5IboJ3MzQpkNhO9qoMBOKrtqfkRN1oGLC+FjEeO5U13eyy Fb1802iCsrrQcdfvD482xunySdlt6UytZ8k2ylG9AwoUX5EMLRDAFiYY7W/OI7v8mg4zC26kKitYG J35d+Ofg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lMBhQ-001524-1x; Tue, 16 Mar 2021 15:33:36 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lMBh5-0014us-O3 for linux-arm-kernel@lists.infradead.org; Tue, 16 Mar 2021 15:33:17 +0000 Received: by mail-wm1-x32f.google.com with SMTP id r15-20020a05600c35cfb029010e639ca09eso1707188wmq.1 for ; Tue, 16 Mar 2021 08:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4MtyicSEo1IFZBpiFoiow7kzS1Jr8w9+zJmQTxAoVfE=; b=aOBu4s4YBTkov1on28kzZszJKza9hsa6v9IjY9CZuG1RXgyJINqB2YR9wqD8mrJsG5 oW9CNdk48E00tfQFFqf7eabOXr4V6g1rSZIOZUrY2E9p4jZhOHsIqTc/Zrr2iIrrLpRW UO0d+H76OkhNjzww3mqsdcDytyEk8Lp3GsJCc= 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:mime-version :content-transfer-encoding; bh=4MtyicSEo1IFZBpiFoiow7kzS1Jr8w9+zJmQTxAoVfE=; b=I81E03ETvozYXEpglW4hCEt85Be2q+5EIR5tQYByIwfFveOIKP9alqzKh5xUpT8oA1 IwBxM0KAGQHl9Id60kzTDFcFSoGWrJcu9L+EIoqFBjA0zHIEWx8nggunuRu2ArA+fmX2 rNXhPO0/c4x15Pvim5nOTcAhQBZgvHCyzHERhpD68qvPXM2eDSyvJCpOATbChbkO6vcP hXkjUb3S2gWbPJ0JR5B9gh6Qzt+ChN7baz3VGlidC25jvuPzS/9XrI3LylJjMOdnFUlH wf2ZWXu0tQPSE0TsvHD0H/HeLpSxpSMk91ER65O5ll5OfHfgpbQklqOLHQiRWzxTsHRI 8dyw== X-Gm-Message-State: AOAM530C+thYtvRVAcOgpRsduzrOLTk/BepTT+FDbPY71EQz4NDAPPaH pGoWhARuGrmn4nF/E47daWx8ObOGwhlSk5n3 X-Google-Smtp-Source: ABdhPJwLcv8LIcwpJj11nT7CjeCYw+rPcm7MmzmWjcj9F/IESEfr8FtSUIk9PgYxtf0usoMMx2lQNw== X-Received: by 2002:a05:600c:2301:: with SMTP id 1mr258796wmo.36.1615908792340; Tue, 16 Mar 2021 08:33:12 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id h22sm3985078wmb.36.2021.03.16.08.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Mar 2021 08:33:11 -0700 (PDT) From: Daniel Vetter To: DRI Development , LKML Cc: kvm@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, Daniel Vetter Subject: [PATCH 0/3] switch to unsafe_follow_pfn Date: Tue, 16 Mar 2021 16:33:00 +0100 Message-Id: <20210316153303.3216674-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210316_153315_956812_AF27E29B X-CRM114-Status: GOOD ( 11.05 ) 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 all, This are the leftovers from my pull that landed in 5.12: https://lore.kernel.org/dri-devel/CAKMK7uHQ=6OJcRguCUtiB456RWdCfwSNEXV8pQsfsPodTJ6uxw@mail.gmail.com/ Only changes compared to the old submission are: - dropped vfio and kvm patch - add patch to just remove follow_pfn at the end Assuming no objections I'd like to lande these three patches in my topic branch for 5.13, for sufficient amounts of testing in linux-next before the merge window. Ack/review especially on the two mm patches very much thought after. Cheers, Daniel 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(-)