4qwerty7 f4d2b0feab Distinguish different PT_REGS_PARM4 under x86 (#711)
1. `PT_REGS_CCALL_PARM4` 表示存放C调用约定的第4个参数的寄存器
2. `PT_REGS_SYSCALL_PARM4` 表示存放linux syscall调用约定的第4个参数的寄存器
3. 将原有 `PT_REGS_PARM4` 改为上述之一
4. 将原有 `ksu_handle_execveat_ksud` 和 `ksu_handle_execveat_sucompat` 可能被
kprobe 传递错误实参、且不使用的形参标记为 never_used 并传递 `NULL`
5. 为 `ksu_handle_execveat_ksud` 提供正确的 argv 参数用以在 x86 下也能正确识别 `init
second_stage`

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2023-07-06 09:01:35 +08:00
2023-07-05 08:03:27 +08:00
2023-07-04 12:37:06 +08:00
2022-12-09 22:03:55 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00
2023-07-04 12:37:06 +08:00

English | Español | 简体中文 | 繁體中文 | 日本語 | Polski | Portuguese-Brazil | Türkçe

KernelSU

A Kernel based root solution for Android devices.

Features

  1. Kernel-based su and root access management.
  2. Module system based on overlayfs.

Compatibility State

KernelSU officially supports Android GKI 2.0 devices(with kernel 5.10+), old kernels(4.14+) is also compatible, but you need to build kernel yourself.

WSA and containter-based Android should also work with KernelSU integrated.

And the current supported ABIs are : arm64-v8a and x86_64

Usage

Installation

Build

How to build?

Discussion

License

  • Files under kernel directory are GPL-2
  • All other parts except kernel directory are GPL-3

Credits

Description
No description provided
Readme GPL-3.0 60 MiB
Languages
Kotlin 67.1%
C 20%
Rust 11.1%
Shell 0.9%
Makefile 0.4%
Other 0.4%