Rust netlink support + use in Rust Binder
Get series with b4
b4 am [email protected] change-id 20260306-binder-netlink-c82110b2fb74Versions newest first
- v7 Latest3 patches 0 repliesNew
- v63 patches 5 repliesSuperseded
- v52 patches 6 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 4 patches | 4 replies | Superseded | |
| v3 | 4 patches | 9 replies | Superseded | |
| v2 | 4 patches | 2 replies | Superseded | |
| v1 | 4 patches | 21 replies | Superseded |
Changes in v7 from the cover letter
- Rebase on char-misc-linus and char-misc-next.
- Fix conflict with commit 77bfebf11077 ("rust_binder: fix BINDER_GET_EXTENDED_ERROR")
- Pick up tags
- Link to v6: https://lore.kernel.org/r/[email protected]
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | rust: net: add rust/kernel/net to NETWORKING [GENERAL]MAINTAINERS rust/ | +2 | 0 replies | |
| 2/3 | rust: netlink: add raw netlink abstractionrust/ rust/ rust/ +2 more | +389 | 0 replies | |
| 3/3 | rust_binder: report netlink transactionsdrivers/ drivers/ drivers/ +3 more | +175 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Carlos Llamas | Jakub Kicinski | Matthew Maurer | Andrew Lunn |
|---|---|---|---|---|
| 1/3 | R-b | A-b | ||
| 2/3 | R-b | A-b | R-b | R-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v7 0/3] Rust netlink support + use in Rust Binder
The C Binder driver exposes messages over netlink when transactions fail, so that a userpace daemon can respond to processes with many failing transactions.
This patch series adds netlink support from Rust, then implements an equivalent API in Rust Binder.
As Binder only uses broadcast messages, I did not add support for other kinds of messages.
This series is based on top of the result of merging together the two branches 'char-misc/char-misc-linus' and 'char-misc/char-misc-next'.
---
Changes in v7:
- Rebase on char-misc-linus and char-misc-next.
- Fix conflict with commit 77bfebf11077 ("rust_binder: fix BINDER_GET_EXTENDED_ERROR")
- Pick up tags
- Link to v6: https://lore.kernel.org/r/[email protected]
Changes in v6:
- Introduce MAINTAINERS entry update for net files.
- Move netlink.rs to rust/kernel/net/.
- Tweak info.reply logic in Binder patch.
- Link to v5: https://lore.kernel.org/r/[email protected]
Changes in v5:
- Remove patch 2.
- Squash patches 3 and 4.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Fix typo in 'report netlink transactions' commit message.
- Document that some methods are for const context only.
- Rebase and pick up tags.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Fix spurious 'return' statements in Rust helpers (Patch 1).
- Sashiko review:
- Fix ynl_gen to handle empty multicast groups and correct multicast indexing (Patch 2).
- Fix transaction failed reply logic to report via Netlink inside reply_inner() (Patch 4).
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Make inclusion of to_pid conditional too.
- Add note about file name in second patch.
- Make it clear that the sk_buff wrapper is netlink-specific.
- Better handle bitfield in patch 1.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Alice Ryhl (2):
rust: net: add rust/kernel/net to NETWORKING [GENERAL]
rust: netlink: add raw netlink abstraction
Carlos Llamas (1):
rust_binder: report netlink transactions
MAINTAINERS | 2 +
drivers/android/Kconfig | 2 +-
drivers/android/binder/netlink.rs | 117 ++++++++++
drivers/android/binder/rust_binder_main.rs | 8 +-
drivers/android/binder/thread.rs | 11 +-
drivers/android/binder/transaction.rs | 40 ++++
rust/bindings/bindings_helper.h | 3 +
rust/helpers/helpers.c | 1 +
rust/helpers/net/genetlink.c | 46 ++++
rust/kernel/{net.rs => net/mod.rs} | 2 +
rust/kernel/net/netlink.rs | 337 +++++++++++++++++++++++++++++
rust/uapi/uapi_helper.h | 1 +
12 files changed, 566 insertions(+), 4 deletions(-)---
base-commit: 2c7a7db3aa6370f46761b6d8eb821f5bde8901eb
change-id: 20260306-binder-netlink-c82110b2fb74
Best regards,
Signature · 1 line
Alice Ryhl <[email protected]>