Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1178841ybx; Thu, 7 Nov 2019 08:20:49 -0800 (PST) X-Google-Smtp-Source: APXvYqx16kNRKJSDc72ccrn1ADoLTxcVgWhwW1ICXkQKEJL6luNXpiBixArHT97wQFlImsicpyZE X-Received: by 2002:a50:970e:: with SMTP id c14mr4560338edb.20.1573143649304; Thu, 07 Nov 2019 08:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573143649; cv=none; d=google.com; s=arc-20160816; b=tMkCq0jrNeca8LGwzfS7RKjghWH61JI6GXA4iUiTFBEfCvBMLCVsOl4j1GGwqwIwxI hKDRslTFTYWnPezar3kzvVoN2tC8yUrA9a2fo/eZDcVQQ2/wbo1wIKnuFPNXgmN5PlkL omhdTXYTLIma1vTK9YW/dcR4GpKE8pKAoTxyyrdM6KYJ5xuKY04002TGUQTk/wz3i+wa yaPqXSPjXecOzrB/ldO4kz2dxBXy/di3WekB+1eo1/dWnPogWLXWdW6OtOioFxtZMdEC SrZ83uAvu/sYIksaAx6eMtn6wuAnj9FMfdG/AaNgwsBlZymgu1tggDEKfLvOTE6e6E/6 28dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H7kVd9FarYpVpIKscAjqYl6LRrnKSeFeSP0krGXflic=; b=Zr38agEokMhswRWW5AvonY1MDqaRNZ22fL7QM1F1er1BUoQ+Lue8+Xt1wK+MrTnhWD WhTUd60CO5clehD113aa0/HAebvOk2YfSa8xGeOhnITZzikwQVyuQ/iuAA/snSoj+bZB 1DdLLC0oCwTeUWVQineJ0giKj313e2j9iVQE3T/0rY7s56oiRtIgGzbqVNV+7+Xlq88l WRLKgMtimqeQeL5kEYzMMt1jLwsfQsp3QbGiEKFGkohgxgkpd2MSkYi0yzW8uOXGZVrp 5Z+hE839rXrYd1Wg3v8TpXrEvvzUQP8P7LfvcsqU88LWBuHcIfi34kBS2MVDI2PKnb4n UnEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rN6LrlHS; 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 jt18si1684990ejb.19.2019.11.07.08.20.25; Thu, 07 Nov 2019 08:20:49 -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=rN6LrlHS; 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 S2388753AbfKGQQu (ORCPT + 99 others); Thu, 7 Nov 2019 11:16:50 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38940 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726810AbfKGQQu (ORCPT ); Thu, 7 Nov 2019 11:16:50 -0500 Received: by mail-lj1-f193.google.com with SMTP id p18so2933694ljc.6 for ; Thu, 07 Nov 2019 08:16:47 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H7kVd9FarYpVpIKscAjqYl6LRrnKSeFeSP0krGXflic=; b=rN6LrlHSKT2qOQK5ltr/br77qUF9yv79uygmhFo59z/vq0k9ViIIZikZtCuEiH0D9O Nu6V4QMAQ3F9Wq9d/aBstjFh86Oifi0mzmY1jz07EoMcuIiofNEksrlvwyzCVAdBsEIM FWzgH1QVhoH8vEBpmj4yDgDbmTCbMqx/sBsCu9r3pWhAtlrOQTngMvPamSxYakdQNa8r 3h7iMATyaMX4+1z002syjAofPeYqQK4+whpnFgpUjuhI7HJumenh8erI73xIqmziAx1N S+gqWwgVgnHyB5JBwZ5hoYdxLGOyh+inXFbGkGBX15DCKmTb6+sQTB4aZUXNKT2AlkJl E3eQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=H7kVd9FarYpVpIKscAjqYl6LRrnKSeFeSP0krGXflic=; b=tkkAUHRzvcHN6ik7PoPndvi0ohn08vt6bVeMZ0+19oA2Uq1VUsBhwcnAIfBbuDD8N5 aGuBFw2kIOnobUBwswh9d/wb1H0b4PPAcBzTS/axM9bKRCHCoKqY48keGTulC7eYlYVh kivv3CgU3g3hrDTO6qolPL5yF2Z+guLJ4mCic64+aBrYsh6TPs8fvDwT5/HAPOSpo5iC y/iOj6+uVcW0Y7wr7/1sjPQ0XSMgz05a+222vUiaDKFn37XUJ4OcIZZi8nGiLHwNltg3 zo73A1IfbsX90jUjiHO5p0wUrDde4dYHZMwawpleNwG8uy3C1m9mG4SurTW61bUPZD45 zviw== X-Gm-Message-State: APjAAAWgyex8/V+Z90IG+ierRc12P53FpJXUVoEFPfuONgyHV7H7e5Sw EDv34a9pGYMfZFbaciIYy0jMLkRAGzE= X-Received: by 2002:a2e:998a:: with SMTP id w10mr3111225lji.66.1573143406950; Thu, 07 Nov 2019 08:16:46 -0800 (PST) Received: from jax (h-48-81.A175.priv.bahnhof.se. [94.254.48.81]) by smtp.gmail.com with ESMTPSA id f3sm3263212lfp.0.2019.11.07.08.16.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Nov 2019 08:16:46 -0800 (PST) Date: Thu, 7 Nov 2019 17:16:44 +0100 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM Subject: Re: [GIT PULL] tee subsys fixes for v5.4 Message-ID: <20191107161644.GA8304@jax> References: <20191107121159.GA9301@jax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191107121159.GA9301@jax> 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 Hi, On Thu, Nov 07, 2019 at 01:11:59PM +0100, Jens Wiklander wrote: > 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. > > If you think it's too late for v5.4 please queue it for v5.5 instead. Please ignore this pull request. "tee: optee: Fix dynamic shm pool allocations" is not good without other patches, which are not included here. Sorry about the mess. Thanks, Jens > > 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 61435a63b15233428088ccb0ad34e19fc00416c9: > > tee: optee: fix device enumeration error handling (2019-11-07 12:07:44 +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/core.c | 20 ++++++++++++-------- > drivers/tee/optee/shm_pool.c | 12 +++++++++++- > 2 files changed, 23 insertions(+), 9 deletions(-)