public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Alice Ryhl <aliceryhl@google.com>
To: Mark Brown <broonie@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	 Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: linux-next: manual merge of the mm-unstable tree with the char-misc.current tree
Date: Fri, 6 Mar 2026 14:38:34 +0000	[thread overview]
Message-ID: <aarm6urW8_v25Nj3@google.com> (raw)
In-Reply-To: <aarPg_AVR3TN9frW@sirena.org.uk>

On Fri, Mar 06, 2026 at 12:58:43PM +0000, Mark Brown wrote:
> Hi all,
> 
> Today's linux-next merge of the mm-unstable tree got a conflict in:
> 
>   drivers/android/binder/page_range.rs
> 
> between commit:
> 
>   8ef2c15aeae07 ("rust_binder: check ownership before using vma")
> 
> from the char-misc.current tree and commit:
> 
>   3c9b6aa5c9119 ("mm: rename zap_page_range_single() to zap_vma_range()")
> 
> from the mm-unstable tree.
> 
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> diff --cc drivers/android/binder/page_range.rs
> index 9dfc154e5dd4e,2fddd4ed8d4c4..0000000000000
> --- a/drivers/android/binder/page_range.rs
> +++ b/drivers/android/binder/page_range.rs
> @@@ -759,11 -717,9 +759,11 @@@ unsafe extern "C" fn rust_shrink_free_p
>       // SAFETY: The lru lock is locked when this method is called.
>       unsafe { bindings::spin_unlock(&raw mut (*lru).lock) };
>   
>  -    if let Some(vma) = mmap_read.vma_lookup(vma_addr) {
>  -        let user_page_addr = vma_addr + (page_index << PAGE_SHIFT);
>  -        vma.zap_vma_range(user_page_addr, PAGE_SIZE);
>  +    if let Some(unchecked_vma) = mmap_read.vma_lookup(vma_addr) {
>  +        if let Some(vma) = check_vma(unchecked_vma, range_ptr) {
>  +            let user_page_addr = vma_addr + (page_index << PAGE_SHIFT);
> -             vma.zap_page_range_single(user_page_addr, PAGE_SIZE);
> ++            vma.zap_vma_range(user_page_addr, PAGE_SIZE);
>  +        }
>       }

LGTM thanks!

      reply	other threads:[~2026-03-06 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-06 12:58 linux-next: manual merge of the mm-unstable tree with the char-misc.current tree Mark Brown
2026-03-06 14:38 ` Alice Ryhl [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=aarm6urW8_v25Nj3@google.com \
    --to=aliceryhl@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=david@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.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