Skip to contentSkip to conversation

linux-next: build failure after merge of the mm-hotfixes tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Dec 7, 2025 – Dec 9, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the mm-hotfixes tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from arch/x86/include/asm/bug.h:193,

                 from include/linux/bug.h:5,
                 from include/linux/kasan.h:5,
                 from mm/kasan/common.c:14:
mm/kasan/common.c: In function '__kasan_unpoison_vmap_areas':
mm/kasan/common.c:594:34: error: 'KASAN_VMALLOC_KEEP_TAG' undeclared (first use in this function); did you mean 'KASAN_VMALLOC_PAGE_RANGE'?
  594 |         if (WARN_ON_ONCE(flags & KASAN_VMALLOC_KEEP_TAG))
      |                                  ^~~~~~~~~~~~~~~~~~~~~~

include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
120 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
mm/kasan/common.c:594:34: note: each undeclared identifier is reported only once for each function it appears in
594 | if (WARN_ON_ONCE(flags & KASAN_VMALLOC_KEEP_TAG))

      |                                  ^~~~~~~~~~~~~~~~~~~~~~

include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
120 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~

Caused by commit

6b83afdcfa93 ("kasan: unpoison vms[area] addresses with a common tag")

I have reverted that commit (and the following 2 fixes) for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi!

This flag, KASAN_VMALLOC_KEEP_TAG was defined in the first patch by Jiayuan in my three piece series [1]. I looked over git logs in mm-unstable and mm-hotfixes-unstable and I guess it wasn't pulled there but my two following patches were.

Could you pull the [1] missing patch Andrew? I think that should fix this issue. Thanks :)

[1] https://lore.kernel.org/all/247fd641cbf4a8e6c8135051772867f6bd2610ad.1764945396.git.m.wieczorretman@pm.me/

kind regards
Maciej Wieczór-Retman

Quoted 32 lines · Stephen Rothwell

Hi all,

After merging the mm-hotfixes tree, today's linux-next build (x86_64 allmodconfig) failed like this:

In file included from arch/x86/include/asm/bug.h:193,

                from include/linux/bug.h:5,
                from include/linux/kasan.h:5,
                from mm/kasan/common.c:14:
mm/kasan/common.c: In function '__kasan_unpoison_vmap_areas':
mm/kasan/common.c:594:34: error: 'KASAN_VMALLOC_KEEP_TAG' undeclared (first use in this function); did you mean 'KASAN_VMALLOC_PAGE_RANGE'?
 594 |         if (WARN_ON_ONCE(flags & KASAN_VMALLOC_KEEP_TAG))
     |                                  ^~~~~~~~~~~~~~~~~~~~~~

include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
120 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
mm/kasan/common.c:594:34: note: each undeclared identifier is reported only once for each function it appears in
594 | if (WARN_ON_ONCE(flags & KASAN_VMALLOC_KEEP_TAG))

     |                                  ^~~~~~~~~~~~~~~~~~~~~~

include/asm-generic/bug.h:120:32: note: in definition of macro 'WARN_ON_ONCE'
120 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~

Caused by commit

6b83afdcfa93 ("kasan: unpoison vms[area] addresses with a common tag")

I have reverted that commit (and the following 2 fixes) for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#2 lore raw
Quoted 9 lines · On Mon, 8 Dec 2025 11:30:16 +0100 Maciej Wieczor-Retman…

This flag, KASAN_VMALLOC_KEEP_TAG was defined in the first patch by Jiayuan in my three piece series [1]. I looked over git logs in mm-unstable and mm-hotfixes-unstable and I guess it wasn't pulled there but my two following patches were.

Could you pull the [1] missing patch Andrew? I think that should fix this issue. Thanks :)

[1] https://lore.kernel.org/all/247fd641cbf4a8e6c8135051772867f6bd2610ad.1764945396.git.m.wieczorretman@pm.me/

thanks, yup, restored.