From patchwork Fri Jun 4 19:40:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 12301129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,PDS_BAD_THREAD_QP_64,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7459C47082 for ; Sat, 5 Jun 2021 05:03:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 401A661422 for ; Sat, 5 Jun 2021 05:03:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 401A661422 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A67576B0036; Sat, 5 Jun 2021 01:03:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F0B46B006C; Sat, 5 Jun 2021 01:03:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7CDA96B006E; Sat, 5 Jun 2021 01:03:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0216.hostedemail.com [216.40.44.216]) by kanga.kvack.org (Postfix) with ESMTP id 461366B0036 for ; Sat, 5 Jun 2021 01:03:12 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id D83D9180ACF62 for ; Sat, 5 Jun 2021 05:03:11 +0000 (UTC) X-FDA: 78218476182.15.459DB20 Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) by imf01.hostedemail.com (Postfix) with ESMTP id 877C3500171E for ; Sat, 5 Jun 2021 05:03:10 +0000 (UTC) Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 154JeCRm116407; Fri, 4 Jun 2021 19:40:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=EikyZZFc7oVASGhZOIDYITWVlhHG6BoML2KIfhHugFs=; b=eAhVdmG03U8dovi+w3ZuTtFGWc1iQfYt34syAAnyRfYSwwCFchc2uc+cehpSwP68r2mY 7SSWHI0gNBr+LPyA4W3W7b7urklntBQovg9X+KpaAGFc5bW0hE5/1fofIMTWwl0iepSW OElnS4LB+izbvWOHxavbOAnEbLjU9XfLGFeaRgzUa8jjY2LEfNS22yK7ATcIrLnudsAG oXi+IurhrNUSvB73KFqcJs7DXk4p863ytUiyv8jRLCtuuKgK+CwltxkpZPhmwwmSG+bS eGL9eC2Fq8ZhAMY9Q2gkcI8dUz3AMobDSdrUZXT3/KDNvOtn7XHCU9jfQ1kka3GAW+wh 9Q== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 38ub4cxsrf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Jun 2021 19:40:20 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 154Je8XM075026; Fri, 4 Jun 2021 19:40:19 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2047.outbound.protection.outlook.com [104.47.73.47]) by userp3030.oracle.com with ESMTP id 38uar0gv88-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Jun 2021 19:40:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LuhP6yGckKH4m4iUhbz64Pnov24Hsp4jA3+d1Dw1S46lSt+Y2x9ZzaC6asiXLNhx9UMr2SNi8SX47/WioygTbUjIC3QIkp2pOdRbKdEQG9JDGkMqBOHPmixvVqU/6nnDvQfb5kVYX7Chepx/gWOvMpvjp7iTM/UGNElS1Faev94lejnepxyYCLqiyYokysx3+X0hmc2c/IpiT5Qc5XxEgYz0Mc/usGQ0tCfu5ox08IMMDzOEXV6sOOBaTbSMzhEypCMAANBMWrcWGA9SQ+6UvKr8h4c65SzdELzLh8N2zD9AqqaseaNAQUDhB5M3JCCHj0Xj2FN/o94avuHdUNiJ7w== 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=EikyZZFc7oVASGhZOIDYITWVlhHG6BoML2KIfhHugFs=; b=WYKViSkeyz/Zgl0QTBCWu2gCIHqXZfiHFSvcbuhRc3DiJs3+OS2KwgWhai9cCSVdcIUXAIWvOdbz5uUnC8a/V39t/dgQiOFMhowK+UrMTSiSpDNnAW79nAJDQXzGwjTRyvNupahevPJXKGaQ8Sr2DpMnIFX/PSDBNDg6vxstpNlwDZkCbRzgp4S+ce+Kx3Eq2BiZUQObFtc1D+nXx3RIW0APF6p4qnR0P2NgZpWbgQHeMBCbRBsTGC+/6XXR5LTTXGSlkZSBrZxc9BgtwNEBsYxAvDRfaw4CrytfR6hdxUXMWUk4DdzVWSEczR1Qyr0OfUs8h1ZaRz8bXD0+gA2Oqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; 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=EikyZZFc7oVASGhZOIDYITWVlhHG6BoML2KIfhHugFs=; b=vnLd7jDUapd0FVq1eMamjzU+/ZDx2yhSzXb7XPy0ArgeFgFtLwjrBLr5B4bgXW38Ia3l2ZJcRbo7sTcJdU0ooprvVdBAqjGx0UQD3QqXCkq1PvK5r0owogVhfLpSAXmxHqlbBJdX5wO3tioj5hK7Nb1i96kKdaiFjtiK5aR9JmI= Received: from DM6PR10MB4380.namprd10.prod.outlook.com (2603:10b6:5:223::19) by DM5PR10MB2009.namprd10.prod.outlook.com (2603:10b6:3:10f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22; Fri, 4 Jun 2021 19:40:17 +0000 Received: from DM6PR10MB4380.namprd10.prod.outlook.com ([fe80::b8b4:5900:668b:c9c2]) by DM6PR10MB4380.namprd10.prod.outlook.com ([fe80::b8b4:5900:668b:c9c2%5]) with mapi id 15.20.4195.025; Fri, 4 Jun 2021 19:40:16 +0000 From: Liam Howlett To: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton Subject: [PATCH] mm/nommu: unexport do_munmap() Thread-Topic: [PATCH] mm/nommu: unexport do_munmap() Thread-Index: AQHXWXlxNKpqM94mJkGUHZBaSOpXaw== Date: Fri, 4 Jun 2021 19:40:16 +0000 Message-ID: <20210604194002.648037-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.30.2 x-originating-ip: [23.233.25.87] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cf31199a-3e20-4f48-a555-08d927909416 x-ms-traffictypediagnostic: DM5PR10MB2009: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:935; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1qtZ/dDOcnjECZ3HxVKLkHIFFQof4TTpA6+TsotIQmm7dtVGcSQnU1LUViE9dM9e9ZjjJ16e/Ndd6oOqD9Ta7bd70dXrPUP/QO5OYK8tZnAtq3KEMGq7n/xsQsfV7BuQR1ahVmQ+8qd6KEPy9t+fzzw23VJbG8gSqSFCnKLBAMGEknMaJwuGO/VT6UbEL/x6w2c2ndGZ6K7UhH3KGB1d+SmzL9DIJ5kY3G166BDMj5yWoMyrBs520vSix3pIJZnYGHHHqh/t4Jqjuwb5e2rkepgHFX3xyQap4edhA3XKn3pvJQf9ZMyPz3m8YVn0qRZCiPUyPBU2PcaWGtTlMcHyhtA+SpB2GCFunY5Cum92ZCeabod/sQPN6Wg2lajYcJtgojT2ELnEx2JcBumQGWtDlypb97OGvrXH7W+WnDCkJi7OqERQnh2utszAcnyYp0AQ1mf/IWRwIY3OZoa7fYW/pxx9Ip6lf/JmRCNvHFWyhj47LTfSJDBPjBFBTILbMgHczKxYInmjKIAVjR4+H7U0nxTQvGi7sZV4gGqYD0X/HbCKSiWKJhQ0dn+AVBpNZk2hng6HkyHwXZCvlIafNBkFa1MquDusRXTpZSuwo3OwNWM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4380.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(39860400002)(346002)(136003)(376002)(396003)(66446008)(316002)(6506007)(66556008)(91956017)(64756008)(66946007)(66476007)(44832011)(2616005)(76116006)(26005)(186003)(5660300002)(4744005)(1076003)(478600001)(110136005)(8676002)(122000001)(2906002)(6486002)(8936002)(86362001)(38100700002)(71200400001)(6512007)(36756003)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?q?s/tz1iogt12KG90qFwm5r5pIu?= =?iso-8859-1?q?HgCxpv2P9T0XPwKmXSK/+3aeHqxkNqf0vl+k7nhHhNm5vxylXZDwckGo2veu?= =?iso-8859-1?q?YRbwNb+QIo6Zix8I9UW8iqdFiMxCYxQDWw/4TJrmBCwO0dwZglT+4Cd6Hveq?= =?iso-8859-1?q?bkhnNkklw0c4qWwcqxD5pEVN+1ISnhbqlfvpKLeST8NVYBAz3plCYoTB0TFh?= =?iso-8859-1?q?vQ1hZO3CzBwg9PSN97qsIoHudlpPOQiTAWXd1i5kW9H8gtIf30H6ApzVu9Yb?= =?iso-8859-1?q?v3/0+xK+vvD9/qZBEdmimfhK45TCkIYxRjAnCDjmkJVRv2bydkhfR2CMZk+I?= =?iso-8859-1?q?lMHlbZSkdzfG9frZm1HPiyI5987rJ5PMWx3Mz1IOu07/ywtwehnb1K3GJMR0?= =?iso-8859-1?q?zPz/sssZGEzqimEQqeeKk3+GKLLVWBHxihKowQYDkahuwL/OcJdXoxSsUYtd?= =?iso-8859-1?q?s9aGJH//jDQ6KZhYkCe0ZMOkEy5puKcRp9DGwRLhyc5cSkukQFJ3B0bqyAwZ?= =?iso-8859-1?q?NubfEEFn+f/k1sWNKtgr6GEWzLOskYFuFGpxTMIVT8i1XW+IsFoAXFBUvtDF?= =?iso-8859-1?q?LCGtLQNW8Q+5vSsBQfm4oKJB5BGXjXSuC7bBH4OrUuWOpo+7ftFbSU9TxELw?= =?iso-8859-1?q?CEzIA2GIWuI6qonI2wKkwK9VrZY8Vqn74Vh7sSEVmrlQujYlOBx20O9XV9AZ?= =?iso-8859-1?q?6p+OYq0nUtxKEWzRygHVjvsznfvEQLvIcYcSZViWUeQvt0DQ1dmS9Blse/XY?= =?iso-8859-1?q?b+wFELOVftNaEJhu4HPSgwQbJXbfhWmkWoEK3YiD9PR7NdnrPqr316OdzXn9?= =?iso-8859-1?q?is2/rGv71npTb4SfjJlPGNbw+mTHw2RuTxp7kyUNMhKuYbJS0qlH1vZMHEJB?= =?iso-8859-1?q?joZR6IbWTDVXwzYbIsvmP0GqPALB74Pp7KUF/tXa20QgpsozLfFXdFGs/0lL?= =?iso-8859-1?q?9zXTnBGaitM9LSAL3N0vAZQIprgqHTGdKNhPL5ijj422uAf1yIQ/a1LNHjRM?= =?iso-8859-1?q?xvEi1VTyJr/BxWbD22WovowA3WmO9k53HTn3QOyM3aoC5+oSuV5ATUO6GAhs?= =?iso-8859-1?q?r3abwcGbupGBPLAtOZ5FxNW3Z3qNe35VAnhPWclejdpPEJyaFyEnD3IU535p?= =?iso-8859-1?q?3pUjeavMh+H+CDmEaqARn3KHQJDCyqdLYgFP+qn0Rg11QZSC0ARgYvA+Z9co?= =?iso-8859-1?q?6IW0j6bjaNyUfZ5n1MPJG2FrUafebke/xFpxIhV4SNViL2MMJ4weif4T/llI?= =?iso-8859-1?q?Bwm7hNF8mscFZNBuA/J4ObDbWwc91VIgrtpxx4FxBP35gq21e9dM+Mn8D3M5?= =?iso-8859-1?q?J6QhK94WpPUKATO2Zp78+cH5Eeb2DITOKQpblm0HwYYQWImpTMGSDoSbIhX?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4380.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf31199a-3e20-4f48-a555-08d927909416 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2021 19:40:16.2578 (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: b8xW1PfkpkFlUmgLtLVM8xoXkmu0qqtgjm/s1PSjza7qZYhiNrVWK20iUSk17/R48DAHVDnuPP1UzHCkvQE1qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB2009 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10005 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106040138 X-Proofpoint-GUID: jCcvM22d7KX9004JgrOMu6r4QOAXddKT X-Proofpoint-ORIG-GUID: jCcvM22d7KX9004JgrOMu6r4QOAXddKT X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10005 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 adultscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106040138 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 877C3500171E X-Stat-Signature: jyziey5gaxy5xwsp1x3dyar3y6xspm64 Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2020-01-29 header.b=eAhVdmG0; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=vnLd7jDU; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf01.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 141.146.126.79) smtp.mailfrom=liam.howlett@oracle.com X-HE-Tag: 1622869390-510715 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: do_munmap() does not take the mmap_write_lock(). vm_munmap() should be used instead. Signed-off-by: Liam R. Howlett Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: David Hildenbrand --- mm/nommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/nommu.c b/mm/nommu.c index 0997ca38c2bd..3a93d4054810 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1501,7 +1501,6 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list delete_vma(mm, vma); return 0; } -EXPORT_SYMBOL(do_munmap); int vm_munmap(unsigned long addr, size_t len) {