lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230721152432.196382-3-deller@gmx.de>
Date:   Fri, 21 Jul 2023 17:24:32 +0200
From:   Helge Deller <deller@....de>
To:     linux-kernel@...r.kernel.org, io-uring@...r.kernel.org,
        Jens Axboe <axboe@...nel.dk>, linux-ia64@...r.kernel.org,
        Jiri Slaby <jirislaby@...nel.org>, linux-parisc@...r.kernel.org
Cc:     Helge Deller <deller@....de>,
        matoro <matoro_mailinglist_kernel@...oro.tk>,
        Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH 2/2] ia64: mmap: Consider pgoff when searching for free mapping

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.

Signed-off-by: Helge Deller <deller@....de>
Tested-by: matoro <matoro_mailinglist_kernel@...oro.tk>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-ia64@...r.kernel.org
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ