From patchwork Thu Jul 1 01:52:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12353247 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=-15.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,SPF_HELO_NONE,SPF_PASS,URIBL_RED autolearn=ham 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 CFFEEC11F68 for ; Thu, 1 Jul 2021 01:52:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A0F0E6146D for ; Thu, 1 Jul 2021 01:52:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0F0E6146D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2214B8D0234; Wed, 30 Jun 2021 21:52:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F7268D0202; Wed, 30 Jun 2021 21:52:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E6BC8D0234; Wed, 30 Jun 2021 21:52:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0240.hostedemail.com [216.40.44.240]) by kanga.kvack.org (Postfix) with ESMTP id DC87F8D0202 for ; Wed, 30 Jun 2021 21:52:18 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B124B82F4874 for ; Thu, 1 Jul 2021 01:52:18 +0000 (UTC) X-FDA: 78312343956.16.425DFE1 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf14.hostedemail.com (Postfix) with ESMTP id 59CB46001AA5 for ; Thu, 1 Jul 2021 01:52:18 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D49261241; Thu, 1 Jul 2021 01:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1625104337; bh=bIYmOeWvPd5sLcxcaDg8HxtQCgr2Nz9dnoQh5TQY8A4=; h=Date:From:To:Subject:In-Reply-To:From; b=NsO0qq7+uob/APMCgAknMeDeOyPOO/pO7GLWDB/Ku5qyXNGVAGFf5GhtkNt5aPLDe fjn+g4EHbc2xKyfsUA9ACPRkciYWDX0h7q3wtpFC/pJ6aqklzclwbKFMpEpZAqqZgm dsk3jWGbtBPFs+D5sqXw6ZzlEtrJjBo+KhcUUhRc= Date: Wed, 30 Jun 2021 18:52:17 -0700 From: Andrew Morton To: akpm@linux-foundation.org, david@redhat.com, Liam.Howlett@Oracle.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, willy@infradead.org Subject: [patch 096/192] mm/nommu: unexport do_munmap() Message-ID: <20210701015217.qU-VNmZsg%akpm@linux-foundation.org> In-Reply-To: <20210630184624.9ca1937310b0dd5ce66b30e7@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=NsO0qq7+; dmarc=none; spf=pass (imf14.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam02 X-Stat-Signature: tgc6gjgja64rh8rxj9ii4zprtyfr6798 X-Rspamd-Queue-Id: 59CB46001AA5 X-HE-Tag: 1625104338-942867 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: From: Liam Howlett Subject: mm/nommu: unexport do_munmap() do_munmap() does not take the mmap_write_lock(). vm_munmap() should be used instead. Link: https://lkml.kernel.org/r/20210604194002.648037-1-Liam.Howlett@Oracle.com Signed-off-by: Liam R. Howlett Reviewed-by: Andrew Morton Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton --- mm/nommu.c | 1 - 1 file changed, 1 deletion(-) --- a/mm/nommu.c~mm-nommu-unexport-do_munmap +++ a/mm/nommu.c @@ -1501,7 +1501,6 @@ erase_whole_vma: delete_vma(mm, vma); return 0; } -EXPORT_SYMBOL(do_munmap); int vm_munmap(unsigned long addr, size_t len) {