Skip to content

Conversation

@aviraxp
Copy link
Collaborator

@aviraxp aviraxp commented Jun 8, 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.

@aviraxp aviraxp requested a review from tiann June 8, 2025 07:22
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]>
@aviraxp aviraxp enabled auto-merge (squash) June 8, 2025 09:46
@aviraxp aviraxp disabled auto-merge June 8, 2025 09:46
@aviraxp aviraxp enabled auto-merge (squash) June 8, 2025 09:47
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]>
@aviraxp aviraxp merged commit 0b6998b into main Jun 9, 2025
20 checks passed
@aviraxp aviraxp deleted the fs branch June 9, 2025 03:42
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
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
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
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
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
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants