mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] binder: fix issues with mremap()
@ 2026-09-01  3:04 Carlos Llamas
  2026-09-01  3:04 ` [PATCH v2 1/5] binder: set VM_DONTEXPAND Carlos Llamas
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Carlos Llamas @ 2026-09-01  3:04 UTC (permalink / raw)
  Cc: kernel-team, linux-kernel, Suren Baghdasaryan, Carlos Llamas

This is a follow up series fixing some pre-existing issues found by
sashiko during a review of an unrelated patchset here:
https://sashiko.dev/#/patchset/20260813193433.3318288-1-surenb@google.com

The goal is to safely reject mremap() requests on binder's vma to
prevent pages from temporary leaking and accidental IPC tear-down.

--
v2:
 - Set VM_DONTEXPAND in [1/5] and [2/5] per Sashiko's feedback.
 - Check vma->vm_start to prevent incorrect ->close() in [3/5] per
   Sashiko's feedback.

v1:
https://lore.kernel.org/all/20260831224145.169403-1-cmllamas@google.com/

Carlos Llamas (5):
  binder: set VM_DONTEXPAND
  rust_binder: set VM_DONTEXPAND
  binder: check vma->vm_start in binder_vma_close()
  binder: reject mremap()
  rust_binder: reject mremap()

 drivers/android/binder.c             | 12 +++++++++++-
 drivers/android/binder/page_range.rs | 15 ++++++++++++---
 drivers/android/binder/process.rs    |  1 +
 3 files changed, 24 insertions(+), 4 deletions(-)

-- 
2.55.0.897.gb25b4bd76c-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-09-01 15:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-01  3:04 [PATCH v2 0/5] binder: fix issues with mremap() Carlos Llamas
2026-09-01  3:04 ` [PATCH v2 1/5] binder: set VM_DONTEXPAND Carlos Llamas
2026-09-01  3:04 ` [PATCH v2 2/5] rust_binder: " Carlos Llamas
2026-09-01  3:04 ` [PATCH v2 3/5] binder: check vma->vm_start in binder_vma_close() Carlos Llamas
2026-09-01  9:31   ` Alice Ryhl
2026-09-01 15:47     ` Carlos Llamas
2026-09-01  3:04 ` [PATCH v2 4/5] binder: reject mremap() Carlos Llamas
2026-09-01  3:04 ` [PATCH v2 5/5] rust_binder: " Carlos Llamas

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®