Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E2ABC433F5 for ; Mon, 6 Dec 2021 14:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344769AbhLFO57 (ORCPT ); Mon, 6 Dec 2021 09:57:59 -0500 Received: from verein.lst.de ([213.95.11.211]:50940 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344728AbhLFO54 (ORCPT ); Mon, 6 Dec 2021 09:57:56 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 8473E68AFE; Mon, 6 Dec 2021 15:54:23 +0100 (CET) Date: Mon, 6 Dec 2021 15:54:22 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Amit Daniel Kachhap , linux-kernel@vger.kernel.org, Vincenzo Frascino , Kevin Brodsky , linux-fsdevel , kexec , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Young , Baoquan He , Vivek Goyal , x86 Subject: Re: [RFC PATCH 01/14] fs/proc/vmcore: Update read_from_oldmem() for user pointer Message-ID: <20211206145422.GA8794@lst.de> References: <20211203104231.17597-1-amit.kachhap@arm.com> <20211203104231.17597-2-amit.kachhap@arm.com> <20211206140451.GA4936@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 06, 2021 at 02:17:24PM +0000, Matthew Wilcox wrote: > On Mon, Dec 06, 2021 at 03:04:51PM +0100, Christoph Hellwig wrote: > > This looks like a huge mess. What speak against using an iov_iter > > here? > > I coincidentally made a start on this last night. Happy to stop. Don't stop! > What do you think to adding a generic copy_pfn_to_iter()? Not sure > which APIs to use to implement it ... some architectures have weird > requirements about which APIs can be used for what kinds of PFNs. Hmm. I though kmap_local_pfn(_prot) is all we need?