Message ID | 20220202024137.2516438-21-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7A40C433F5 for <linux-mm@archiver.kernel.org>; Wed, 2 Feb 2022 02:59:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3FE248D00D2; Tue, 1 Feb 2022 21:59:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 387188D00C9; Tue, 1 Feb 2022 21:59:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 18BDD8D00D2; Tue, 1 Feb 2022 21:59:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0064.hostedemail.com [216.40.44.64]) by kanga.kvack.org (Postfix) with ESMTP id 01BDF8D00C9 for <linux-mm@kvack.org>; Tue, 1 Feb 2022 21:59:35 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9CA1D8245578 for <linux-mm@kvack.org>; Wed, 2 Feb 2022 02:59:35 +0000 (UTC) X-FDA: 79096334310.17.770CE88 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf09.hostedemail.com (Postfix) with ESMTP id D524C140008 for <linux-mm@kvack.org>; Wed, 2 Feb 2022 02:59:34 +0000 (UTC) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 2120687v022144; Wed, 2 Feb 2022 02:42:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=HqEzxfb7vYcsBLxA1MHbi67kU0vkdosDz4gDWGEYaOQ=; b=j/KoMtGIowmHywbnPwFNlUBq2hJqRvwcnDia3SgqbELUsARjYF2Mzkqc5VEAvpDp59ix L6C79cHkza3FVYynNXLkeCEEYAc9pe6VlywE5u/2f3zr3dIzHy84Pvxn7t8tPzkDdtwQ 8gFwVp6D52SxVVc2gPtJEQN6k3fhkFLVtpjm+tzwWoC4d756Nxj9UXc3qQad4nO7RNz8 N8kUdsmP6/wqx5oneLJH2tGfHxaVis5m00/UuSDkeqHgBY07Zpxh2uXyEbNREoYriO5Z /lYNYbo/OFfLVzYAKH6UD1rvWjwryziihz6sfb5WVnB7BujrkWWRVXqwm5HSbrkjjRbX AQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3dxnk2m7pw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 02 Feb 2022 02:42:12 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 2122ZvkT015152; Wed, 2 Feb 2022 02:42:11 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam08lp2047.outbound.protection.outlook.com [104.47.74.47]) by aserp3030.oracle.com with ESMTP id 3dvumggtjf-12 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 02 Feb 2022 02:42:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h/6uQPw3Djzw44JYX6ayDby1piOSvsCgXiuXPo1vvE8Hr9PXJmIFJmMzccSGzxQycHjg1bfnd4bRKGt2BHWX7Tk2k3c5kb1y1hANgt9uLEK4aWy0ifvjomd3O2Kqh8LSrMSY3TC4gfkiMHpeiBdgqZEMTZqwIWYmG7Lon3n6gyRtlrgq46kSC1mn77yMZhdXkuQyJPjQwPm3lajDFOD+Fj5FOTmWnKLEkMDx1MIU74Re0pQy12mFtHdgqOQ1ptsw4GVFrkInvsqcQIqheNpNbvlAN3+jWTdFD1bznlF4bcT/BaijiVRYd1PbCgeFTjYdPtuMRFiBl6aAJNl/bjlz8w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HqEzxfb7vYcsBLxA1MHbi67kU0vkdosDz4gDWGEYaOQ=; b=QQzKdwl6LJ1Lhbnklwgu8QfdV0HK6bKKCzOxGX1IM5k/xoQd7NiAo3w/cJTczJKZPo1y5TyLKwl7tsyoSyNKZTscjiJMS4hveupqH3nBQN5igfhFimWJSaeIkCjNqQRbh1bbX8mhtENbKI/dptt2bis1aCO4NPpCO7jmwIpSJoC6RNklxtV3pbcSiCGEqj+RZgeXshfm/fhHTJxzcLFWpjmI0oWUuFab16Ha/0B+SNPEVQLE7ouS3TONuOj5H5lUPtvcgnIvj+UbRqyWKf1ili79tzbE5gPNU9w9hlTIRtrut2KqNzPP1vQyQvtfbDaBbLIgFnOiLRNxZ2UVqLgC5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HqEzxfb7vYcsBLxA1MHbi67kU0vkdosDz4gDWGEYaOQ=; b=uYwFyzuOiag1BhjSRsbpEBx2gA93fdgvICh0Yi9gVPhlY67Zr25MjkAb0no0iks3uL488gSCMTar2/jl7eYW1Xrvqm6j6+dLHglqwdgn9wVMnoxufsNISraF9UceD4Tgy51UgZIyfOiR/OLZUMbk92YxxVXpPjvuERbwXNLSOPs= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by BY5PR10MB3970.namprd10.prod.outlook.com (2603:10b6:a03:1ff::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 2 Feb 2022 02:42:09 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::3857:3a25:3444:fdd3]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::3857:3a25:3444:fdd3%5]) with mapi id 15.20.4930.022; Wed, 2 Feb 2022 02:42:09 +0000 From: Liam Howlett <liam.howlett@oracle.com> To: "maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH v5 20/70] xen: Use vma_lookup() in privcmd_ioctl_mmap() Thread-Topic: [PATCH v5 20/70] xen: Use vma_lookup() in privcmd_ioctl_mmap() Thread-Index: AQHYF953TGHnARpCZEWCZevncfPd2Q== Date: Wed, 2 Feb 2022 02:42:06 +0000 Message-ID: <20220202024137.2516438-21-Liam.Howlett@oracle.com> References: <20220202024137.2516438-1-Liam.Howlett@oracle.com> In-Reply-To: <20220202024137.2516438-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 38db7e23-1863-43cb-db76-08d9e5f59b9f x-ms-traffictypediagnostic: BY5PR10MB3970:EE_ x-microsoft-antispam-prvs: <BY5PR10MB3970082FD136DF9A1C8F2593FD279@BY5PR10MB3970.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9g+6NYK46oXBuXXvSDujDmKrxd40ZIc/XyZX5fW9yYxaqo03izfVapMZZAyYL08TLxNlOmsx9+NtYkgDh3tnS6asds/J2YkInFPnJ8yQ6QOnMPgHsU2MUhq60mf37c/yLaZayLjCy5ioh8ADRYrUsnvr9DWbWhYT+NwpYx2G7TOcQNIX/vWxGcWWX1/sePvfuKpnDtoG5zIuYcf7W8pLfsilejUK8Wbk19ip6KwzHD80ri4QenyGlTonABp24rHvniCOoW6Iyjr8uQf9Ld9tTq43NWpKfrUXDTGcE/AB+AmwBfuX2/LeoHpjvLfH0+hy/U4kQXVYbuXW+AAg++snu8NgkKv8Z+MKJKxlvNTOJ5URDkSgPxwgVwBl11yaKRTcy5+ET0Ox/EsDrn2lapWlatzC02JwOOZ5ItyiERdrdT7FlGBMdrXkQim8HS2+bDkA6wcFJCRuRzaSe5o8/l2A7BY5Dk8i28nMQ/Y4qF3tzkXTYqo3Yu4/sRCy4TYGPTi8EYBf7faQNyA3tt+FW9wXgXcnDCbCkTCwEsvcAjSzVSlG7rYyS0mkCujsl5g5JYZArHjYOWlIum/8Mf8ar7S/5ipq3N0KBazXyadLaEiBq0jOKNSPiSHAySAY2t5JOWNm0nsCuhmfKfMxS5oFa7kKuhi14S3O0PciLd5mEy6JAbqL9NiBgpf4czRBZ02xZJgQLitmwd/0RNI6IqTGYUzO8w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(8936002)(316002)(110136005)(44832011)(2906002)(186003)(66446008)(8676002)(91956017)(66476007)(71200400001)(508600001)(76116006)(6486002)(26005)(66946007)(4744005)(66556008)(6512007)(5660300002)(6666004)(6506007)(64756008)(83380400001)(86362001)(1076003)(38070700005)(2616005)(38100700002)(122000001)(36756003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?WUBugTTG85FOYcC5eLJfNt0?= =?iso-8859-1?q?XGcOapNZvNrukra8RH7JX6FVH52MMkN86sikWVocUODtqzzyDpXyFcCLpCx5?= =?iso-8859-1?q?1HNZaSQ0EJRqVElboi6AiFqo1Hk1zfcs6SUrkyypFVFWg7UNNAuHF5lVa6ya?= =?iso-8859-1?q?zj0CRAmogcJzZWrLIZx0NBVcmUE/ls2WN7RNzgFT3hi2S83BejTkevMACmLt?= =?iso-8859-1?q?SauCKjJZb1s5HHX3NPP0/+atKoFrpNy17TxXjoHe9cp2MnAhIpoTULJ5meO1?= =?iso-8859-1?q?D6UhLS8NjM5PatvUXgXJq9wFMi2yZYij4Yp9M/E1A/xvPfbuDmQ9RS1BMRAD?= =?iso-8859-1?q?kKoQVwSwYdGNt3ZwPMC7SxmMjV9t2C+CFT2UzLqUiSsazU3CzXZ56p9eZJJi?= =?iso-8859-1?q?bKyNpK4hG09k7EItSbp2+JQwx6PNclx8eCB98hXpytf/Qwno3/LLqcDKNn1s?= =?iso-8859-1?q?CWYwIRf2bWApY/KCY4xOB91Opfv4l4uNbaiSLdZd/++IZUeqtIavlRjLYRqG?= =?iso-8859-1?q?CvJmmwR8CPpW5NUalSx3V+5pCm/N2e+8MvaR2yx31BM6t3BCrz1m7foNc9dZ?= =?iso-8859-1?q?OJWWvg0J2QfSH0MKOgaOVqHDVKiDQt7bx+m7NNXV540uC7EuwjHpazuHkdXT?= =?iso-8859-1?q?Y9B7Bn2AgB7UZCRwAHEuTzh0Jy+qWLVphgDhi5Wzzrz3mYX81EKho9qpxBTy?= =?iso-8859-1?q?f7rsGqYK9WiuImclz7IKjgE7xzbTRdYgMly3gF2OQVJGhVFDdLXNnD+2n4oJ?= =?iso-8859-1?q?3lGb7JXAleVK3GV73P6daNHbPjOS4s6L69FwP0aHw2zzN9LJ9p7ZS43jewhe?= =?iso-8859-1?q?FITkIPD5wTx6rOWwMwTJfOmc1oMG70BQg+gUVz5jFBH2ssSRqZRhN+pVPlYW?= =?iso-8859-1?q?VflLVNNGtTJv1q6XwCrFfQNUMwb9swOgjqQpeRb541oRaUoO64yYNP0f2J5+?= =?iso-8859-1?q?6aR80EZDV2htR8ZhzZt9SZd8DHuejBR3lYdgVRsqDaKXEcSZXwpHUYDlwtbT?= =?iso-8859-1?q?nBuUZevbOBAH3qxGs9Ml/nIjr4/96bO3egpAXzShz2JRhYYmoo9wRIJtR0m7?= =?iso-8859-1?q?UI0j5tUXr3kySanbNHS/eWczxh/0e11JuheV4hpsUsJAE82y2gBK8xmZcEL3?= =?iso-8859-1?q?ns3zSmitXcxSsmvNJA3TBLFik9zP165+ln8oTCJRhTanBx142xYZ+Jgnl9Eq?= =?iso-8859-1?q?/WmDao9dYUmPwK9fBpNOwB/JkJEoHtTKC7Ymm2//K7BvO2Jy0YYe0cGnXWja?= =?iso-8859-1?q?sXQE3jMo6grgI85t87Z1kfjDCYIV3KGWgoFIecI3YVS2/De63oHvrm1uBsIC?= =?iso-8859-1?q?OkHCUOVeVOm+7DQBme3KfcN58oxHL7Vljo+9ExWKyxpGJ62Lf1LJdNiLN3DD?= =?iso-8859-1?q?mpZBwjkhT7L/g7mtp25pGjHJwxXY96VwZC3r6EzuQaamxAWaF7DzifugsfFt?= =?iso-8859-1?q?wv14eS+1W5ny/fhLyi4T711xcDdDKh+ZcYPFxZNJJ8vc0dMnyxREZMvvOV0R?= =?iso-8859-1?q?s5NVufCj4InCz5VPvlKt7fkxq2ornPi2eZDrMhwuYB4Dd9DZXQJJghbrmkH7?= =?iso-8859-1?q?82SnbymlnNHzpfAhIlAjft/Hi8vx7+v2yXwtlys4WU15DkWNcRS1C0fUKoYp?= =?iso-8859-1?q?bMBoO2ToYhqujTAOBorl2/AmX46reNVHbEzcniklrRZ9OQ68dL1qZYhZhOrw?= =?iso-8859-1?q?=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38db7e23-1863-43cb-db76-08d9e5f59b9f X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2022 02:42:06.1580 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LJR/OcfgR95aX5FDBzyeMGWwrkR9ikcIsjX26PQnmC8LlR74iEemIE4+ShGj60deCSUBpaz3sXClUwAPf5SoRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB3970 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10245 signatures=673430 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 phishscore=0 mlxscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202020010 X-Proofpoint-GUID: zm1M0GhgHccbhivmRufj3AatW9Vs9EWG X-Proofpoint-ORIG-GUID: zm1M0GhgHccbhivmRufj3AatW9Vs9EWG X-Stat-Signature: b3tttd7sapfn68wnghffwad7n5gf1m4r X-Rspam-User: nil Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b="j/KoMtGI"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uYwFyzuO; spf=none (imf09.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.165.32) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: D524C140008 X-HE-Tag: 1643770774-302837 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Introducing the Maple Tree
|
expand
|
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 3369734108af..ad17166b0ef6 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -282,7 +282,7 @@ static long privcmd_ioctl_mmap(struct file *file, void __user *udata) struct page, lru); struct privcmd_mmap_entry *msg = page_address(page); - vma = find_vma(mm, msg->va); + vma = vma_lookup(mm, msg->va); rc = -EINVAL; if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data)