On 5/12/25 13:05, Sasha Levin wrote:
[ Sasha's backport helper bot ]
Hi,
Hi Sasha,
This fix only applies to v6.5 or higher. I thought the Fixes: tag was enough to determine what branches to apply it to. Sorry about that if it is not the case.
The linux-6.6.y branch should have gotten my modified patch as described in the patch description.
The linux-6.12.y and linux-6.14.y branches should have gotten the original patch.
This patch should not be applied to anything before linux-6.6.y.
Sorry for any confusion.
Thanks, Tom
Summary of potential issues: ❌ Build failures detected ⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: da8bf5daa5e55a6af2b285ecda460d6454712ff4
Note: The patch differs from the upstream commit:
1: da8bf5daa5e55 ! 1: 9bdece442510c memblock: Accept allocated memory before use in memblock_double_array() @@ Commit message call must be adjusted to specify 'start + size' for 'end' when applying to kernels prior to v6.12. - Cc: stable@vger.kernel.org # see patch description, needs adjustments for <= 6.11 + Cc: stable@vger.kernel.org # see patch description, needs adjustments for <= 6.11 Fixes: dcdfdd40fa82 ("mm: Add support for unaccepted memory") Signed-off-by: Tom Lendacky thomas.lendacky@amd.com - Link: https://lore.kernel.org/r/da1ac73bf4ded761e21b4e4bb5178382a580cd73.174672505... - Signed-off-by: Mike Rapoport (Microsoft) rppt@kernel.org ## mm/memblock.c ## @@ mm/memblock.c: static int __init_memblock memblock_double_array(struct memblock_type *type,
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.14.y | Success | Success | | stable/linux-6.12.y | Success | Success | | stable/linux-6.6.y | Success | Success | | stable/linux-6.1.y | Success | Failed | | stable/linux-5.15.y | Success | Failed | | stable/linux-5.10.y | Success | Failed | | stable/linux-5.4.y | Success | Failed |
Build Errors: Build error for stable/linux-6.1.y: mm/memblock.c: In function 'memblock_double_array': mm/memblock.c:460:25: error: implicit declaration of function 'accept_memory'; did you mean 'add_memory'? [-Wimplicit-function-declaration] 460 | accept_memory(addr, new_alloc_size); | ^~~~~~~~~~~~~ | add_memory make[2]: *** [scripts/Makefile.build:250: mm/memblock.o] Error 1 make[2]: Target 'mm/' not remade because of errors. make[1]: *** [scripts/Makefile.build:503: mm] Error 2 make[1]: Target './' not remade because of errors. make: *** [Makefile:2013: .] Error 2 make: Target '__all' not remade because of errors.