The quilt patch titled Subject: mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix has been removed from the -mm tree. Its filename was mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix.patch This patch was dropped because it was folded into mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem.patch ------------------------------------------------------ From: Mike Rapoport <rppt@xxxxxxxxxx> Subject: mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix Date: Tue, 31 Jan 2023 20:41:49 +0200 The generic pfn_valid() does not take into account pfn_offset when it compares it with max_mapnr. Link: https://lkml.kernel.org/r/Y9lg7R1Yd931C+y5@xxxxxxxxxx Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxx> Reported-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> Tested-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/include/asm-generic/memory_model.h~mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem-fix +++ a/include/asm-generic/memory_model.h @@ -26,7 +26,7 @@ static inline int pfn_valid(unsigned lon extern unsigned long max_mapnr; unsigned long pfn_offset = ARCH_PFN_OFFSET; - return pfn >= pfn_offset && pfn < max_mapnr; + return pfn >= pfn_offset && (pfn - pfn_offset) < max_mapnr; } #define pfn_valid pfn_valid #endif _ Patches currently in -mm which might be from rppt@xxxxxxxxxx are arm-include-asm-generic-memory_modelh-from-pageh-rather-than-memoryh.patch m68k-use-asm-generic-memory_modelh-for-both-mmu-and-mmu.patch mips-drop-definition-of-pfn_valid-for-discontigmem.patch mm-arch-add-generic-implementation-of-pfn_valid-for-flatmem.patch