From: Vlastimil Babka <vbabka@suse.cz>
To: Davidlohr Bueso <dave@stgolabs.net>,
akpm@linux-foundation.org, aarcange@redhat.com
Cc: joe.lawrence@redhat.com, gareth.evans@contextis.co.uk,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
stable@kernel.org, ltp@lists.linux.it
Subject: Re: [PATCH -next 0/2] ipc/shm: shmat() fixes around nil-page
Date: Thu, 10 May 2018 20:17:55 +0200 [thread overview]
Message-ID: <8addf0c1-26cd-add9-fb9c-292cc3567014@suse.cz> (raw)
In-Reply-To: <20180503203243.15045-1-dave@stgolabs.net>
On 05/03/2018 10:32 PM, Davidlohr Bueso wrote:
> Hi,
>
> These patches fix two issues reported[1] a while back by Joe and Andrea
> around how shmat(2) behaves with nil-page.
>
> The first reverts a commit that it was incorrectly thought that mapping
> nil-page (address=0) was a no no with MAP_FIXED. This is not the case,
> with the exception of SHM_REMAP; which is address in the second patch.
Can you add appropriate Fixes: tags if possible? I guess patch 1 is
clear, dunno about patch 2...
> I chose two patches because it is easier to backport and it explicitly
> reverts bogus behaviour. Both patches ought to be in -stable and ltp
> testcases need updated (the added testcase around the cve can be modified
> to just test for SHM_RND|SHM_REMAP).
CC'd ltp so they know :)
Thanks,
Vlastimil
>
> [1] lkml.kernel.org/r/20180430172152.nfa564pvgpk3ut7p@linux-n805
>
> Thanks!
>
> Davidlohr Bueso (2):
> Revert "ipc/shm: Fix shmat mmap nil-page protection"
> ipc/shm: fix shmat() nil address after round-down when remapping
>
> ipc/shm.c | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)
>
next prev parent reply other threads:[~2018-05-10 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 20:32 Davidlohr Bueso
2018-05-03 20:32 ` [PATCH 1/2] Revert "ipc/shm: Fix shmat mmap nil-page protection" Davidlohr Bueso
2018-05-03 20:49 ` [PATCH 2/2] ipc/shm: fix shmat() nil address after round-down when remapping Davidlohr Bueso
2018-05-10 18:17 ` Vlastimil Babka [this message]
2018-05-14 16:19 ` [PATCH -next 0/2] ipc/shm: shmat() fixes around nil-page Davidlohr Bueso
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=8addf0c1-26cd-add9-fb9c-292cc3567014@suse.cz \
--to=vbabka@suse.cz \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dave@stgolabs.net \
--cc=gareth.evans@contextis.co.uk \
--cc=joe.lawrence@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ltp@lists.linux.it \
--cc=stable@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