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=-5.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS 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 48594C433DB for ; Fri, 12 Feb 2021 20:17:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 197E264E8A for ; Fri, 12 Feb 2021 20:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbhBLURC (ORCPT ); Fri, 12 Feb 2021 15:17:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:51532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbhBLUQv (ORCPT ); Fri, 12 Feb 2021 15:16:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AFB1764E8A; Fri, 12 Feb 2021 20:16:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1613160971; bh=Z6BeODGzyRx31VY22FuktGBOIe3w+i59UrY0eDPk1GU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XZc0O/AHZdME36mBlSpuJdaTY86T1zGR/Y8O1geqGr3tJc8lInivmvBY/iG5gMK/1 NpxE17zhrMoPpLnCDQrfGi3aBw0mAUQxTyUBpmxB5OaQlm4tSPchaNe/Srul9UUh+4 lp+bEV3E7OyO9/FkAgl3yJXmPMw3I3BAfrWesAGk= Date: Fri, 12 Feb 2021 12:16:10 -0800 From: Andrew Morton To: Andrey Konovalov 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@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH mm] kasan: export HW_TAGS symbols for KUnit tests Message-Id: <20210212121610.ff05a7bb37f97caef97dc924@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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?