This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [Question] New mmap64 syscall?
- From: Yury Norov <ynorov at caviumnetworks dot com>
- To: Pavel Machek <pavel at ucw dot cz>
- Cc: Yury Norov <ynorov at caviumnetworks dot com>, Arnd Bergmann <arnd at arndb dot de>, "Dr. Philipp Tomsich" <philipp dot tomsich at theobroma-systems dot com>, Catalin Marinas <catalin dot marinas at arm dot com>, <libc-alpha at sourceware dot org>, <linux-arch at vger dot kernel dot org>, LKML <linux-kernel at vger dot kernel dot org>, <szabolcs dot nagy at arm dot com>, <heiko dot carstens at de dot ibm dot com>, <cmetcalf at ezchip dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>, <zhouchengming1 at huawei dot com>, "Kapoor, Prasun" <Prasun dot Kapoor at caviumnetworks dot com>, Alexander Graf <agraf at suse dot de>, <geert at linux-m68k dot org>, <kilobyte at angband dot pl>, <manuel dot montezelo at gmail dot com>, Andrew Pinski <pinskia at gmail dot com>, <linyongting at huawei dot com>, Alexey Klimov <klimov dot linux at gmail dot com>, <broonie at kernel dot org>, "Zhangjian (Bamvor)" <bamvor dot zhangjian at huawei dot com>, linux-arm-kernel <linux-arm-kernel at lists dot infradead dot org>, Maxim Kuvyrkov <maxim dot kuvyrkov at linaro dot org>, Nathan Lynch <Nathan_Lynch at mentor dot com>, Martin Schwidefsky <schwidefsky at de dot ibm dot com>, <davem at davemloft dot net>, <christoph dot muellner at theobroma-systems dot com>
- Date: Sun, 11 Dec 2016 18:26:39 +0530
- Subject: Re: [Question] New mmap64 syscall?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Yuri dot Norov at caviumnetworks dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
This is the draft of sys_mmap64() support in the kernel. For 64-bit
kernels everything is simple. For 32-bit kernels we have a problem.
pgoff_t is declared as unsigned long, and should be turned to
unsigned long long. It affects the number of structures and interfaces.
Last patch does the change. It should be wide-tested on 32-bit kernels
whith I didn't do. Arm64 kernel is working with this patchset, and I don't
expect difficulties there.
Yury Norov (3):
mm: move argument checkers of mmap_pgoff() to separated routine
sys_mmap64()
mm: turn page offset types to 64-bit
fs/btrfs/extent_io.c | 2 +-
fs/ext2/dir.c | 4 +--
include/linux/mm.h | 9 +++---
include/linux/radix-tree.h | 8 ++---
include/linux/syscalls.h | 3 ++
include/linux/types.h | 2 +-
include/uapi/asm-generic/unistd.h | 4 ++-
lib/radix-tree.c | 8 ++---
mm/debug.c | 2 +-
mm/internal.h | 2 +-
mm/memory.c | 4 +--
mm/mmap.c | 66 ++++++++++++++++++++++++++++++++-------
mm/readahead.c | 4 +--
mm/util.c | 3 +-
14 files changed, 85 insertions(+), 36 deletions(-)
--
2.7.4