Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp202160pxj; Wed, 9 Jun 2021 21:19:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEsslS+nvVin6E4WJLgk5l6RQBQvN5Q6qmSGO2vngN+nQAl0nHZ72yUfkQHhRLILSDgkqf X-Received: by 2002:a17:906:4e06:: with SMTP id z6mr2776367eju.34.1623298786145; Wed, 09 Jun 2021 21:19:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623298786; cv=pass; d=google.com; s=arc-20160816; b=CG4Ha7LukIEb3Yi92X3ka13rSGnJBOdon60rqzuemYetnB2B+CK/jESRQdX87h27Cu zuqsdPd1yHHs+z0wsj0poNRmbyis+/ohGaIPAKQp4VaVX8pPCVkcBff5KRmmc9pxXIop uPVkPOJGlqRhbx3sAItqntG0Ukc8qMXrVJzLlFjs91lz2pSaKduyHPNdvlR4VQmYPd/a m096WRuCQTaHl8+ji9r2DYiAFfNHVdcT2PimJHXS3l5hfskQxc3HMjH4qVDskRhnxC6P m20GOEyxcQF7u2C70TVfF2Xnl1Q0zH8qZNv6qZc2lHna5ytrONkRCEbbYrvZ32/0LN3j tFfQ== 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=lN5UC54JsdjLxvzHndxBqpmY8Hp7cHJ1XGGKBkiJNA8=; b=fGjRXEfx88fP5U8wxl9MhwSElNBosS7KEfdErNk8ATiS27QE5FfJxNgGVk3gJD6bDf FeKCRNTOcLq3dr4NQRtIEzqcu6sxMZnZS+/WJ5aOM4hO3v0+FYEB7Z5hjP0yF1YHh7fL ShPisn/QjVUb+EFmNwTlswaE7AaSlV4HhRCo9TJU9oDelLFa91Y58HA2l5kghcpEBLki u7i/UczyuK/ZKC4Vbh1tVoT6MmCvrov7J0kQJRxncylnnMNMHCR4z0GxSUz+KALiw4Rw IvXL6RCJnpmuVDgE8cleRLODALIreSZy1133yq5kVv9+LPyVJceuD53sbLDgcTvj1EjA dXsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=HxPz96IE; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si1399438edo.215.2021.06.09.21.19.23; Wed, 09 Jun 2021 21:19:46 -0700 (PDT) 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=@Nvidia.com header.s=selector2 header.b=HxPz96IE; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbhFJETG (ORCPT + 99 others); Thu, 10 Jun 2021 00:19:06 -0400 Received: from mail-dm6nam12on2058.outbound.protection.outlook.com ([40.107.243.58]:60096 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229529AbhFJETF (ORCPT ); Thu, 10 Jun 2021 00:19:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SxPGoydV2wO3Fp6pG0JJVxoe7V+uuI73GYPQxMYabbKoCZSSLvT8xYGTbfpaa9iArUgeTmrlRC7w15KhhOrR6RS0PxsFKbmv6z5uhEVXqLwqziuB9iS4ZTlB2jXLNGM3WW57WtIQXoYztX7QuZMq6R+UP/0OghxawAm7D0fpvEymZT6WLJANCOPnvlmR5jwb5t64510nXSitQ3VoUFhidgTKYKJU5wh7cLBpo+L+Nuaku81+INe5ZYwKicUnj8b3w+eW37wrxVuo3AfVnjmti4N6QmwL8p+8fuTYvXd1bB+1wmws8emVTzTgASajWroQ/cOwycdcgdYyn02R37oNGg== 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=lN5UC54JsdjLxvzHndxBqpmY8Hp7cHJ1XGGKBkiJNA8=; b=nYkPtUbJ+tUMiswm/UiZ9g8trHthkM0ErWEWRFMAGruJ8C//hw69jOb+sZ7nZceWWAL+OIOf8Yz+dh52AZNDeciIdZIbvMj18K/Nu82QygG3Lujj/N+6KeGD2xODynFOBHjDH0SPG+OFhXz1jjR8ZWhIlqnQA7Ux2z75JmdH1l4grZpVbmTFofdlgyw1RONRmxJp4JZHazfzhI+AiJ0lWf/BmCdPF+mdXPWK30nE0PSXsxbS/CsdC0c6fcD9/6qU+TGDZDIHQf2tOwLOrNC5UW/UWzUK+wDKBvyfDBoVzxFUTPgzVLecjAyFlLZCs6kcttHrf5xjI+reoJfo6P4Yqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.32) smtp.rcpttodomain=lists.linux-foundation.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lN5UC54JsdjLxvzHndxBqpmY8Hp7cHJ1XGGKBkiJNA8=; b=HxPz96IEebpMHZew+GU2SWqFbFpaubbmUyShjT5a4cLYfUS+wi9tZ3Y/PxciHGUv+s3P7nntCfMc2gbXzyhIar/6TB9p6NsQqV2lhy3bP2lq9t2N2PlD2e4t2DYQt0odFIT/TsvPYmwyzaJ0C5g7LdQClh1OvMCKXEHu2jxhxxLgI3qDQ3NtHdWh7O2jdXb8QqeSv8cXtioE0w7HbYd9XKodRxg/ia/ekK+KnO+6kdWeyJyBU8c/EgECO92MZcgBRtkY8OXQYXaf4V53Srp01AKou2UhQZ1zzBtBi1b6k/AW2V9gS/ipD8o8PhHCIENRhvFdAdSsCKVKOtaiAgwVaQ== Received: from CO2PR04CA0006.namprd04.prod.outlook.com (2603:10b6:102:1::16) by MWHPR12MB1599.namprd12.prod.outlook.com (2603:10b6:301:10::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22; Thu, 10 Jun 2021 04:17:09 +0000 Received: from CO1NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:102:1:cafe::f8) by CO2PR04CA0006.outlook.office365.com (2603:10b6:102:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Thu, 10 Jun 2021 04:17:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.32) smtp.mailfrom=nvidia.com; lists.linux-foundation.org; dkim=none (message not signed) header.d=none;lists.linux-foundation.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.32 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.32; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.32) by CO1NAM11FT038.mail.protection.outlook.com (10.13.174.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Thu, 10 Jun 2021 04:17:08 +0000 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 9 Jun 2021 21:17:07 -0700 Received: from amhetre.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 9 Jun 2021 21:17:05 -0700 From: Ashish Mhetre To: , , , , CC: , , Subject: [PATCH 0/2] iommu/arm-smmu: Fix races in iommu domain/group creation Date: Thu, 10 Jun 2021 09:46:52 +0530 Message-ID: <1623298614-31755-1-git-send-email-amhetre@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 590325df-a188-4cc9-e067-08d92bc69cd8 X-MS-TrafficTypeDiagnostic: MWHPR12MB1599: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GEpngQe68KrYDQmkkRsLoyd1nDJJtEZ5Q9U6nKD+2UkBO7JUWT9Se4SqTP1JeExdOkH2T/xcfXcUVqbcgD8d3PyuIXTWFnFQBRtaUXXug+JRvZLOvxoUKwV5xVyag0a76sgk64tD80aiG1ixeRqHJhDud+H8LatPj6r9SdkQeXlmilQykSj4/ITkIAL40KjQwfdVBZwwHdfm07lVTpjaCjdKspeoboYl1IFv9IkFKTLsrfJpJp0bE6e52k8C37YwwfOhI8zlt4SxBmc7HFvqLqYui3A5l5+RBdvksZD5uRC74mbkFv5X05tRvn3eF0D8V/OsUNIcXIItROEdZ/9vptR6snYzfhpqEr6De1IIzz+CyvSziAFNVmANG6ckWStoZu5C0zPkBc2MSxbA829Aui4QnMon7bnx219N26sNWTkJ2O3q3jYHipLQMR+jVx6wS3ABG90B7B8JLAZHDmz6VLeSo835+vdkZOP3gJAqwBLyvjHp6vxaePT/MFVzcRmKrH9s3NL93chp+wtvTJfqoJA6/LInLuLVMomLVOuZa0bv152TpO8q65PwxpaI4nfqY5pfWFhvNkWACITU9bcLYtPck5Yn/BxL/unBwqRIXsEAVQ1Eo2/YBxzivwShOvRhQOHxQjIoOzu+9nbTdLRnwRFw5gzbrzTnL5AnYorpXjA= X-Forefront-Antispam-Report: CIP:216.228.112.32;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid01.nvidia.com;CAT:NONE;SFS:(4636009)(136003)(346002)(39860400002)(376002)(396003)(36840700001)(46966006)(356005)(5660300002)(8676002)(70206006)(6636002)(7636003)(70586007)(82740400003)(316002)(186003)(36756003)(478600001)(8936002)(54906003)(2616005)(26005)(82310400003)(7696005)(86362001)(83380400001)(36860700001)(4744005)(336012)(2906002)(47076005)(426003)(6666004)(4326008)(110136005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2021 04:17:08.2824 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 590325df-a188-4cc9-e067-08d92bc69cd8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.32];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1599 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix races during iommu group/domain creation for devices sharing same SID. Ashish Mhetre (1): iommu: Fix race condition during default domain allocation Krishna Reddy (1): iommu/arm-smmu: Fix race condition during iommu_group creation drivers/iommu/arm/arm-smmu/arm-smmu.c | 6 +++++- drivers/iommu/iommu.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) -- 2.7.4