Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4330373ybc; Fri, 15 Nov 2019 02:58:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyMht3SXoP4msiF9vX0yVMwOW3AMh0qWEjkpjnw+41wWz1WywGuzrSYBsR05fkeKXsSlmsD X-Received: by 2002:a17:906:52d3:: with SMTP id w19mr12319ejn.268.1573815487642; Fri, 15 Nov 2019 02:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573815487; cv=none; d=google.com; s=arc-20160816; b=nx1asIp5LF93HO+lTLdBjbneWqugjTX5NOq9CyjeUwkvlxeSMELKNNYVX8pAS3JBVH YwxtVwkRosvYGXH9M3Mzizw62Ako0C6jJCKX5cSbjVcZmuKkaz2igeh3EQZBU1IqsL4o PvnMaZj/25ftONbuIa3f58kJm3WSJnz6kRGvAp0yUoPHVVv/vK1KOY81uJQ6Apde8dER 1MIgLoTHDAcvbxheIW5jeRsmaE8sFkELM5p7WUkgBs1TOPpszkKnD41Gwu109rgs4JDZ 2XxQYFQV6Dbx1Lv8QqDMb97WoIVXeTa28Mzd1K/TKfTFk7IWfiolTQDDGlVpxBhoA0vQ gdcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=YrBKYAXW2pBZSbQ2SIp4S+nYebHNxgT7XYL6TriEP8k=; b=SjVrki1NUiw8iFYcWZE8ZrI418SEhlnFRoGHXyQJG4Stx/FRsS0XlOlKqE+APhJHZO FAOrcrVUunlUWWbsY9BPSbni2qe02NPiOk17Q8TbamsEKN1nYdMWJlgVFwzds4xZIY0m CQKqjeO/olU6cyMer7o/PpQsBkSRspi2/7M8c1msTAnsIBlzXHBwJThV2AsiC67oy2i9 O0K4dp0f5fTLo7V29j3dnuTBWOppA+vprSM3YOf8lvOmDrV0rEetkCOf1pRAoAf+xnk/ FmPr8CXjkim7276F+sThP5/+DTYT5kKJWIWVdYn10QAVaapddeNWSo8Ts60c50no/FKx p35w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NQLd1g5f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si5074733ejr.327.2019.11.15.02.57.42; Fri, 15 Nov 2019 02:58:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NQLd1g5f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727249AbfKOKx7 (ORCPT + 99 others); Fri, 15 Nov 2019 05:53:59 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:45164 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfKOKx6 (ORCPT ); Fri, 15 Nov 2019 05:53:58 -0500 Received: by mail-lf1-f68.google.com with SMTP id v8so7649784lfa.12 for ; Fri, 15 Nov 2019 02:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=YrBKYAXW2pBZSbQ2SIp4S+nYebHNxgT7XYL6TriEP8k=; b=NQLd1g5fKoaez5J87XjZtjuNW4KXaDwXMaUwYF9ueSa8RJTFOY8QHy5z2i9uxqJ9Nz AzD6vtXsjMX2jQHd16HGN+jQQa17OAkoy5cAQYyTY5bwkY/6nGpfluYDjRXPzrZswyo6 6iwraTyyS13J8R2LiQ2M38BXIsrM4+CEuv6715gfHhH6md62glQy4RYXyUO54TrMAucM Aaan0HThwCAP4um+hFu2j6hubBXbyIC4AEQpR+MCHHbb0rbeENqYeJtsu+XkKITlugRJ e0yR+FmPn4HnNOLoQ/UP+YpsCny9+oiz+Knpez74A35fsTFRJoezeWNz+jgOBvxQsea3 K76g== 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:mime-version :content-disposition:user-agent; bh=YrBKYAXW2pBZSbQ2SIp4S+nYebHNxgT7XYL6TriEP8k=; b=QtQ/khFyHCL54svGG8HMGfQPBeIa2jeRi6InWjTIhdbKbnTiLm0PJfqXG7bmoS3r+J QGn2gC5OD3KRH634vug8I1HZ9N8DyGldS7y59UNPIlRKVUkGKnLMfT7SUspYrtrjN/V7 ElzxSxfrXKRSFXok0h2ea0kJDYIxhaqB+7m3pLgkQz2kSFUTT5hwkYEf0fg6SLKHkT7J enlmBKGnN0LbKUYzllI60B5B+BqzIbhUfT7AjYOGfsQdKBjG7I/XgQpEGK3uqYmYAcLT EtcMejvrJh/6ANyoG35VRrRk/Xy8uZJa91/uTRy7fYEWtOsBGbGPO67NnOFxDERUG9UF tm9w== X-Gm-Message-State: APjAAAUuIyFSdRP3CX0QYR9orn7ZtF1cBHWYeuBYYknOk+tqAN2W3MYs DITvUbCZiNiuIVcLqHIYf+/aNA== X-Received: by 2002:a05:6512:511:: with SMTP id o17mr255769lfb.167.1573815236204; Fri, 15 Nov 2019 02:53:56 -0800 (PST) Received: from jax (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id r19sm4025146lfm.61.2019.11.15.02.53.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Nov 2019 02:53:55 -0800 (PST) Date: Fri, 15 Nov 2019 11:53:53 +0100 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM Subject: [GIT PULL] tee subsys fixes for v5.4 (take two) Message-ID: <20191115105353.GA26176@jax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello arm-soc maintainers, Please pull these OP-TEE driver fixes. There's one user-after-free issue if in the error handling path when the OP-TEE driver is initializing. There's also one fix to to register dynamically allocated shared memory needed by kernel clients communicating with secure world via memory references. "tee: optee: Fix dynamic shm pool allocations" is now from version 2 which includes a fix up with a small but vital dependency. If you think it's too late for v5.4 please queue this for v5.5 instead. Thanks, Jens The following changes since commit 4f5cafb5cb8471e54afdc9054d973535614f7675: Linux 5.4-rc3 (2019-10-13 16:37:36 -0700) are available in the Git repository at: git://git.linaro.org/people/jens.wiklander/linux-tee.git/ tags/tee-fixes-for-v5.4 for you to fetch changes up to 03212e347f9443e524d6383c6806ac08295c1fb0: tee: optee: fix device enumeration error handling (2019-11-15 11:31:24 +0100) ---------------------------------------------------------------- Two OP-TE driver fixes: - Add proper cleanup on optee_enumerate_devices() failure - Make sure to register kernel allocations of dynamic shared memory ---------------------------------------------------------------- Jens Wiklander (1): tee: optee: fix device enumeration error handling Sumit Garg (1): tee: optee: Fix dynamic shm pool allocations drivers/tee/optee/call.c | 7 +++++++ drivers/tee/optee/core.c | 20 ++++++++++++-------- drivers/tee/optee/shm_pool.c | 12 +++++++++++- 3 files changed, 30 insertions(+), 9 deletions(-)