From patchwork Wed Jan 25 23:35:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13116408 Return-Path: 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 528EBC54E94 for ; Wed, 25 Jan 2023 23:36:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1D9C6B0081; Wed, 25 Jan 2023 18:36:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DA5986B0082; Wed, 25 Jan 2023 18:36:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD0EC6B0083; Wed, 25 Jan 2023 18:36:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id A7E576B0081 for ; Wed, 25 Jan 2023 18:36:16 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 759B8C064B for ; Wed, 25 Jan 2023 23:36:16 +0000 (UTC) X-FDA: 80394932352.25.4619E1D Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf21.hostedemail.com (Postfix) with ESMTP id B6DA81C0002 for ; Wed, 25 Jan 2023 23:36:14 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="A/+QvJNX"; spf=pass (imf21.hostedemail.com: domain of 37bzRYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=37bzRYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674689774; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=r6gsGOWqmWqPTUheNVBr3Q9nvHWl0lLSYR4b+5IyM2U=; b=tb9wHcWn0IINtZmyrI6+cWVa14wyp69UUiA2JqzXh/Em59GPzxsgi5hBjswMzjWhWJp9J6 kir1Hyst1M1GyKzLioxkSyAmKloSkzl7IjfpKsSWCe1MP0psNZjOwC8ahy2t0DpborVmep kNFZqk/Kcj89PPoW8op0HtqpXxd1fOo= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="A/+QvJNX"; spf=pass (imf21.hostedemail.com: domain of 37bzRYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=37bzRYwYKCNIGIF2Bz4CC492.0CA96BIL-AA8Jy08.CF4@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674689774; a=rsa-sha256; cv=none; b=Css6i2NZTK5oKuqwYoD1YKV1mUNTNUO0DM9gxpTXopNkLBIiKRNzu1T9vtVKI6MUGexQB1 Jho2fEqTVx9TZXNyrpsi04Ne5NSvumGxaT2XbSh5pGQKkPSVc1DoA5l6n3XaRJWax1Hlr9 YxBHT6Gw2EphpXEV0AwodKIk0RyykkI= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-4597b0ff5e9so1472287b3.10 for ; Wed, 25 Jan 2023 15:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=r6gsGOWqmWqPTUheNVBr3Q9nvHWl0lLSYR4b+5IyM2U=; b=A/+QvJNXy/d2vUI7IPHDHgHrWDO5jed44nN4fWVgpwvqVaJ31sqqH7bmSeeRmlNRUe R8yZL4gzTLe9/1VGW0HvHObu5bU15WhlNXVFuvCtXS1G895lG29e5Fcqxn2GSCvSAWbL a8+HubzPqRrnoptHqtaiUWYzGkX+Bc9oxqltwaro1OAtno0UicpOEKYTqlPtF+8tMqyj yl/bjmJVeg0LR1s+57cLzBKsRlrrNOMebK53a2LFqIWNe7pEp/2Pdvl38JYqyOXxSvMk fAnMfk21t3L3pUqNrcRKGWlBkL42c9QvZGZGpHK8jyyUU6ou7Oa+/eZkY6FyQAx511UH LrZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r6gsGOWqmWqPTUheNVBr3Q9nvHWl0lLSYR4b+5IyM2U=; b=O5h9wKvoPfacpXt2Ft4AVD15iU2Kk9Clya3/a7UkIgp3tZyyCud6rZHH0BFgvvY47K k8bgvnym4bQi9oC4f81kQaO/auCWZ+tiKrpkj0xka+FUDDl03zaSHRE/+NrV12lbvcF8 ynkPhsFmEwZ21DEqeLJA9rnCfEGm2icm0mjrUIO36vN/4wBZyJcR13yZZN/n8Djk77rl HZkDrqPLAMkkI3JKM7Xu9C6ZYGFSeAs8jSkSmAt5l+oFbFkbOcEfzzHB1FyHIPAiwTRW d5F37wZ4uoQBnviug+ui7FTqMGOYxXnaly3rAooSlnzicI7Kb7QILJ/sznLUQ1ruMgpL dA0w== X-Gm-Message-State: AFqh2krZSx92UOz1wjzGerX8nBPcWTDxISLID2DhYFl5Rw9/kCFAFTh0 cWQGbaLrNwJa2IL7OgWbzs6NKawgQPo= X-Google-Smtp-Source: AMrXdXu2jHtIhTXjXhL9uqm1GdxSUteqsFjlccKLo1OvqKsStZdC9fM8D9TZdXuT4x0gDFJ1URuxrGbnlWU= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:200:f7b0:20e8:ce66:f98]) (user=surenb job=sendgmr) by 2002:a05:6902:1148:b0:803:6201:640a with SMTP id p8-20020a056902114800b008036201640amr1801877ybu.141.1674689773846; Wed, 25 Jan 2023 15:36:13 -0800 (PST) Date: Wed, 25 Jan 2023 15:35:54 -0800 In-Reply-To: <20230125233554.153109-1-surenb@google.com> Mime-Version: 1.0 References: <20230125233554.153109-1-surenb@google.com> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog Message-ID: <20230125233554.153109-8-surenb@google.com> Subject: [PATCH v3 7/7] mm: export dump_mm() From: Suren Baghdasaryan To: akpm@linux-foundation.org Cc: michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, paulmck@kernel.org, mingo@redhat.com, will@kernel.org, luto@kernel.org, songliubraving@fb.com, peterx@redhat.com, david@redhat.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, gurua@google.com, arjunroy@google.com, soheil@google.com, hughlynch@google.com, leewalsh@google.com, posk@google.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, surenb@google.com X-Rspamd-Queue-Id: B6DA81C0002 X-Stat-Signature: q41gkb4qixy53eatk1opsbmxa68g5y3f X-Rspam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tdGomCab9ekQNrmGnlSrjvDGj5UZN4H9Op2Puafr/U3LfaDqWQuoNLei2gd4wKyqNq5hJRa64zXyA53CH0yHGi1Qyk76DNvcMQ68BWjGPzgcl+KO5+XpQkc007BHI5WG9+jKD0BwiCACeEV8QuWjP7sPSWXPZkIPl+OjTb6yLqxk0qv8emdx9puUvm3W9f5kzFkl5pvO9NisAlKqXa+VgpE2GnWzZ2hovIYP1L4e0DiVUtNCoHxtWdQTzVIkGyHazY9U8m8CGb93a6HVpOU5aBpfvZY6jCreosaZ5vKeZUOJto7yUC1O8s1Z1ZgC5TrVcTjISBw5HRzLfOXtHphCyXhIJProPSoOideBFc+e1IE2JXCo+k4Q2kmaEzRwMS/A2caHzdMv8r2BMR4q/O25Bbrrwrl2hVK/YuTo3exWwQ4v89yyZHZEctkxJ6d789yODdc6sNkjLuqykN6kGW91P0YLOryuDBn4gO7P2sHr5bu8kjTurw7O5wbzLiQaAWVgPCRUobKllueOX8pPZKcFq+37heRvGZiQGD8j/PR3Xl5oJFvY56yVnNqAKQIz/7XLwM+y76o5UysirxDyd/0g3+88FBRG7PBmNXHLSqWMUrW/xQcXTd/50EWJGuia51GP58ga9dt6VyyIGIWs3dfAMB1SWdw934+fyu0iSai3Xq0qEfqutGURDIb7wykI 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: mmap_assert_write_locked() is used in vm_flags modifiers. Because mmap_assert_write_locked() uses dump_mm() and vm_flags are sometimes modified from inside a module, it's necessary to export dump_mm() function. Signed-off-by: Suren Baghdasaryan Acked-by: Michal Hocko --- mm/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/debug.c b/mm/debug.c index 9d3d893dc7f4..96d594e16292 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -215,6 +215,7 @@ void dump_mm(const struct mm_struct *mm) mm->def_flags, &mm->def_flags ); } +EXPORT_SYMBOL(dump_mm); static bool page_init_poisoning __read_mostly = true;