From: Jann Horn <jannh@google.com>
To: Linux-MM <linux-mm@kvack.org>,
"Liam R. Howlett" <Liam.Howlett@oracle.com>,
Andrew Morton <akpm@linux-foundation.org>
Cc: kernel list <linux-kernel@vger.kernel.org>,
Jason Donenfeld <Jason@zx2c4.com>, Yu Zhao <yuzhao@google.com>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
SeongJae Park <sj@kernel.org>, Vlastimil Babka <vbabka@suse.cz>
Subject: Re: brk() in v6.1-rc1 can expand file mappings, seemingly without taking file locks
Date: Fri, 2 Dec 2022 20:42:39 +0100 [thread overview]
Message-ID: <CAG48ez190wrwM57AiC6dsxtXYu84OcSgJOAc+q8a9H5pntoq7Q@mail.gmail.com> (raw)
In-Reply-To: <CAG48ez1tJZTOjS_FjRZhvtDA-STFmdw8PEizPDwMGFd_ui0Nrw@mail.gmail.com>
On Fri, Dec 2, 2022 at 7:53 PM Jann Horn <jannh@google.com> wrote:
> As of commit ca57f02295f, brk() can expand ordinary file mappings (but
Sorry, that was worded confusingly - I meant "ca57f02295f is the
commit from Linus' tree on top of which I was testing".
The broken code seems to have been introduced in
commit 2e7ce7d354f2 ("mm/mmap: change do_brk_flags() to expand
existing VMA and add do_brk_munmap()").
next prev parent reply other threads:[~2022-12-02 19:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 18:53 Jann Horn
2022-12-02 19:42 ` Jann Horn [this message]
2022-12-05 14:50 ` Liam Howlett
2022-12-05 14:53 ` Jann Horn
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=CAG48ez190wrwM57AiC6dsxtXYu84OcSgJOAc+q8a9H5pntoq7Q@mail.gmail.com \
--to=jannh@google.com \
--cc=Jason@zx2c4.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=sj@kernel.org \
--cc=vbabka@suse.cz \
--cc=willy@infradead.org \
--cc=yuzhao@google.com \
/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