* [regression 6.1.y] Backport of 353d7a84c214f18 ("powerpc/64s/radix/kfence: map __kfence_pool at page granularity") to stable versions 6.1 causes build failure
@ 2026-01-16 20:56 Salvatore Bonaccorso
2026-01-17 15:39 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Salvatore Bonaccorso @ 2026-01-16 20:56 UTC (permalink / raw)
To: stable
Cc: Arnd Bergmann, Greg Kroah-Hartman, Sasha Levin, Aboorva Devarajan,
ritesh.list, hbathini, mpe, regressions, benh
Hi,
In v6.1.160 353d7a84c214f18 ("powerpc/64s/radix/kfence: map
__kfence_pool at page granularity") was backported. But this now
causes a build failure:
make KERNELRELEASE=6.1.159+ ARCH=powerpc KBUILD_BUILD_VERSION=3 -f ./Makefile
CALL scripts/checksyscalls.sh
UPD init/utsversion-tmp.h
CC init/version.o
AR init/built-in.a
CC arch/powerpc/mm/book3s64/radix_pgtable.o
In file included from arch/powerpc/mm/book3s64/radix_pgtable.c:35:
./arch/powerpc/include/asm/kfence.h: In function 'kfence_protect_page':
./arch/powerpc/include/asm/kfence.h:37:9: error: implicit declaration of function '__kernel_map_pages'; did you mean 'hash__kernel_map_pages'? [-Werror=implicit-function-declaration]
37 | __kernel_map_pages(page, 1, !protect);
| ^~~~~~~~~~~~~~~~~~
| hash__kernel_map_pages
cc1: some warnings being treated as errors
make[7]: *** [scripts/Makefile.build:250: arch/powerpc/mm/book3s64/radix_pgtable.o] Error 1
make[6]: *** [scripts/Makefile.build:503: arch/powerpc/mm/book3s64] Error 2
This is because 8f14a96386b2 ("mm: page_poison: always declare
__kernel_map_pages() function") is missing from 6.1.y (it was only
included in 6.5-rc1).
Cherry-picking 8f14a96386b2 fixes the build failure on powerpc.
#regzbot introduced 36c1dc122eb3b917cd2c343029ff60a366a00539
Marking as regression for 36c1dc122eb3 ("powerpc/64s/radix/kfence: map
__kfence_pool at page granularity"), for the 6.1.y specific commit
causing the regression.
Regards,
Salvatore
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [regression 6.1.y] Backport of 353d7a84c214f18 ("powerpc/64s/radix/kfence: map __kfence_pool at page granularity") to stable versions 6.1 causes build failure
2026-01-16 20:56 [regression 6.1.y] Backport of 353d7a84c214f18 ("powerpc/64s/radix/kfence: map __kfence_pool at page granularity") to stable versions 6.1 causes build failure Salvatore Bonaccorso
@ 2026-01-17 15:39 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2026-01-17 15:39 UTC (permalink / raw)
To: Salvatore Bonaccorso
Cc: stable, Arnd Bergmann, Sasha Levin, Aboorva Devarajan,
ritesh.list, hbathini, mpe, regressions, benh
On Fri, Jan 16, 2026 at 09:56:44PM +0100, Salvatore Bonaccorso wrote:
> Hi,
>
> In v6.1.160 353d7a84c214f18 ("powerpc/64s/radix/kfence: map
> __kfence_pool at page granularity") was backported. But this now
> causes a build failure:
>
> make KERNELRELEASE=6.1.159+ ARCH=powerpc KBUILD_BUILD_VERSION=3 -f ./Makefile
> CALL scripts/checksyscalls.sh
> UPD init/utsversion-tmp.h
> CC init/version.o
> AR init/built-in.a
> CC arch/powerpc/mm/book3s64/radix_pgtable.o
> In file included from arch/powerpc/mm/book3s64/radix_pgtable.c:35:
> ./arch/powerpc/include/asm/kfence.h: In function 'kfence_protect_page':
> ./arch/powerpc/include/asm/kfence.h:37:9: error: implicit declaration of function '__kernel_map_pages'; did you mean 'hash__kernel_map_pages'? [-Werror=implicit-function-declaration]
> 37 | __kernel_map_pages(page, 1, !protect);
> | ^~~~~~~~~~~~~~~~~~
> | hash__kernel_map_pages
> cc1: some warnings being treated as errors
> make[7]: *** [scripts/Makefile.build:250: arch/powerpc/mm/book3s64/radix_pgtable.o] Error 1
> make[6]: *** [scripts/Makefile.build:503: arch/powerpc/mm/book3s64] Error 2
>
> This is because 8f14a96386b2 ("mm: page_poison: always declare
> __kernel_map_pages() function") is missing from 6.1.y (it was only
> included in 6.5-rc1).
>
> Cherry-picking 8f14a96386b2 fixes the build failure on powerpc.
>
> #regzbot introduced 36c1dc122eb3b917cd2c343029ff60a366a00539
>
> Marking as regression for 36c1dc122eb3 ("powerpc/64s/radix/kfence: map
> __kfence_pool at page granularity"), for the 6.1.y specific commit
> causing the regression.
Now queued up, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-17 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 20:56 [regression 6.1.y] Backport of 353d7a84c214f18 ("powerpc/64s/radix/kfence: map __kfence_pool at page granularity") to stable versions 6.1 causes build failure Salvatore Bonaccorso
2026-01-17 15:39 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox