Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2551410iof; Wed, 8 Jun 2022 07:20:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmS4whEOa/8e8heEwcqPghgWT8kg/fF5An+q1E3dEbTX5bTCwSx74bcP6AbNVgkSA84nek X-Received: by 2002:a63:1f17:0:b0:3fb:afd3:985d with SMTP id f23-20020a631f17000000b003fbafd3985dmr30313537pgf.396.1654698004911; Wed, 08 Jun 2022 07:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654698004; cv=none; d=google.com; s=arc-20160816; b=njxy2u4hy42M5Ayj8vq76AsXMqpIgDoTo3ALZgk0ZZ49C4q+NwSuevmNXn5nnXA77X Xy3g76iofZ0kQr729CGUTiN/fbxbs357G/UUGWhIc1WOZbg6PFJlVuIpZwffgIK3mKsU +8K/BlotKHEjKM1GB9C+mf4UHtoLH/cKul05hIPaNc5ib9a1gj9U0rc2q5Bg5RYg+FhC nYP43MTldHYogUUt9/1bxG2UQ/G43BepW74kvRNLa+OrRULpSvJj0Z36wQEnUJNet70s S2jv1wbHZfESNmTLZgySUdcpIU50e9j9rKkTYSBdLn7hpCJu18otU7UL1T+zC9fSyBBY jd1g== 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 :dkim-signature; bh=7jOMT5MVm+EpVaGsHNhjq+T91rwKj6XndTJ8Yfhyhwc=; b=CWcTXoTFQRXcQNZ/k1YGC2CyNcnQ3Etf0aMz5no2+3MWqb8J/55Uaj0dQbkyN+/VbB uDd4oEObOmEWqZfvpWp88W3OPIHLzKpVUqoNLtonORx076gdR9RPYxIG6OEbYMSVPM9s WzwyiawzV1ajSd8F0987y4Lwj4WB1X3qPXDsQnV4V/8RpS3go79A/sTZ/PS7iT0I7Icy rHx/FN0Qy7Y3Y63NAL/IaVKF9/cKeVK06cSi4WLPnKYpyh/O1C+XKJr6kX0Z2TySvvA0 CyBwtMS90DiUHsvsViccIiQkVrsXhbt1ag+ftDv3W5/c6i7hBjuVecyxogGrCYVOqnjt BDmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WpXNMUxR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j33-20020a632321000000b003fc64b118b9si16967723pgj.450.2022.06.08.07.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 07:20:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WpXNMUxR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C09668CB21; Wed, 8 Jun 2022 06:53:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240507AbiFHNxE (ORCPT + 99 others); Wed, 8 Jun 2022 09:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240325AbiFHNxC (ORCPT ); Wed, 8 Jun 2022 09:53:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 170B969B5E for ; Wed, 8 Jun 2022 06:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654696380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7jOMT5MVm+EpVaGsHNhjq+T91rwKj6XndTJ8Yfhyhwc=; b=WpXNMUxRD9Gj1jcsmnWuQ8nlXMtJWfwk3GhduU/5k6KpXVY/5ca7sqz5OcB65y1Nk95bXL v1u76kNAKhuGN1bY9c+FadAHbwzCKFnxA6iExxZP9dxVC5iNUOtjNl1rj/++UxlOVOE2YA LsbI7Z3ZBrsZUCzRZXvZ379tmdrQZog= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-510-p_Sv03klOAK72u4MI27ITQ-1; Wed, 08 Jun 2022 09:52:58 -0400 X-MC-Unique: p_Sv03klOAK72u4MI27ITQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 241FF2949BA1; Wed, 8 Jun 2022 13:52:58 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.40.208.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF2334216001; Wed, 8 Jun 2022 13:52:56 +0000 (UTC) Date: Wed, 8 Jun 2022 15:52:54 +0200 From: Eugene Syromiatnikov To: Andrew Davis Cc: Jens Wiklander , Sumit Garg , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org, ldv@strace.io Subject: Re: [PATCH v2 2/2] tee: remove flags TEE_IOCTL_SHM_MAPPED and TEE_IOCTL_SHM_DMA_BUF Message-ID: <20220608135116.GA27854@asgard.redhat.com> References: <20220425141617.23925-1-afd@ti.com> <20220425141617.23925-2-afd@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220425141617.23925-2-afd@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Apr 25, 2022 at 09:16:17AM -0500, Andrew Davis wrote: > These look to be leftover from an early edition of this driver. Userspace > does not need this information. Checking all users of this that I have > access to I have verified no one is using them. This change has broken build of strace's test suite against the latest kernel headers[1]; the usage prety much shows up in the Debian's code search[2]. [1] https://github.com/strace/strace/runs/6794205205?check_suite_focus=true#step:4:3862 [2] https://codesearch.debian.net/search?q=TEE_IOCTL_SHM_MAPPED+package%3A%5CQstrace%5CE&literal=1 > They leak internal use flags out to userspace. Even more they are not > correct anymore after a45ea4efa358. Lets drop these flags before > someone does try to use them for something and they become ABI.