Fix build #49: Replace umount with sys_umount for kernel 4.9 - #27
Merged
Conversation
…ility The kernel 4.9 build was failing with 'undefined reference to umount'. The v34 fix attempted to use ksys_umount but kernel 4.9 requires sys_umount. Changes: - Added fix_kernelsu_49_v35.py to replace umount() with sys_umount() - Updated workflow to run v35 fix after pre-patched file override - Added proper includes and declarations for sys_umount This fix addresses the linker error in ksu_umount_mnt function at core_hook.c:566
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughA new kernel 4.9 compatibility patch (v35) was added to fix Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Mar 28, 2026
Crybyte
added a commit
that referenced
this pull request
Mar 30, 2026
#2) Build #26 failed with 'flags' undeclared in try_umount function. The v11 fix had issues with function boundary detection. v12 uses a simplified perl approach with -0777 slurp mode to completely replace the try_umount function without complex brace counting. Changes: - Added fix-kernelsu-49-v12.sh with simplified perl-based replacement - Updated workflow to check for v12 first - More aggressive removal of flags references This ensures kernel 4.9 compatibility with KernelSU-Next v1.0.7. Co-authored-by: Oracle Public Cloud User <opc@auranode.subnet09041427.vcn09041427.oraclevcn.com>
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.
Automated fix for crDroid++ kernel build failure.
Issue: Build #48 failed with undefined reference to umount in function ksu_umount_mnt at core_hook.c:566
Root Cause: The ksu_umount_mnt function calls umount() which does not exist in kernel 4.9. Previous fix v34 attempted to use ksys_umount but that also is not available.
Fix:
Related: Build #48 failed with linker error
cc: @coderabbitai
Summary by CodeRabbit