Message ID | 20221024212144.2852069-1-glider@google.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 245D7C67871 for <linux-mm@archiver.kernel.org>; Mon, 24 Oct 2022 21:21:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 90BC6940008; Mon, 24 Oct 2022 17:21:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8BB63940007; Mon, 24 Oct 2022 17:21:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7AA5D940008; Mon, 24 Oct 2022 17:21:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6FD7B940007 for <linux-mm@kvack.org>; Mon, 24 Oct 2022 17:21:51 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 47E58805D5 for <linux-mm@kvack.org>; Mon, 24 Oct 2022 21:21:51 +0000 (UTC) X-FDA: 80057115222.06.C533FD2 Received: from mail-lj1-f201.google.com (mail-lj1-f201.google.com [209.85.208.201]) by imf09.hostedemail.com (Postfix) with ESMTP id D31B514000E for <linux-mm@kvack.org>; Mon, 24 Oct 2022 21:21:50 +0000 (UTC) Received: by mail-lj1-f201.google.com with SMTP id bj23-20020a2eaa97000000b00276a677c474so3824034ljb.0 for <linux-mm@kvack.org>; Mon, 24 Oct 2022 14:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=G4yBv7Ojnp7UF/vJeQGCUBcD6F1oQa7UXx9ZrIQaMAU=; b=aSgkiacZ+5LH66/OSoz3MSDqz3zMIfvjCb/vyfftyLM0xQDT8v/cV4qgWN9uIWbM2D 5OZHLV9CdDaSYabYM5oDhFl/9ZFZxBB7UVaE+TCMSdHJ4OzpgUiYTbbaREJDJ5M7BdKw 7Yp611r8+sMWV+GwAvNDb5hW2BH9LuS76Frg8V4l+RxJ4pp10FD3oo1s5NeIbhGUhz0w 0i1mgmg0nYSCbbb5eW6qpKn9lWSlUKvjLWMU81zY+MVDWxf5KApWMkH3yS1m1A1Ci/5R 956P5mfY7HvBAFj+8gGanEIbLdPqM2iOq+oUYtxU3AimbVdcembaQ3RioMtPFtX9O6iC 4i9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G4yBv7Ojnp7UF/vJeQGCUBcD6F1oQa7UXx9ZrIQaMAU=; b=5PH+FCbzf9wgvEDjsJ4MFLvGJf2jwDaasoH420pXipQMgvtoPiVFV9GVJvevUdTe1F dOMwgdJV+SwQOvlki6suCJX+/5fnDYp3KPVhAGZMUBzufoxNgTCKt0vBfbxwixhhdy3M EofDJ7uBVxKV0o9r6INresamV7D4zM1WW84tEbXHMsrYMinGQvMRGelsC9yp5zs7abDV evuJFM3oYSy6K1xVR9QOPrgubd85Tq+Ua4YdsjEbBjpZ0e5tQ7i0/afnIRriGmF9SbCL /EGBwBtOA0ZZkU4vJdYuzGyc/f755ME5T2ZbQs0RJuWn9hH+60FjNftD3KHnahuJYhmo ALLg== X-Gm-Message-State: ACrzQf3LIgzzSwCAarNFntBM+I6DmA4/UIx6ns63+6nf4O8mz7vC5ILh o5uPnL631inTXgLQWxJRJ+nBnX/VrjM= X-Google-Smtp-Source: AMsMyM48tMgyNJTcQaeP49oPDEv9IHgkDLnPXKM/jKBNnXEO6qCwgCXK+Fopa0pPG4zOuEJQI1VErzmH0jI= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:8695:7c88:66ed:f9d1]) (user=glider job=sendgmr) by 2002:a05:6512:104c:b0:4a2:6b99:c8f3 with SMTP id c12-20020a056512104c00b004a26b99c8f3mr13590896lfb.519.1666646508884; Mon, 24 Oct 2022 14:21:48 -0700 (PDT) Date: Mon, 24 Oct 2022 23:21:40 +0200 Mime-Version: 1.0 X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Message-ID: <20221024212144.2852069-1-glider@google.com> Subject: [PATCH 1/5] mm: kmsan: export kmsan_copy_page_meta() From: Alexander Potapenko <glider@google.com> To: glider@google.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666646511; a=rsa-sha256; cv=none; b=vgWfqQvB12Wy36RQHbTUS7ooa0nVdoaLTpTqnBhNyYYJ3puJsvpL2cndouxyIg7BZKVBWs AKR5OFFYyjuPfY2Ve1zs/RNeKu6VZimS7vrx5clSaNG/ZZn8tRt8Bw6fZ54r4kjfGhekAV 1Dr+z6XgubW/JRJUt92fhptmaduemlA= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=aSgkiacZ; spf=pass (imf09.hostedemail.com: domain of 37AFXYwYKCG0RWTOPcRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--glider.bounces.google.com designates 209.85.208.201 as permitted sender) smtp.mailfrom=37AFXYwYKCG0RWTOPcRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--glider.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=1666646511; 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: references:dkim-signature; bh=G4yBv7Ojnp7UF/vJeQGCUBcD6F1oQa7UXx9ZrIQaMAU=; b=qYayku81FxHT0mB3XUKivCoh/oAUzrHTDv1JgxilDFfy+3KNF25GYGrsyLxENfVNqlo1q9 2HNdVdiayikTuGlFQfo8TfCN1kAPXuKJaqEse17HqoANCsAUx4dfRy2l7U6OYBKQw91PmR FeRRKsAcjUY+7fNIT8zg9KvZj6hceEo= X-Rspamd-Queue-Id: D31B514000E X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=aSgkiacZ; spf=pass (imf09.hostedemail.com: domain of 37AFXYwYKCG0RWTOPcRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--glider.bounces.google.com designates 209.85.208.201 as permitted sender) smtp.mailfrom=37AFXYwYKCG0RWTOPcRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspamd-Server: rspam04 X-Stat-Signature: rw3qtd6cnow7bz4gr5mzgj3nz7t7deiw X-HE-Tag: 1666646510-260885 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 | [1/5] mm: kmsan: export kmsan_copy_page_meta() | expand |
diff --git a/mm/kmsan/shadow.c b/mm/kmsan/shadow.c index 21e3e196ec3cf..a787c04e9583c 100644 --- a/mm/kmsan/shadow.c +++ b/mm/kmsan/shadow.c @@ -167,6 +167,7 @@ void kmsan_copy_page_meta(struct page *dst, struct page *src) __memcpy(origin_ptr_for(dst), origin_ptr_for(src), PAGE_SIZE); kmsan_leave_runtime(); } +EXPORT_SYMBOL(kmsan_copy_page_meta); void kmsan_alloc_page(struct page *page, unsigned int order, gfp_t flags) {
Certain modules call copy_user_highpage(), which calls kmsan_copy_page_meta() under KMSAN, so we need to export the latter. Cc: Andrew Morton <akpm@linux-foundation.org> Fixes: b073d7f8aee4 ("mm: kmsan: maintain KMSAN metadata for page operations") Link: https://github.com/google/kmsan/issues/89 Signed-off-by: Alexander Potapenko <glider@google.com> --- mm/kmsan/shadow.c | 1 + 1 file changed, 1 insertion(+)