From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no 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 A54FBC433DB for ; Fri, 12 Feb 2021 20:21:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 383A464DA8 for ; Fri, 12 Feb 2021 20:21:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 383A464DA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A3B4B8D0089; Fri, 12 Feb 2021 15:21:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9EB968D0060; Fri, 12 Feb 2021 15:21:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8B34B8D0089; Fri, 12 Feb 2021 15:21:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0102.hostedemail.com [216.40.44.102]) by kanga.kvack.org (Postfix) with ESMTP id 761E48D0060 for ; Fri, 12 Feb 2021 15:21:52 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 36C8A182329F9 for ; Fri, 12 Feb 2021 20:21:52 +0000 (UTC) X-FDA: 77810736864.15.year18_1d0428427624 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id 1279F18041629 for ; Fri, 12 Feb 2021 20:21:52 +0000 (UTC) X-HE-Tag: year18_1d0428427624 X-Filterd-Recvd-Size: 4983 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Fri, 12 Feb 2021 20:21:51 +0000 (UTC) Received: by mail-pj1-f54.google.com with SMTP id fa16so262105pjb.1 for ; Fri, 12 Feb 2021 12:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zqHGpHlEVtMfxaAYSRUeoJtPJMW39eSW7LQpfFCRpGU=; b=l95kKpXY/Ffe7uyRIJyZ57R505HOX3CkoEK3rvVY1WlysL8Q8zw+ZWWZoPwKdnUREA FAh9wVuYAuOP3/BnTUKom0DP83wHkGcOkqcqVV1ehLoHnvPgKFQLv05pd++AvOb22Y3/ pST169LY53VWEECPdVPfgaHYBEu6puzilFe8TzRNQ1zJ1LxIcoaiCfF42WCu3WWtn9f/ mbbRDnxmlGLJN58dIl0OhQkSEKxNSO9P4l6hXmjgzvobjFcuPPmkE/aJEkKwKdsrsc9b FwmxrXMJCUZxGpb4QNixgUieoVzw/WSO2KV76LGFPDMPtQb0WleT1wFkbnFfxR/bhfzS 65/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zqHGpHlEVtMfxaAYSRUeoJtPJMW39eSW7LQpfFCRpGU=; b=H0nOt0vm06V2QZSymiw/cWgTtt/M3scY/a2tYey4Ug/+3AbU98GDktEfbFHBHx2Es1 Jtr/kZ4mpRZuO7wsG13+4r1gTFa21SjZF6Wpdt6tGr/Pg8EHKbiEjSQIfKmPcsAb05FV a7LOaMGU/F6L8dc8hz9lbJJPrQCwwNm6EzfLAaF/VInhRkPJnS9MD8BUKKsiN3BWtMKh sYPE6jjpocy9QsenWECLRnaCJDkpSyB2U3wgzPAaZ4hdl1BYb8UVGuTiSZyX43JT4Qhc CDrnldLlJNGtO1mSGKX7ub5v7u9MpLkyFtGtDLu6yNmd07fC305hWazyA54FJcIiefUJ 18xA== X-Gm-Message-State: AOAM532pHdYaPgc+Ig6nlVE9JwZUyolKuR9CU10iHxbP+Ma80t3O7m/6 iE+FhNJfh1GuusLxJsYoVTRLtqnZz/qFnMb5B/VnrQ== X-Google-Smtp-Source: ABdhPJyBOo+RPuiHr7zk2m0j3+Grll3y+A/FkP89wfB3qaOEU+d4H8phHBAgRXJ/hz9jm1O2ASsrK5j5zv2u00V6aEk= X-Received: by 2002:a17:903:31d1:b029:de:8361:739b with SMTP id v17-20020a17090331d1b02900de8361739bmr4221474ple.85.1613161310340; Fri, 12 Feb 2021 12:21:50 -0800 (PST) MIME-Version: 1.0 References: <20210212121610.ff05a7bb37f97caef97dc924@linux-foundation.org> In-Reply-To: <20210212121610.ff05a7bb37f97caef97dc924@linux-foundation.org> From: Andrey Konovalov Date: Fri, 12 Feb 2021 21:21:39 +0100 Message-ID: Subject: Re: [PATCH mm] kasan: export HW_TAGS symbols for KUnit tests To: Andrew Morton Cc: Catalin Marinas , Vincenzo Frascino , Will Deacon , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Peter Collingbourne , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , Christoph Hellwig , kasan-dev , Linux ARM , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" 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: On Fri, Feb 12, 2021 at 9:16 PM Andrew Morton wrote: > > On Fri, 12 Feb 2021 21:08:52 +0100 Andrey Konovalov wrote: > > > Currently, building KASAN-KUnit tests as a module fails with: > > > > ERROR: modpost: "mte_enable_kernel" [lib/test_kasan.ko] undefined! > > ERROR: modpost: "mte_set_report_once" [lib/test_kasan.ko] undefined! > > > > This change adds KASAN wrappers for mte_enable_kernel() and > > mte_set_report_once() and only defines and exports them when KASAN-KUnit > > tests are enabled. > > > > The wrappers aren't defined when tests aren't enabled to avoid misuse. > > The mte_() functions aren't exported directly to avoid having low-level > > KASAN ifdefs in the arch code. > > > > Please confirm that this is applicable to current Linus mainline? It's not applicable. KUnit tests for HW_TAGS aren't supported there, the patches for that are in mm only. So no need to put it into 5.11. > Today is pretty much the last day for getting material into 5.11, and > this patch has been churning somewhat. > > So I think it would be better to merge this into 5.12-rc1, with a > cc:stable so it goes into 5.11.1. > > For which we'll need a Fixes:, please? > > -- > You received this message because you are subscribed to the Google Groups "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/20210212121610.ff05a7bb37f97caef97dc924%40linux-foundation.org.