From: FUJITA Tomonori <tomo@flapping.org>
To: aliceryhl@google.com
Cc: gregkh@linuxfoundation.org, cmllamas@google.com,
tomo@flapping.org, mbkchelofficialdev@gmail.com,
ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net,
bjorn3_gh@protonmail.com, lossin@kernel.org,
a.hindborg@kernel.org, tmgross@umich.edu, dakr@kernel.org,
daniel.almeida@collabora.com, tamird@kernel.org,
acourbot@nvidia.com, work@onurozkan.dev,
rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] rust_binder: check VMA bounds before calling zap_vma_range()
Date: Tue, 01 Dec 2026 19:46:46 +0900 (JST) [thread overview]
Message-ID: <20261201.194646.521995843631900028.tomo@flapping.org> (raw)
In-Reply-To: <20261201-binder-vma-lookup-v1-1-5e8b1150975b@google.com>
On Tue, 01 Dec 2026 10:19:27 +0000
Alice Ryhl <aliceryhl@google.com> wrote:
> If userspace partially unmaps the tail of a binder VMA, the shrinker
> still finds the shortened VMA at `vma_addr` and passes an out-of-bounds
> `user_page_addr` to zap_vma_range().
>
> Currently this out-of-bounds operation leads to zap_vma_range() printing
> a warning and doing nothing. However, this warning has a TODO to replace
zap_vma_range() doesn't print anything currently. It just returns.
I tested this with my reproducer, after changing the TODO in
zap_vma_range() to warn_on!(true). Without this patch, the warning is
triggered. With this patch, it is not.
Tested-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
prev parent reply other threads:[~2026-12-01 10:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:19 Alice Ryhl
2026-12-01 10:35 ` Ivan Tverdokhleb
2026-12-01 10:46 ` FUJITA Tomonori [this message]
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=20261201.194646.521995843631900028.tomo@flapping.org \
--to=tomo@flapping.org \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=cmllamas@google.com \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=mbkchelofficialdev@gmail.com \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=work@onurozkan.dev \
/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
all inboxes | Powered by JetHome®