From: jongan.kim@lge.com
To: aliceryhl@google.com, a.hindborg@kernel.org, arve@android.com,
bjorn3_gh@protonmail.com, boqun.feng@gmail.com,
brauner@kernel.org, cmllamas@google.com, dakr@kernel.org,
daniel.almeida@collabora.com, gary@garyguo.net,
gregkh@linuxfoundation.org, tamird@gmail.com, tkjos@android.com,
tmgross@umich.edu, viresh.kumar@linaro.org,
vitaly.wool@konsulko.se, yury.norov@gmail.com, ojeda@kernel.org,
lossin@kernel.org
Cc: heesu0025.kim@lge.com, ht.hong@lge.com, jongan.kim@lge.com,
jungsu.hwang@lge.com, kernel-team@android.com,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org,
sanghun.lee@lge.com, seulgi.lee@lge.com, sunghoon.kim@lge.com
Subject: [PATCH v4 0/3] binder: handle PID namespace conversion for freeze operation
Date: Fri, 6 Feb 2026 17:53:33 +0900 [thread overview]
Message-ID: <20260206085336.32819-1-jongan.kim@lge.com> (raw)
From: JongAn Kim <jongan.kim@lge.com>
This patch series fixes PID namespace handling in binder's freeze operation
for both C and Rust implementations.
Changes in v4
1. Patch 1/3
- change subject name more clearly
- comapre task_struct pointers directly instead of PID.
2. Patch 2/3
- Add __rust_helper annotation to rust_helper_get_pid
3. Patch 3/3
- change subject name more clearly
- Use Task pointer comparison instead of PID number comparison (Gary, Alice)
- Remove PidNamespace dependency entirely
- Use &mut KVec parameter to avoid intermediate allocation (Gary)
- Merge context.rs and process.rs changes into single patch
History
v1 : https://lore.kernel.org/lkml/20251203024140.175952-1-jongan.kim@lge.com/T/#u
v2 : https://lore.kernel.org/lkml/20260129084119.32994-1-jongan.kim@lge.com/T/#u
- add two more patches to implement the same logic in Rust binder
v3 : https://lore.kernel.org/lkml/20260203065928.4736-2-jongan.kim@lge.com/
Test
- basic binder freeze test : OK
- binder freeze collision test in seperated namespace : OK
HeeSu Kim (2):
rust: pid: add Pid abstraction and init_ns helper
rust_binder: handle PID namespace conversion for freeze operation
JongAn Kim (1):
binder: handle PID namespace conversion for freeze operation
drivers/android/binder.c | 22 ++++-
drivers/android/binder/context.rs | 16 +++-
drivers/android/binder/process.rs | 25 ++++--
rust/helpers/helpers.c | 1 +
rust/helpers/pid.c | 13 +++
rust/kernel/lib.rs | 1 +
rust/kernel/pid.rs | 138 ++++++++++++++++++++++++++++++
rust/kernel/pid_namespace.rs | 17 ++++
rust/kernel/task.rs | 13 +++
9 files changed, 236 insertions(+), 10 deletions(-)
create mode 100644 rust/helpers/pid.c
create mode 100644 rust/kernel/pid.rs
--
2.25.1
next reply other threads:[~2026-02-06 8:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 8:53 jongan.kim [this message]
2026-02-06 8:53 ` [PATCH v4 1/3] binder: fix PID namespace collision " jongan.kim
2026-02-11 10:17 ` jongan.kim
2026-02-11 10:17 ` jongan.kim
2026-02-11 11:13 ` Greg KH
2026-02-12 1:05 ` jongan.kim
2026-02-06 8:53 ` [PATCH v4 2/3] rust: pid: add Pid abstraction and init_ns helper jongan.kim
2026-02-11 10:42 ` Alice Ryhl
2026-02-13 5:15 ` jongan.kim
2026-02-06 8:53 ` [PATCH v4 3/3] rust_binder: fix PID namespace collision for freeze operation jongan.kim
2026-02-06 16:20 ` Gary Guo
2026-02-09 5:21 ` heesu0025.kim
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=20260206085336.32819-1-jongan.kim@lge.com \
--to=jongan.kim@lge.com \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=arve@android.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=brauner@kernel.org \
--cc=cmllamas@google.com \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=gregkh@linuxfoundation.org \
--cc=heesu0025.kim@lge.com \
--cc=ht.hong@lge.com \
--cc=jungsu.hwang@lge.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=sanghun.lee@lge.com \
--cc=seulgi.lee@lge.com \
--cc=sunghoon.kim@lge.com \
--cc=tamird@gmail.com \
--cc=tkjos@android.com \
--cc=tmgross@umich.edu \
--cc=viresh.kumar@linaro.org \
--cc=vitaly.wool@konsulko.se \
--cc=yury.norov@gmail.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
all inboxes | Powered by JetHome®