Commit Graph

1025 Commits

Author SHA1 Message Date
weishu
22e3e1fc0e Revert "kernel: getname might sleep in kprobe handler (#670)"
This reverts commit 7fa7b5b875.
2023-06-22 12:54:30 +08:00
weishu
7fa7b5b875 kernel: getname might sleep in kprobe handler (#670) 2023-06-22 10:54:50 +08:00
Ali Beyaz
e6c1f5b597 Update latest strings to Turkish (#662) 2023-06-20 18:45:24 +08:00
raystef66
b9f72bd24c Update Flemish/Dutch translation (#665) 2023-06-20 18:44:04 +08:00
weishu
d2647b2f4d kernel: use vfs_fstatat on kernel 5.10+, vfs_statx may have cfi. 2023-06-20 18:42:41 +08:00
Howard Wu
eb3ff15889 ci: Fix kernel version (#666) 2023-06-20 18:10:07 +08:00
Azeroth
6731d33ca3 Fix typo (#667)
Fixed typo in this section
https://kernelsu.org/guide/installation.html#patch-boot-img-manully
2023-06-20 17:58:05 +08:00
Ikko Eltociear Ashimine
3863d19745 kernel: fix typo in allowlist.c (#663)
creat -> create
2023-06-20 11:03:09 +08:00
Coconut
29169ddeb9 kernel:Fix the issue of incompatible __maybe_unused in the GCC compiler kernel used in versions 4.4. x to 4.9. x. (#660) 2023-06-20 10:35:07 +08:00
weishu
b8d28c69d3 manager: Add selinux rules UI 2023-06-19 22:20:40 +08:00
Muhammad Fadlyas
48d05eafda Update Indonesian translation (#659) 2023-06-19 20:07:47 +08:00
weishu
f8346380f6 kernel: Enforcement of Manager Signature Verification 2023-06-19 17:57:19 +08:00
exer
b87d4f20b0 [add device]: Sony Tama (XZ2/c/p, XZ3) (#656) 2023-06-18 17:06:41 +08:00
weishu
0eb960826d kernel: allow uid 1000(system_uid) to grant root. close #645 2023-06-18 13:00:37 +08:00
weishu
f2d9900c45 kernel: fix compile err. close #647 2023-06-18 12:51:34 +08:00
weishu
a644e4e794 ci: support deprecated kernel versions (#648) 2023-06-18 12:47:29 +08:00
github-actions[bot]
7aeae0d2af [add device]: (#650)
has been added to the website.
Related issue: https://github.com/tiann/KernelSU/issues/644

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-17 23:11:41 +08:00
Ylarod
56cf3809e4 fix add-device (#649) 2023-06-17 22:07:39 +08:00
Gustavo Mendes
076d6c1a2b Update Portuguese brazilian translation (#643)
Signed-off-by: Gustavo Mendes <gusttavo.me@outlook.com>
2023-06-17 21:14:36 +08:00
Ali Beyaz
b7cca2a4fd Fixed some Turkish strings again (#646) 2023-06-17 21:14:09 +08:00
Rem01Gaming
4557bcefc0 Update Indonesian translation (#634) 2023-06-16 20:50:31 +08:00
Ali Beyaz
e0930746af Fixed some Turkish strings (#640) 2023-06-16 20:50:13 +08:00
SupeChicken666
25189ef633 Add CI workflow for ChromeOS ARCVM (#641)
All changes are tested on my fork (the Telegram error was fixed in
9b16150):
https://github.com/supechicken/KernelSU/actions/runs/5287864543

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2023-06-16 20:49:51 +08:00
Juhyung Park
9fa6a0ce85 Hook improvements (take 2) (#563)
Hi @tiann.

Thanks for the great project, I had great fun playing around with it.

This PR mainly tries to further minimize the possible delays caused by
KernelSU hooking.

There are 3 major changes:
- Processes with 0 < UID < 2000 are blocked straight-up before going
through the allow_list.
I don't see any need for such processes to be interested in root, and
this allows returning early before going through a more expensive
lookup.
If there's an expected breakage due to this change, I'll remove it. Let
me know.
- A page-sized (4K) bitmap is added.
This allows O(1) lookup for UID <= 32767.
This speeds up `ksu_is_allow_uid()` by about 4.8x by sacrificing a 4K
memory. IMHO, a good trade-off.
Most notably, this reduces the 99.999% result previously from worrying
milliseconds scale to microseconds scale.
For UID > 32767, another page-sized (4K) sequential array is used to
cache allow_list.

Compared to the previous PR #557, this new approach gives another nice
25% performance boost in average, 63-96% boost in worst cases.

Benchmark results are available at
https://docs.google.com/spreadsheets/d/1w_tO1zRLPNMFRer49pL1TQfL6ndEhilRrDU1XFIcWXY/edit?usp=sharing

Thanks!

---------

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
2023-06-16 19:53:15 +08:00
weishu
6b326ffbff kernel: fix warning on x86_64, close #637 2023-06-16 19:32:48 +08:00
Ali Beyaz
81d13c9e85 Translated latest 3 strings to Turkish (#630) 2023-06-14 11:03:42 +08:00
Pegioner
6eda73bb3b Update Russian translation and typo fix (#631) 2023-06-14 11:03:27 +08:00
Igor Sorocean
39737b5ae8 Update ro translation (#629) 2023-06-13 19:23:48 +08:00
raystef66
c1403a203b Update Flemish/Dutch translation (#626) 2023-06-13 14:22:45 +08:00
Hikari-no-Tenshi
d3c0d69e0a manager: Make more strings translatable (#622)
Co-authored-by: weishu <twsxtd@gmail.com>
2023-06-13 12:51:03 +08:00
Ali Beyaz
127b8d810b Turkish translation (#618) 2023-06-13 12:11:12 +08:00
YuKongA
ed5f0d3e29 ci: upgrade kernel branches (#614)
* Add android12-5.10.177 & android13-5.10.177
2023-06-10 20:40:50 +08:00
weishu
b47425d3ff ci: Fix incorrect patch level for a13 kernel. close #601 2023-06-10 20:12:15 +08:00
weishu
4f5ce447b6 ci: fix clippy (#616) 2023-06-10 20:04:12 +08:00
weishu
d621ea6e1d ksud: Fix su parameter parsing. close #530, close #305, close #330, close #305 2023-06-10 15:23:45 +08:00
weishu
917186f34f manager: Add title to profile list dialog 2023-06-09 20:43:44 +08:00
weishu
46ef298978 manager: Add desc to profile list item 2023-06-09 20:04:23 +08:00
weishu
6308aa4f88 manager: minor fixes for uid/gid input 2023-06-09 19:59:11 +08:00
Pegioner
1e9c89ab32 Update Russian translation (#611) 2023-06-09 11:06:50 +08:00
Fiqri Ardyansyah
3fffcde59d Fix error build when using GCC 12.0.0 (#609)
Signed-off-by: Fiqri Ardyansyah <fiqri0927936@gmail.com>
2023-06-09 10:35:16 +08:00
Gustavo Mendes
0575573a28 Update Portuguese brazilian translation (#608)
Signed-off-by: Gustavo Mendes <gusttavo.me@outlook.com>
2023-06-08 10:48:02 +08:00
Rushi Ranpise
09ed2661a9 Update English translation (#605)
Fixes https://github.com/tiann/KernelSU/issues/602
2023-06-07 16:37:08 +08:00
raystef66
bb7eca431c Update Flemish/Dutch translation (#604) 2023-06-07 11:13:04 +08:00
WeeAris
ac88b727ef website: Update unofficial device maintainer information (#603)
RealKing kernel has included kernelsu officially, so I don't need to
keep maintaining this fork. With the consent of the author of the
RealKing kernel, the maintainer information here is updated to his.
2023-06-07 10:37:16 +08:00
weishu
ba229c9e4d kernel: use macro for default domain 2023-06-06 21:07:25 +08:00
weishu
109472ae22 kernel: Fix shell permission under KSU_DEBUG 2023-06-06 21:05:37 +08:00
weishu
01c1cb6259 ci: android13-5.15-2022-11 is deprecated: https://android.googlesource.com/kernel/common/+refs 2023-06-06 20:59:15 +08:00
weishu
0f33d3dec1 manager: sync kernel struct and bump profile version 2023-06-06 20:56:27 +08:00
weishu
6a11cb706d kernel: bump format version to force clear allowlist, prepare to release a new version 2023-06-06 20:49:39 +08:00
weishu
19e00ac4eb kernel: fix set groups for kernel 4.9- 2023-06-06 20:45:42 +08:00