Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp372801rwi; Mon, 10 Oct 2022 01:20:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DNFXrzlmYkgVuGDQcFPPUpeoC628zQDTFGkjYtqk2Wi7v7NUrwkD50NOQ63dGFF2Se4Ix X-Received: by 2002:a17:906:7956:b0:782:a340:5738 with SMTP id l22-20020a170906795600b00782a3405738mr13965819ejo.444.1665390003626; Mon, 10 Oct 2022 01:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665390003; cv=none; d=google.com; s=arc-20160816; b=tkVkqCo3Pud+Oy1PDL3gF45d7TAtvejLMOwdEtxbXbB/OP96aNGXZFZjyM3eBVulrJ SGXx/jQJ7SYWCItOC4F6t1kW60WhRjjiB/sNzIR5A1UXOfNJ2cS27WVg4jI4b39GGdys fdCp4ZJqfuXa+1KEnE2cDdw41IA4uei9LQEd2/dcQCTqf0T8IszBuw4SjzBT4Y8bSf16 yBDtt8Ags0lggg0xzfMKQ8bg6uoJZ/yEVU8Zc2m7P1kfdT+YNvZk25lU0Zdl3Sa+MdMq wPL1qQ16iqHj3SrjOg/gxewHfvvwM16Xq+PiUcsjRx5mLWBNeFlSOA90EJHEAxiKYv5/ CEMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=q7/T3qOR7eV3PKPPEk4TsEo2eKHyahjMu7OZV476LSs=; b=p0vgTzDmlfgWOAoLL7HW1AEMIflmVTVB1WE6uLQdGMBIgqARQzQxBj4BfE81TtOIr+ 8J5P8czGinc9tceLOaHWGZTyTZvD0Kycl4u6dsnZbDIRC9976iRGBw5TSfnnqS/c4xJo fTkUtc/C15ONgoe4fAFTIcGw+aKPBCH6t7vjKxj2faXwT1I4huyT8CFJgLHxS/iISzeO Yr3mKlUbmGQTyTUtirEHV/AONM729rbrraMwPXnjWn50/jmRgXuFuG2vNr8YNwux0n7Y iIlPwxaLVRQ3WGh4syNte6T6kA3U5/E9CK79xdY9YP+pjt0hwFrpeg9XKcLiAdYpuSi/ /kdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf41-20020a1709077f2900b00781bbff1cc1si6704392ejc.455.2022.10.10.01.19.37; Mon, 10 Oct 2022 01:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbiJJHqV (ORCPT + 99 others); Mon, 10 Oct 2022 03:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbiJJHqC (ORCPT ); Mon, 10 Oct 2022 03:46:02 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9665588 for ; Mon, 10 Oct 2022 00:42:39 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id CE64268AA6; Mon, 10 Oct 2022 09:42:34 +0200 (CEST) Date: Mon, 10 Oct 2022 09:42:34 +0200 From: Christoph Hellwig To: Linus Torvalds Cc: Sumit Garg , Phil Chang =?utf-8?B?KOW8teS4luWLsyk=?= , "ira.weiny@intel.com" , Jens Wiklander , Andrew Morton , Al Viro , "Fabio M. De Francesco" , Christoph Hellwig , "op-tee@lists.trustedfirmware.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: [PATCH 2/4] tee: Remove vmalloc page support Message-ID: <20221010074234.GA20788@lst.de> References: <20221002002326.946620-1-ira.weiny@intel.com> <20221002002326.946620-3-ira.weiny@intel.com> 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 06, 2022 at 11:20:16AM -0700, Linus Torvalds wrote: > Actually, I think even then we shouldn't support vmalloc - and > register_shm_helper() just needs to be changed to pass in an array of > actual page pointers instead. > > At that point TEE_SHM_USER_MAPPED should also go away, because then > it's the caller that should just do either the user space page > pinning, or pass in the kernel page pointer. > > JensW, is there some reason that wouldn't work? I suspect the best long term option would be to just pass an iov_iter..