Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

system_server: LSPlant init fails (mmap dual mapping EACCES) — module handleLoadPackage never runs there

Đang mở
#971 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
android, kotlin

Hướng nghiên cứu

Bắt đầu với đường dẫn injection của system_server và lỗi dual-mapping của LSPlant được báo cáo là EACCES. Tái hiện lỗi trên thiết lập Android 15 và Magisk/Zygisk đã nêu, sau đó so sánh hành vi của system_server với injection vào ứng dụng thông thường trong khi thu thập các log liên quan. Được xem là hoàn tất khi việc tải module hoạt động trong system_server hoặc các điều kiện tiên quyết cần thiết của kernel và SELinux được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment

  • Device: moto g54 5G (MTK Dimensity 6020), Android 15, stock-ish ROM
  • Root: Magisk 30.7 + Zygisk, SELinux Enforcing
  • Vector v2.2 (3110-c4a701aa)

Symptom
The framework injects into system_server and logs Loading Vector/Xposed for system (UID: 1000), but immediately after:

E/LSPlant: mmap dual mapping failed with 13: Permission denied
I/VectorNative: Injected Vector framework into system_server.

After this, module handleLoadPackage is never invoked for the system_server process (zero module logs from the system_server pid), while injection into regular apps works perfectly on the same device and boot.

Diagnosis attempts

  • Kernel audit is functional (other unrelated avc denials from system_server are logged at boot), but no avc denial corresponds to the LSPlant mmap failure — so this appears to be something other than a SELinux policy denial (memfd/seccomp/kernel restriction on system_server?).
  • Applying allow system_server system_server process execmem via magiskpolicy (live + module sepolicy.rule) and rebooting has no effect — same error.
  • dmesg -n 8 + reboot also produced no avc line for this operation.

Expected
Either system_server module loading works (module entry point invoked), or the failure mode is documented with the required kernel/SELinux prerequisites.

Question
Is system_server module loading supported on this combination, and if so what kernel/SELinux prerequisites does the LSPlant dual mapping need there? Happy to test canary builds or provide more logs.

Ngôn ngữ chính
Kotlin
Star
12.6k
Fork
850
Merge trung bình
20 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của JingMatrix/Vector

Tất cả issue của JingMatrix/Vector

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.