From patchwork Mon Nov 9 08:08:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 11890589 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 0556414C0 for ; Mon, 9 Nov 2020 08:08:15 +0000 (UTC) Received: by mail.kernel.org (Postfix) id E9D6C20897; Mon, 9 Nov 2020 08:08:14 +0000 (UTC) Delivered-To: soc@kernel.org 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 469DF2084C for ; Mon, 9 Nov 2020 08:08:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LrjCD4vq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 469DF2084C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=jens.wiklander@linaro.org Received: by mail-lf1-f65.google.com with SMTP id b1so11109146lfp.11 for ; Mon, 09 Nov 2020 00:08:13 -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; bh=YPIO337ZqmTg7mGl8r87VRhd1YWWw1c5ZttCJTJ/hp4=; b=LrjCD4vqs7Sxqm4LFrF1+p7XmZeyTUv23gOTsx5IW+7jx9YCWXx7K2N+mIczDcUZcu nFW8idSrK+rQh7AidldUN/u9HP05YFDwYi8IEd+oz1SvKlePaWpfdjJNIJnxM7qdluZb 0LkwaCYyKD7N1fqkt0SF7WFI4C7Mhvl/wnaQRKwHjsIml2L9GSvweimMuytfRyIKO4ND +WUNf685Rp4l+35l2ApO2R8uPDJcWGEMkq+DaLifIEjanWq9uT6Qhk0ZmU0bNpenWpWj X05Bh0jli/xoP2oPwjraPKV20CpnNGwR96UcIRr1xeQ2VbuzX5URoMaNFCO13UbzpdSn O15w== 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; bh=YPIO337ZqmTg7mGl8r87VRhd1YWWw1c5ZttCJTJ/hp4=; b=U/FNlvP4HWaer8jcRHVFnhyrnvsptC3oCqgbemLg0xjNv1go5JSnV4gSkI4DCJCb3T OHWv/lnN8Q7xz35EpmYN9CWzNn13p66Sp+ffcXbmI7QiPa4v9jhKxdMYZs2n69KxXLZl 1ELw8xPPKjYeRmLFJGDKgd+ghn1OQzZCUutNX3ZmkkFSMy77KthaOv5UiRTEjaYc+jnk C19NR1AJ13K2mTlF/MPgtOjvrPuT/xJNxb8M+YAkIz6rrZC0cV/XBu5O0aWBORFhHP/W LLRkvyF1VNWquPi58xNWEemejT9KgLbiGWCUBCMCWSD1HguUFP613dTrTO91TdpqQluy eoDA== X-Gm-Message-State: AOAM5309k68G1h87foILq8Ka/EhRMajZ5/ckxGGzM0KQgAACpFCjTBPh a9vq7g71/h27sfHS8Cm3LaOcOw== X-Google-Smtp-Source: ABdhPJy7uTWVdp8lizHDfGVhQOGWlLkeWorzX2GI0IyF9rL0sSfiw2mMJJ3Kr9w+ml6DdZDawGHHZQ== X-Received: by 2002:ac2:4474:: with SMTP id y20mr5699257lfl.160.1604909292192; Mon, 09 Nov 2020 00:08:12 -0800 (PST) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id t138sm1351538lff.183.2020.11.09.00.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 00:08:11 -0800 (PST) Date: Mon, 9 Nov 2020 09:08:09 +0100 From: Jens Wiklander List-Id: To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , op-tee@lists.trustedfirmware.org, Rijo Thomas , Devaraj Rangasamy Subject: [GIT PULL] AMDTEE driver fixes for v5.10 Message-ID: <20201109080809.GA3862873@jade> MIME-Version: 1.0 Content-Disposition: inline Hello arm-soc maintainers, Please pull these AMDTEE driver fixes which are needed when opening multiple contexts or file descriptors. Note that this isn't a usual Arm driver update. This targets x86/AMD instead, but is still part of the TEE subsystem. Thanks, Jens The following changes since commit bbf5c979011a099af5dc76498918ed7df445635b: Linux 5.9 (2020-10-11 14:15:50 -0700) are available in the Git repository at: git://git.linaro.org:/people/jens.wiklander/linux-tee.git tags/amdtee-fixes-for-5.10 for you to fetch changes up to be353be27874f40837327d9a39e3ad2149ab66d3: tee: amdtee: synchronize access to shm list (2020-11-09 08:59:00 +0100) ---------------------------------------------------------------- AMD-TEE driver bug fixes AMD-TEE driver keeps track of shared memory buffers and their corresponding buffer id's in a global linked list. These buffers are used to share data between x86 and AMD Secure Processor. This pull request fixes issues related to maintaining mapped buffers in a shared linked list. ---------------------------------------------------------------- Rijo Thomas (2): tee: amdtee: fix memory leak due to reset of global shm list tee: amdtee: synchronize access to shm list drivers/tee/amdtee/amdtee_private.h | 8 ++++---- drivers/tee/amdtee/core.c | 26 +++++++++++++++++++------- 2 files changed, 23 insertions(+), 11 deletions(-)