From patchwork Fri Nov 15 10:53:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 11246041 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 15F49930 for ; Fri, 15 Nov 2019 10:54:00 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B32CD20732 for ; Fri, 15 Nov 2019 10:53:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="Y+TeTKfI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B32CD20732 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+903+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id jXrbYY1556264xwboDBoTbnU; Fri, 15 Nov 2019 02:53:59 -0800 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web09.1427.1573815239037596539 for ; Fri, 15 Nov 2019 02:53:59 -0800 X-Received: by mail.kernel.org (Postfix) id 848DB20748; Fri, 15 Nov 2019 10:53:58 +0000 (UTC) X-Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 24E3C2072B for ; Fri, 15 Nov 2019 10:53:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24E3C2072B X-Received: by mail-lf1-f65.google.com with SMTP id j14so7665811lfb.8 for ; Fri, 15 Nov 2019 02:53:57 -0800 (PST) X-Gm-Message-State: dHoFVf1Rx8qY1saJapgz6vSLx1554929AA= X-Google-Smtp-Source: APXvYqwJm9kjyX50miWZJi1AorPayww0DL6AYzoF4y4u+n5SXXKGJRe8XKtDsFsG7BO1UZzJN2egdw== X-Received: by 2002:a05:6512:511:: with SMTP id o17mr255769lfb.167.1573815236204; Fri, 15 Nov 2019 02:53:56 -0800 (PST) X-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: Linuxkernel+Patchwork-Soc via Email Integration 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 User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org Content-Disposition: inline DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1573815239; bh=7mXq+ayBVE4jnGdln32UBJsa0M8RiwRWaf7OL5sNI0s=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Y+TeTKfIQmleVg5SCrBXahQQqEiXRXv+jXvp86QWpGE9O8CDsB3gbfCp0ZsTZkfYjxS Q9KImbTHMAGQ6vZVxfPYeKHtAfv6pOpUXX7dxD7lmVjYzaNfax4ukdywjKRIw0UTArC3e jJj5XyeafAECWjdm0jrrLqRRDF1PzAgI9Ww= 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(-) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#903): https://linux.kernel.org/g/patchwork-soc/message/903 Mute This Topic: https://linux.kernel.org/mt/59150726/1554929 Group Owner: patchwork-soc+owner@linux.kernel.org Unsubscribe: https://linux.kernel.org/g/patchwork-soc/unsub [patchwork-linux-kernel-org@patchwork.kernel.org] -=-=-=-=-=-=-=-=-=-=-=-