From: Dmitry Safonov <dsafonov@virtuozzo.com>
To: <linux-kernel@vger.kernel.org>
Cc: <0x7f454c46@gmail.com>, Dmitry Safonov <dsafonov@virtuozzo.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
Andy Lutomirski <luto@kernel.org>, Borislav Petkov <bp@suse.de>,
<x86@kernel.org>
Subject: [PATCH 0/2] Fix compatible mmap() return pointer over 4Gb
Date: Wed, 11 Jan 2017 21:17:28 +0300 [thread overview]
Message-ID: <20170111181730.12458-1-dsafonov@virtuozzo.com> (raw)
A fix for bug in mmap() that I referenced in [1].
Also selftest for it.
I would like to mark the fix as for stable v4.9 kernel if it'll
be accepted, as I try to support compatible 32-bit C/R
after v4.9 and working compatible mmap() is really wanted there.
[1]: https://marc.info/?l=linux-kernel&m=148311451525315
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: x86@kernel.org
Dmitry Safonov (2):
x86/mm: don't mmap() over 4GB with compat syscall
selftests/x86: add test to check compat mmap() return addr
arch/x86/kernel/sys_x86_64.c | 37 ++++-
tools/testing/selftests/x86/Makefile | 2 +-
tools/testing/selftests/x86/test_compat_mmap.c | 200 +++++++++++++++++++++++++
3 files changed, 230 insertions(+), 9 deletions(-)
create mode 100644 tools/testing/selftests/x86/test_compat_mmap.c
--
2.11.0
next reply other threads:[~2017-01-11 18:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 18:17 Dmitry Safonov [this message]
2017-01-11 18:17 ` [PATCH 1/2] x86/mm: don't mmap() over 4GB with compat syscall Dmitry Safonov
2017-01-11 22:26 ` Andy Lutomirski
2017-01-12 9:46 ` Dmitry Safonov
2017-01-12 11:39 ` Dmitry Safonov
2017-01-12 14:11 ` Dmitry Safonov
2017-01-12 11:51 ` kbuild test robot
2017-01-11 18:17 ` [PATCH 2/2] selftests/x86: add test to check compat mmap() return addr Dmitry Safonov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170111181730.12458-1-dsafonov@virtuozzo.com \
--to=dsafonov@virtuozzo.com \
--cc=0x7f454c46@gmail.com \
--cc=bp@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome