Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1077256pxb; Tue, 3 Nov 2020 22:29:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOptXaW94A7He4JRPg9jE1h6ODbwSopR1iBoq9Buc6SNB5glMH211rQcW/bYHkUA8BK+r0 X-Received: by 2002:a17:906:70cf:: with SMTP id g15mr22958975ejk.323.1604471357102; Tue, 03 Nov 2020 22:29:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1604471357; cv=pass; d=google.com; s=arc-20160816; b=PtBbx99N1LhRrj3nPA3DsBEyLw8UkHYCy9Qbd+YDfXK95v8BMNMgZESG4Af/Pgj/ug xipzY5wBXCaUTkGNcTqFHsov2Vbyuhu7Xx0jkXPb8zxIvbHqP6+HKUnShBkDDtTLzpdU +zpwvtJBL+igSQMrCds8jzFA6uoJR81iu1OxQAXbOqsLBlw6QbRkgh1kEst6a7gIgYNB hIcVkDUdHRErSa1h+VjNw7I/IqTv+lK/7O3EWK0LjyTFpPNl4Z5rcGOcPTZownsvEyzH GTL8mA0rBAXPdFGkBAH56WvVr2kSwh/Uv7zasy4sB/x9P+CWLte94CkX9RunGmV2+V8S tNWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Rma2gbnYUrRpWx0orrrNCp3t/JOQPQ82mlk0oXuFbuE=; b=rQvprrNQ3GrqaN3OJ+EFddclKezQbo3urHaEJ+6npzQwRHKxbuL3Sq9SQkEqDpGLn3 4zqIKCHfta7H96qC9bdVbUKwLX0WOmdDR8b4dCCv3Xn1kKsybTLhXnbqxUEQd5xwinKF x8V364RAwqPo//IP5RJenbGIvn4nqxOBUHY0TjJ3t5eXI7BCi1HyAY007CyTGUnUa+V4 1WHwoPecYwpljJKiasvsSHl2WuC8WDRhxRhLhoCPR64P6efQrnrjsJguGSAOxsdZ9mLz 8ZBzSHcezGMFSXJgEq5IH8P6BmtbMGyDI4wra126Nu2VJAoXFPWYDVIJ0d3+biP8/+OK llqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=PaSwp9gj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si820021ejq.582.2020.11.03.22.28.40; Tue, 03 Nov 2020 22:29:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=PaSwp9gj; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728553AbgKDG0w (ORCPT + 99 others); Wed, 4 Nov 2020 01:26:52 -0500 Received: from mail-mw2nam10on2045.outbound.protection.outlook.com ([40.107.94.45]:59296 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727323AbgKDG0v (ORCPT ); Wed, 4 Nov 2020 01:26:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=efCTd/NOjw+urgrROLjIb6umn1Nn0ldrnMs2bUaIj26fw4Lxk8FSv+Af0GthUGWm/cyjV6kELVgrwGBCqWJM7LCMYpkobrFhXO+dBzC7OD+3Db+NpdUQfk7yjZo5aDmY7P1512F9/uIGTwxwojfk1YxM8JNuy/2eD5Pecaoh/O3598bXCNedJYXsWEIn06qYfXFu9XVXglVIHlUiZGiqyzvuZlP5S8T+RFOmnpDU3A66fNOQSg+9biFyMi76LSuQp7gUv3XfSLc+j3+tsg35tcTZzD9hl0eydGz/zVp+kjcmhkppWXdRIp6zSFptdixeCUnoUSzs5DG6qe8zmXcMag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rma2gbnYUrRpWx0orrrNCp3t/JOQPQ82mlk0oXuFbuE=; b=Ve40U4bovGysA7eQJdTKepzv9qEhzSsubwAhKTtaTt1RiBtaSg8KEUVj1IN5HOT0ULysGhuMmehBKkTff3xaOo6VMF2SJZWtad8BQKQaND2lSItYD2Z1srybarCryhyVYcc6yI8XUMLJVhqh9bBDbtRj0Ek9SAUrjnImY2H57r920/7LlLGproFXpzlm9qTexJCGa6OjrcwwCmaRihgnNK1OsHIt/z+9z0D36fho6MhqqHWUmjCo9HyzcWmYQ+119ZWcWx5eUMmhHX2ODE0NoNIQxPIxd/VOSzJi7piNAddjfooacn67RAVDgzckszTkP6YvotmLfi+K75YJoO7QiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Rma2gbnYUrRpWx0orrrNCp3t/JOQPQ82mlk0oXuFbuE=; b=PaSwp9gjP0VqA37QechZnycploZpNPFk8Oylwc/dPuKMKkpqB/JcPkbkm0+jAXju24dBaeUwKtwrUqPyTuV7oRs2D7kkkGtlWuFDPNL8GU36NGy2aGX6BEJnzmwdz8uPXOs4Lok5Q2onp19OkXpwgl6rtDGenM/ob0TqbvwB+cs= Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) by SN1PR12MB2398.namprd12.prod.outlook.com (2603:10b6:802:26::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.19; Wed, 4 Nov 2020 06:26:48 +0000 Received: from SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::7cc5:ed9c:dece:6d74]) by SN6PR12MB4719.namprd12.prod.outlook.com ([fe80::7cc5:ed9c:dece:6d74%7]) with mapi id 15.20.3499.030; Wed, 4 Nov 2020 06:26:48 +0000 From: Rijo Thomas To: Jens Wiklander Cc: Rijo Thomas , Devaraj Rangasamy , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] AMD-TEE driver bug fixes Date: Wed, 4 Nov 2020 11:56:08 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-Originating-IP: [165.204.156.251] X-ClientProxiedBy: MAXPR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:49::23) To SN6PR12MB4719.namprd12.prod.outlook.com (2603:10b6:805:e9::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from andbang6.amd.com (165.204.156.251) by MAXPR01CA0081.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:49::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Wed, 4 Nov 2020 06:26:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7b25d900-6b7b-445d-0642-08d8808a9bd0 X-MS-TrafficTypeDiagnostic: SN1PR12MB2398: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fUKa4xT6Ooean/6S5/jPobpKF0gatr5iXy0eOGP16KXsQ3yex4ghcKUMKyPfsrtBcJFbDBRl4QhQUdZWxdnfJUg/Wugr981MhQmtfz2k4lEjymhTqvEZ4/hXe1GZoyTKTFpzHcJuOGyrQ/uTFpiRmE4YDjR5X1p2OeEhLgewxt9igPesrQflIPz7Yc0p5X0ToiriGuIGcKnJtQWWtaHg3J/2WjqyY88+vqFOyZKe8F+WhjIewv3nMiI+GmmqiXebmZjtPaXBS7jN4kibdhJIb5FHxiv1hB79Y68y1Qrrq3kjZ0aZknpRNU6Sp4nOE9MjRwPAiP3XnHPzXdEUdWMYVg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB4719.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(136003)(346002)(376002)(39860400002)(6916009)(478600001)(4744005)(86362001)(52116002)(2906002)(7696005)(4326008)(5660300002)(316002)(54906003)(36756003)(186003)(6486002)(8936002)(66476007)(66946007)(66556008)(83380400001)(8676002)(2616005)(956004)(26005)(16526019)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 6rNfweQnK//0dCUuMF80usvC8DV5bXXjyF2eJcNKAQzSF67dshi468ZvItnejnacGltV3aGXTVQwdhV+fqAXzoIRCNDow5NXixZy3LEzYsWLb1oXnXP5XaBdSjkHepRpeBJX+lToA1Che8JtQHwtJ6DRx6HGDJjpVx5dxWaBCh3eYmD9GtNRhuBEf+vRXYuZX9JDfNQL2w7UsdIjrpshyxM+V349YFkOwPVb+lVuw49kqAhZpM9VGolznJ4zi3G+lg2gfS8BCL/3K+kBcunyQhB2awr0lsvCGSfu4NR2fHdPRlgkQaaCpiBik0rKz9270FuGEjNm15gyU6tKH4J84s3xO5mzJr8lijk+6KcPuWMYe8i6TCse7PO8wT9Ny9Hb7Bdw1dg6XmXLqersKIzvbFQ4kpTLhlzRZvNx9A2To8rZGgokWiYgCpSnlWZbEk3d6W3g84y232veBzAlTZDSz/FPga4EJw3CtJeitLvyKGLy9xhgQSGX6f+S46XORPP3bQNHMeEXswz0gOz/XyCQsb5pxq3k7gszXW1X7lXdTFKRai0J3RmcQksyLziC6gtHsJR9mE8IU/HIJ1ns8mw6i0DjmrgoeBn/Oj50HF8WHYXZL3RozWsZMjESOI4PJ9x+E2mS2CR2OD56iuH8XDMEKg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b25d900-6b7b-445d-0642-08d8808a9bd0 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4719.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2020 06:26:48.4876 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JloBPYVpHgeyQyiJkNfES/sFkG2ah5W/mhH6Xc0Ysn/oeIM6wVg+OqHZ6hbPvIyDrENOi+wzyAWmZtc5zAXTTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2398 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 patchset 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(-) -- 2.17.1