This is a note to let you know that I've just added the patch titled ia64: mmap: Consider pgoff when searching for free mapping to the 6.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ia64-mmap-consider-pgoff-when-searching-for-free-mapping.patch and it can be found in the queue-6.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 07e981137f17e5275b6fa5fd0c28b0ddb4519702 Mon Sep 17 00:00:00 2001 From: Helge Deller <deller@xxxxxx> Date: Fri, 21 Jul 2023 17:24:32 +0200 Subject: ia64: mmap: Consider pgoff when searching for free mapping From: Helge Deller <deller@xxxxxx> commit 07e981137f17e5275b6fa5fd0c28b0ddb4519702 upstream. IA64 is the only architecture which does not consider the pgoff value when searching for a possible free memory region with vm_unmapped_area(). Adding this seems to have no negative side effect on IA64, so add it now to make IA64 consistent with all other architectures. Cc: stable@xxxxxxxxxxxxxxx # 6.4 Signed-off-by: Helge Deller <deller@xxxxxx> Tested-by: matoro <matoro_mailinglist_kernel@xxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: linux-ia64@xxxxxxxxxxxxxxx Link: https://lore.kernel.org/r/20230721152432.196382-3-deller@xxxxxx Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/ia64/kernel/sys_ia64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/kernel/sys_ia64.c b/arch/ia64/kernel/sys_ia64.c index 6e948d015332..eb561cc93632 100644 --- a/arch/ia64/kernel/sys_ia64.c +++ b/arch/ia64/kernel/sys_ia64.c @@ -63,7 +63,7 @@ arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len info.low_limit = addr; info.high_limit = TASK_SIZE; info.align_mask = align_mask; - info.align_offset = 0; + info.align_offset = pgoff << PAGE_SHIFT; return vm_unmapped_area(&info); } -- 2.41.0 Patches currently in stable-queue which might be from deller@xxxxxx are queue-6.4/of-preserve-of-display-device-name-for-compatibility.patch queue-6.4/io_uring-fix-io_uring-mmap-by-using-architecture-provided-get_unmapped_area.patch queue-6.4/ia64-mmap-consider-pgoff-when-searching-for-free-mapping.patch