Message ID | 20221024212144.2852069-1-glider@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp696557wru; Mon, 24 Oct 2022 16:11:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vYV8jnHsmzGhdQDzLGk2loTJMUWTo0/4ZvbRqRGvJxd9QK3sit2x+dTZGqGRzZ+b/iRqb X-Received: by 2002:a17:907:7252:b0:791:9fd8:222e with SMTP id ds18-20020a170907725200b007919fd8222emr29405327ejc.729.1666653105506; Mon, 24 Oct 2022 16:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666653105; cv=none; d=google.com; s=arc-20160816; b=d3MBBKxXoGm/ZsfH9lHjYIfGk1aTMVlQd9utzTzIV0xoH4bhs/d4+PuQvZtndc/ZoR HuziK2ccdK8BKRwmOOVC5nki7tTFh1CQgcXoT0SoG87aUMg/Qw7xKJVLibJFefvyDl7N 8oLDvFfFbr3vz4l7Cpr0ofILCfSymb104XujxaOnWoeTGGFBtVCgxa5up/uYMwJQgyxk WvcNPFpAXbiNLsT0Spl8Kn/hCY4Wd/LRGXEcQAsmrLn5sfBfNTPe/TZAD4V1BVKumeM/ oXZa8CRho+ImbAvJVveLNzWBWxYMhjeTjXycaDynmujarlXEDDgAANDevHFxxwZFyIO+ zZ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=G4yBv7Ojnp7UF/vJeQGCUBcD6F1oQa7UXx9ZrIQaMAU=; b=qyaY4FRRVq9bUcnsiBBh987XsoKkqgayqb8wqLBLamsW9ug6Kz4nU+3ayGs/zE1Qm/ 1nw5ilcpESPdBsgt/pBWRQFq5hyxlWve6kTfFhLSvrFPibAUzGhM/DxiU9k1xIvicC01 MzCDw0dtcHduUzPsUbI6H8KD2ENzS3wIydt9Wn/d8/nuPJ9ot+y2FoaQc2gEhOHMM1f7 aNjrBpz9qf9Ij0nE+ZNfqFnSSNDK1wB+95QoHrjOoINsUiWpgsF9jEMOTiNDBeQXp1Ey yytZirdVJMQ2g5n84ZzqBU2UedpOrVC52r1R5liI1XIiTLyhy3hH18XIlJeN/BZMjuSY mukw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=aSgkiacZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a05640242d100b00461ed1fe6ffsi1490898edc.85.2022.10.24.16.11.19; Mon, 24 Oct 2022 16:11:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=aSgkiacZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbiJXXAz (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 19:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbiJXXAU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 19:00:20 -0400 Received: from mail-lj1-x249.google.com (mail-lj1-x249.google.com [IPv6:2a00:1450:4864:20::249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A9262D7814 for <linux-kernel@vger.kernel.org>; Mon, 24 Oct 2022 14:22:36 -0700 (PDT) Received: by mail-lj1-x249.google.com with SMTP id e9-20020a2ea549000000b0026fd9ba87acso4523196ljn.1 for <linux-kernel@vger.kernel.org>; Mon, 24 Oct 2022 14:22:35 -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=trZdlrhrSvzQHvlSJAcvPL8nIE708iKGjGX3qHy8aDxzTVrhD6mT59RDGOL7AGZge5 VBiU31z/YxZzLAm5o9qnqOmXxP6C2tZ617Kr3c7wbNNeozOxDtvVbtMP+S8EE7G9Uk8W BNBlgZ9MraU3fsIHOF441ObJTyJcECA1a1HGZtZG8z57PJaoTGZCcz/nZ70Ptadn9qHY UHJRBfF+urvV/bNfs0l1UOPNMoCNSwbUdsq1nxJx+swFBxYkb+HNbUFQzkfnK+AIrzZ/ HXLvzN9krxWnFjvED6b7gPfIu+f8eEGBAf+62C5FgJDG3Pfb2faBf3zixV+FrDBLcNCq rvlA== X-Gm-Message-State: ACrzQf3K8Ogkw0AH0zIbXCdFKNF7Ll7GOChrt5WeMd4z/1rBn9eu4C1O qXZK4I92pCitFN3j+vNZRojB/M5GCcc= 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" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747612446891174702?= X-GMAIL-MSGID: =?utf-8?q?1747612446891174702?= |
Series | [1/5] mm: kmsan: export kmsan_copy_page_meta() | |
Commit Message
Alexander Potapenko
Oct. 24, 2022, 9:21 p.m. UTC
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(+)
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) {