[PATCH mm] kasan: export HW_TAGS symbols for KUnit tests
andreyknvl at google.com
Fri Feb 12 16:01:38 EST 2021
On Fri, Feb 12, 2021 at 9:54 PM Andrew Morton <akpm at linux-foundation.org> wrote:
> On Fri, 12 Feb 2021 21:21:39 +0100 Andrey Konovalov <andreyknvl at google.com> wrote:
> > > > 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.
> So... which -mm patch does this patch fix?
"kasan, arm64: allow using KUnit tests with HW_TAGS mode".
There will be some minor adjacent-line-changed conflicts if you decide
to squash it.
Alternatively, this can go as a separate patch after the tests series
(after "kasan: don't run tests when KASAN is not enabled").
More information about the linux-arm-kernel