mmu.c:undefined reference to `__check_safe_pte_update'
Subsystems (2)
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new head: b4fc90c82982d98959af08b4320420bcfc01303b commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update() config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> aarch64-linux-ld: Unexpected GOT/PLT entries detected! >> aarch64-linux-ld: Unexpected run-time procedure linkages detected! aarch64-linux-ld: arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47': >> mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update' aarch64-linux-ld: arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32': >> hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update' aarch64-linux-ld: kernel/bpf/arena.o: in function `apply_range_set_cb': >> arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update' aarch64-linux-ld: mm/gup.o: in function `follow_page_pte': >> gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update' aarch64-linux-ld: mm/memory.o: in function `__set_ptes.isra.207': >> memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Andrew Morton
maintainerQuoted 5 lines · On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <[email protected]> wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new head: b4fc90c82982d98959af08b4320420bcfc01303b commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update() config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0
Thanks. It works for me, but I'm using gcc-15.2.0.
Quoted 23 lines
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 2 lines
Quoted 2 lines
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!aarch64-linux-ld:
arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47':Quoted 1 line
Quoted 1 line
mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32':Quoted 1 line
Quoted 1 line
hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
kernel/bpf/arena.o: in function `apply_range_set_cb':Quoted 1 line
Quoted 1 line
arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
mm/gup.o: in function `follow_page_pte':Quoted 1 line
Quoted 1 line
gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
mm/memory.o: in function `__set_ptes.isra.207':Quoted 1 line
Quoted 1 line
memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow
Quoted 9 lines · Andrew Morton
Quoted 5 lines · On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <[email protected]> wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new head: b4fc90c82982d98959af08b4320420bcfc01303b commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update() config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0Thanks. It works for me, but I'm using gcc-15.2.0.
Tried building this series with a cross compiler (gcc 14.3.1) and a native compiler (15.2.0). The series builds successfully in both cases.
- Anshuman
Quoted 25 lines
Quoted 24 lines
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260927/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 2 lines
Quoted 2 lines
aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!aarch64-linux-ld:
arch/arm64/mm/mmu.o: in function `__set_ptes_anysz.isra.40.constprop.47':Quoted 1 line
Quoted 1 line
mmu.c:(.text+0x9a8): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
arch/arm64/mm/hugetlbpage.o: in function `__set_ptes_anysz.isra.32':Quoted 1 line
Quoted 1 line
hugetlbpage.c:(.text+0x1a8): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
kernel/bpf/arena.o: in function `apply_range_set_cb':Quoted 1 line
Quoted 1 line
arena.c:(.text+0x11fc): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
mm/gup.o: in function `follow_page_pte':Quoted 1 line
Quoted 1 line
gup.c:(.text+0x2b48): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld:
mm/memory.o: in function `__set_ptes.isra.207':Quoted 1 line
Quoted 1 line
memory.c:(.text+0x3418): undefined reference to `__check_safe_pte_update'
aarch64-linux-ld: mm/mprotect.o:mprotect.c:(.text+0x1080): more undefined references to `__check_safe_pte_update' follow
Quoted 9 lines · Anshuman Khandual
Quoted 8 lines · Andrew Morton
Quoted 5 lines · On Sun, 27 Sep 2026 00:32:54 +0800 kernel test robot <[email protected]> wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new head: b4fc90c82982d98959af08b4320420bcfc01303b commit: 2862bcaf1aca55e0b43a5692a4595281ab780f05 [661/679] arm64/mm: move __check_safe_pte_update() config: arm64-randconfig-1002-20260926 (https://download.01.org/0day-ci/archive/20260927/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0
Quoted 4 lines
Quoted 1 line
Thanks. It works for me, but I'm using gcc-15.2.0.
Tried building this series with a cross compiler (gcc 14.3.1) and a native compiler (15.2.0). The series builds successfully in both cases.
I'm getting the same problems building mm-next.
The following seems to fix it, which I will carry in for-next and for-test today.
From 448f146f16394713b28295236588ccab3a173827 Mon Sep 17 00:00:00 2001
From: "David Hildenbrand (Arm)" <[email protected]>
Date: Mon, 28 Sep 2026 09:42:06 +0200
Subject: [PATCH] fixup: arm64/mm: move __check_safe_pte_update()
--- arch/arm64/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/mm/mmu.c +1 -1
@@ -2392,6 +2392,7 @@ int arch_set_user_pkey_access(int pkey, unsigned long init_val) return 0; } +#endif /* * PTE bits configuration in the presence of hardware Dirty Bit Management
@@ -2440,4 +2441,3 @@ void __check_safe_pte_update(struct mm_struct *mm, pte_t *ptep, pte_t pte) __func__, pte_str_old, pte_str); }#endif /* CONFIG_DEBUG_VM */ -#endif
--
2.55.0
Signature · 3 lines
Cheers, David