Conversation
maxsteeel
marked this pull request as ready for review
July 5, 2026 04:48
maxsteeel
force-pushed
the
dev
branch
2 times, most recently
from
July 5, 2026 05:34
a40e9bc to
f453d10
Compare
maxsteeel
marked this pull request as draft
July 12, 2026 21:14
maxsteeel
marked this pull request as ready for review
July 24, 2026 23:18
maxsteeel
force-pushed
the
dev
branch
10 times, most recently
from
August 3, 2026 01:45
0a054d7 to
ab51125
Compare
maxsteeel
force-pushed
the
dev
branch
5 times, most recently
from
August 7, 2026 14:01
e0a0f6d to
76ec53a
Compare
- kernel/: - Implement the `NM_FLAG_WHITEOUT` bitmask to explicitly hide existing physical files from the VFS. - Intercept `iterate_dir` via `nomount_actor_proxy` to silently drop `dir_context` entries flagged with `NM_FLAG_WHITEOUT`. - Strip trailing slashes and handle whiteouts safely in-place within `nomount_handle_getname`. - Refactor private dirs logic from path-based string matching to pure inode/dentry tracking. - Unify multiple RCU read lock sections and sequential hash table lookups into a single O(1) pass within `nomount_handle_getattr` and `nomount_handle_permission` to reduce CPU cache thrashing and lock contention. - Fix a critical logic error by replacing bitwise masking `switch` statements with sequential `if` conditions in inode spoofing routines. - Add missing `u8 flags` member to `struct nomount_child_name` to allow flag inheritance in the virtual topology array. - Remove `__nomount_is_injected_file_rcu` and `__nomount_is_traversal_allowed_rcu` helpers. - userspace/: - Extend Netlink payload struct to pack `NM_FLAG_WHITEOUT` instructions via the new `w` command argument in the `nm` CLI tool. - Adapt the JSON and raw `nm list` parsers to properly identify and print whiteout entries natively from the Netlink attribute header. - module/: - Add support for traditional OverlayFS character device (`mknod`) and Magisk `.replace` syntax detection during the boot phase inside `metamount.sh`. - Refactor `xargs` batching pipelines in `metamount.sh` and `index.js` to process up to the maximum `ARG_MAX` limit dynamically via null-byte (`\0`) streams. - Remove JSON parsing overhead from hot-unloading routines in the WebUI, opting for a direct unified file/symlink/char device file-system scan targeting `nm d`.
- Switched to Flexible Array Members (FAM) to eliminate SLUB overhead. - Removed compiler padding and redundant struct list_heads. - Implemented an 8KB static u8 counting filter for lockless getname rejection. - Optimized Netlink batch routing to use direct memory access without copy. - Improved iterate_dir proxy by replacing strlen with boundary checks. Dramatically reduces unpageable memory usage and VFS latency overhead.
…de allocations This commit fixes issue #44
Clang enforces strict ISO C rules where a label cannot be directly followed by a variable declaration. Moved the declaration of 'copied' to the top of the block to resolve the "expected expression" build failure.
In cases where COPY_FILE_SPLICE is not defined, then it's not needed, because in that cases, instead of returning -EXDEV, vfs_copy_file_range handle cross sb natively via generic_copy_file_range. refs: https://github.com/ilhan-athn7/android_kernel_msm-5.4_nothing_sm7325/blob/004cc2acb7f87ddc7ddf1771c0b26839e7469ec8/fs/read_write.c#L1589-L1688 https://github.com/ilhan-athn7/android_kernel_msm-5.4_nothing_sm7325/blob/004cc2acb7f87ddc7ddf1771c0b26839e7469ec8/mm/filemap.c#L3313-L3357
… silent rule drops
maxsteeel
force-pushed
the
dev
branch
2 times, most recently
from
August 17, 2026 22:56
914e2f7 to
7a0acc6
Compare
based on `lsmod` output, shows current working mode as LKM or Built-in added 2 more string to translate
- Add root implementation check and abort installation on Magisk - Symlink `nm` to KSU / APatch `bin` folder on installation, make `nm` more accessible
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
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.
kernel/:
nomount_inodes_htandnomount_inode_node. Addednm_inode_infoto O(1) inode operations.iterate_diroperations.u8 flagsmember to struct nomount_child_name to allow flag inheritance.userspace/:
nm add /system/etc/hosts /data/adb/modules/hosts/system/etc/hosts --uid 10100nm whiteout /system/etc/lineage.prop --uid 10240module/:
nm d.