On Fri, Nov 21, 2025 at 04:39:26PM +0100, Pratyush Yadav wrote:
On Fri, Nov 21 2025, Thorsten Leemhuis wrote:
On 11/21/25 14:11, Greg Kroah-Hartman wrote:
6.17-stable review patch. If anyone has any objections, please let me know.
From: Pasha Tatashin pasha.tatashin@soleen.com
commit e38f65d317df1fd2dcafe614d9c537475ecf9992 upstream.
Patch series "KHO: kfence + KHO memory corruption fix", v3.
This series fixes a memory corruption bug in KHO that occurs when KFENCE is enabled.
I ran into a build problem that afaics is caused by this change:
""" In file included from ./arch/x86/include/asm/bug.h:103, from ./arch/x86/include/asm/alternative.h:9, from ./arch/x86/include/asm/barrier.h:5, from ./include/asm-generic/bitops/generic-non-atomic.h:7, from ./include/linux/bitops.h:28, from ./include/linux/bitmap.h:8, from ./include/linux/nodemask.h:91, from ./include/linux/numa.h:6, from ./include/linux/cma.h:7, from kernel/kexec_handover.c:12: kernel/kexec_handover.c: In function ‘kho_preserve_phys’: kernel/kexec_handover.c:732:41: error: ‘nr_pages’ undeclared (first use in this function); did you mean ‘dir_pages’? 732 | nr_pages << PAGE_SHIFT))) { | ^~~~~~~~
8375b76517cb5 ("kho: replace kho_preserve_phys() with kho_preserve_pages()") refactored this function to work on page granularity (nr_pages) instead of bytes (size). Since that commit wasn't backported, nr_pages does not exist.
Simple fix should be to replace "nr_pages << PAGE_SHIFT" with "size".
Great, can you provide a working version? I'll go drop this patch from the queue for now and push out a -rc2
thanks,
greg k-h