ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: lakostis@altlinux.org
To: devel-kernel@lists.altlinux.org
Subject: [d-kernel] [7.3] binder: turn into module
Date: Fri, 23 Oct 2026 09:42:36 +0200
Message-ID: <20261023074559.941014-1-lakostis@altlinux.org> (raw)

Привет!

Как следует из названия, это серия патчей для превращения android binder
в ядре в модуль. Всяко лучше некрофилии anbox. Я раньше смотрел на эти
патчи, но тогда anbox не сильно расходился с кодом в ядре и бэкпортить
было несложно. Теперь же разница заметна, много архитектурных изменений
(есть даже экспериментальная версия на rust), поэтому данные патчи
сейчас имеют неоспоримые плюсы:
- апстримный код в ядре практически не меняется (в смысле эти патчи практически
  его не меняют), легче поддерживать и делать бэкпорты
- модуль можно вынести в отдельный пакет (из соображений безопасности)

Пачти были взяты из ядра 7.2 xanmod[1], оригинальная версия из убунты.
Быстрая проверка показала, что в 7.3 с этими модулями waydroid работает.

Автозагрузку модуля binder_linux можно либо оставить в пакете
anbox-kernel-conf или переменовать его например в waydroid-kernel-conf.

1. https://gitlab.com/xanmod/linux-patches/-/tree/master/linux-7.2.y-xanmod/binder?ref_type=heads

Andrea Righi (1):
  wait: allow to use __wake_up_pollfree() from GPL modules

Christian Brauner (2):
  binder: turn into module
  binder: give binder_alloc its own debug mask file

Paolo Pisati (1):
  file: export file_close_fd() instead of close_fd_get_file()

 drivers/android/Kconfig           |  6 +++---
 drivers/android/Makefile          |  9 +++++----
 drivers/android/binder.c          | 15 ++++++++++++++-
 drivers/android/binder_alloc.c    |  3 +--
 drivers/android/binder_alloc.h    |  1 +
 drivers/android/binder_internal.h |  5 +++--
 drivers/android/binderfs.c        |  6 +++---
 fs/file.c                         |  1 +
 include/linux/ipc_namespace.h     |  3 +++
 ipc/namespace.c                   | 17 +++++++++++++++++
 kernel/sched/syscalls.c           |  1 +
 kernel/sched/wait.c               |  1 +
 kernel/task_work.c                |  1 +
 mm/list_lru.c                     |  1 +
 mm/memory.c                       |  1 +
 mm/mmap_lock.c                    |  1 +
 mm/vmalloc.c                      |  1 +
 security/security.c               |  4 ++++
 18 files changed, 62 insertions(+), 15 deletions(-)

-- 
2.50.1



             reply	other threads:[~2026-10-23  7:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  7:42 lakostis [this message]
2026-10-23  7:42 ` [d-kernel] [PATCH 1/4] " lakostis
2026-10-23  7:42 ` [d-kernel] [PATCH 2/4] binder: give binder_alloc its own debug mask file lakostis
2026-10-23  7:42 ` [d-kernel] [PATCH 3/4] wait: allow to use __wake_up_pollfree() from GPL modules lakostis
2026-10-23  7:42 ` [d-kernel] [PATCH 4/4] file: export file_close_fd() instead of close_fd_get_file() lakostis
2026-10-23  9:05 ` [d-kernel] [7.3] binder: turn into module Ivan A. Melnikov
2026-10-23 11:35   ` Konstantin Lepikhov

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=20261023074559.941014-1-lakostis@altlinux.org \
    --to=lakostis@altlinux.org \
    --cc=devel-kernel@lists.altlinux.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

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git