-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
throne_tracker: avoid cross fs access #2626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Files in /data/app may be stacked on incremental fs, if user installs big apps from play store or adb shell. Performing I/O operation on it may results in long-time blocking. As KSU won't get installed in those ways, just avoid cross fs access. Signed-off-by: Wang Han <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
tiann/KernelSU#2626 why not check magic instead though
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
upstream's way seems to fail around my_actor, once it tries to resolve path to struct via kern_path. no idea what the issue is, but since we can achieve the same goal, ehh, dont bother with it Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
upstream's way seems to fail around my_actor, once it tries to resolve path to struct via kern_path. unsure if UL issue or what. no idea what the issue is, but since we can achieve the same goal, ehh, dont bother with it Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
upstream's way seems to fail around my_actor, once it tries to resolve path to struct via kern_path. unsure if UL issue or what. no idea what the issue is, but since we can achieve the same goal, ehh, dont bother with it another option: - maybe just grab /data/app magic then only allow that Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
upstream's way seems to fail around my_actor, once it tries to resolve path to struct via kern_path. unsure if UL issue or what. no idea what the issue is, but since we can achieve the same goal, ehh, dont bother with it Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
Skip directories in /data/app that are NOT the same as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a simple workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
Skip directories in /data/app that are NOT the same as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a simple workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
Skip directories in /data/app that are NOT the same as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a simple workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
Skip directories in /data/app that are NOT the same as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a simple workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 8, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-libra-test/android_kernel_xiaomi_libra
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-mojito-test/mojito_krenol
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to ximi-mojito-test/mojito_krenol
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann/KernelSU#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Replaces: `throne_tracker: avoid cross fs access` tiann#2626 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. Replaces: `throne_tracker: avoid cross fs access` tiann#2626 Signed-off-by: backslashxx <[email protected]>
Ylarod
approved these changes
Jun 9, 2025
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
This commit restores compatibility code needed that was removed at tiann/KernelSU@898e9d4 . where upstream dropped all pre-5.10 support Reverts `kernel:Add Huawei hisi check (tiann#1545)` - upstream tiann/KernelSU@4f05fe2 - superceded by `kernel: expose allowlist workaround as Kconfig option` Reverts `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann/KernelSU@0b6998b - superceded by `throne_tracker: avoid cross-fs traversal using s_magic check` other changes and cleanups sucompat: ksu_handle_stat(), remove dead ifdef. - just use `ksu_handle_stat(&dfd, &filename->name, &flags);` if you want to hook vfs_statx on 6.1 LINUX_VERSION_CODE / KERNEL_VERSION, ksu.c - reported by Sinclair19 - fix by including version.h fatal_signal_pending, ksud.c - add compat by including sched.h or sched/signal.h conditionally - ref: torvalds/linux@2a1f062 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
This commit restores compatibility code needed that was removed at tiann/KernelSU@898e9d4 . where upstream dropped all pre-5.10 support Reverts `kernel:Add Huawei hisi check (tiann#1545)` - upstream tiann/KernelSU@4f05fe2 - superceded by `kernel: expose allowlist workaround as Kconfig option` Reverts `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann/KernelSU@0b6998b - superceded by `kernel: throne_tracker: avoid cross-fs traversal using s_magic check` other changes and cleanups sucompat: ksu_handle_stat(), remove dead ifdef. - just use `ksu_handle_stat(&dfd, &filename->name, &flags);` if you want to hook vfs_statx on 6.1 LINUX_VERSION_CODE / KERNEL_VERSION, ksu.c - reported by Sinclair19 - fix by including version.h fatal_signal_pending, ksud.c - add compat by including sched.h or sched/signal.h conditionally - ref: torvalds/linux@2a1f062 Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
rsuntk
pushed a commit
to rsuntk/KernelSU
that referenced
this pull request
Jun 9, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
luyanci
pushed a commit
to luyanci/KernelSU
that referenced
this pull request
Jun 10, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 11, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 11, 2025
This reverts commit 0b6998b.
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 11, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
This reverts commit 0b6998b.
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
This reverts commit 0b6998b.
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
This reverts commit 0b6998b.
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Jun 11, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 12, 2025
This reverts commit 0b6998b.
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Jun 12, 2025
Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This is a workaround for Ultra-Legacy kernels where upstream's method fails. Seems doing 50+ kern_path() calls is a bad meme. This supercedes `throne_tracker: avoid cross fs access (tiann#2626)` - upstream tiann@0b6998b Signed-off-by: backslashxx <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jun 29, 2025
…agic check (#2633) Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jun 29, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
fadlyas07
added a commit
to bengal-upstream/KernelSU
that referenced
this pull request
Jul 10, 2025
* 'main' of https://github.com/tiann/KernelSU: kernel: selinux: rules: Fix illegal RCU lock usage in apply_kernelsu_rules() (tiann#2646) manger: fix lkm detection (tiann#2654) Update FUNDING.yml kernel: core_hook: fix refcount leaks on try_umount (tiann#2635) build(deps): bump the maven group across 1 directory with 7 updates (tiann#2629) Translations update from Hosted Weblate (tiann#2587) kernel: throne_tracker: avoid cross-fs traversal using s_magic check (tiann#2633) Switch to prepare_creds/commit_creds (tiann#2631) throne_tracker: avoid cross fs access (tiann#2626) build(deps): bump the maven group across 1 directory with 4 updates (tiann#2612) Conflicts: kernel/selinux/rules.c kernel/throne_tracker.c Change-Id: If58573ef63cb613e76d6054c898c7748143ff8b9
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jul 15, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jul 15, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jul 15, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jul 15, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Jul 15, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Jul 24, 2025
Files in /data/app may be stacked on incremental fs, if user installs big apps from play store or adb shell. Performing I/O operation on it may results in long-time blocking. As KSU won't get installed in those ways, just avoid cross fs access. Authored-by: 5ec1cff <[email protected]> Signed-off-by: Wang Han <[email protected]>
nullptr03
pushed a commit
to skglab-dev/kernel_xiaomi_stone
that referenced
this pull request
Jul 26, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
nullptr03
pushed a commit
to skglab-dev/kernel_xiaomi_stone
that referenced
this pull request
Aug 1, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Tashar02
pushed a commit
to Atom-X-Devs/scarlet_xiaomi_sm7325
that referenced
this pull request
Sep 16, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
HotaruOs
pushed a commit
to HotaruOs/kernel_motorola_sm8350
that referenced
this pull request
Oct 30, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
HotaruOs
pushed a commit
to HotaruOs/kernel_motorola_sm8350
that referenced
this pull request
Oct 30, 2025
…agic check Skip directories that does NOT have the same magic as /data/app. This is to avoid scanning incfs and any other stacked filesystems. While this is way dumber, it's way cheaper. no kern_path(), no missable path_put(), no ref handling. This supercedes: - "throne_tracker: avoid cross fs access (tiann/KernelSU#2626)" - upstream tiann/KernelSU@0b6998b Signed-off-by: backslashxx <[email protected]> Signed-off-by: Tashfin Shakeer Rhythm <[email protected]>
Prslc
pushed a commit
to Prslc/KernelSU
that referenced
this pull request
Oct 31, 2025
Files in /data/app may be stacked on incremental fs, if user installs big apps from play store or adb shell. Performing I/O operation on it may results in long-time blocking. As KSU won't get installed in those ways, just avoid cross fs access. Authored-by: 5ec1cff <[email protected]> Signed-off-by: Wang Han <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Files in /data/app may be stacked on incremental fs, if user installs big apps from play store or adb shell. Performing I/O operation on it may results in long-time blocking. As KSU won't get installed in those ways, just avoid cross fs access.