linux-next: manual merge of the mm-unstable tree with the char-misc.current tree
Subsystems (2)
Mark Brown
maintainerHi 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.
drivers/android/binder/page_range.rs +0 -0
@@@ -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 ); + } } drop(mmap_read);
Alice Ryhl
maintainerQuoted 31 lines · Mark Brown
Hi all,
Today's linux-next merge of the mm-unstable tree got a conflict in:
drivers/android/binder/page_range.rsbetween commit:
8ef2c15aeae07("rust_binder: check ownership before using vma")from the char-misc.current tree and commit:
3c9b6aa5c9119("mm: renamezap_page_range_single()tozap_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.
drivers/android/binder/page_range.rs +0
-0@@@ -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) };
drivers/android/binder/page_range.rs
Quoted 10 lines
drivers/android/binder/page_range.rs +1
-1-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!