Conversation
Port bmax121/KernelPatch#302 (b77855640f80c6c0af706a9e20aa5c8a203145d6) unchanged to LyraVoid main.
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.
On kernels that inline the generic
_raw_spin_*wrappers, kallsyms lookup leaves the function pointers unset and the first task-extension lock acquisition can branch to address zero. This failure was isolated on Xiaomi Mi MIX 2S (polaris), Linux 4.9.327, as documented in bmax121/KernelPatch#302, which has been merged upstream.This ports that fix unchanged (upstream commit b77855640f80c6c0af706a9e20aa5c8a203145d6) onto LyraVoid main at 1de1a37.
_raw_spin_lock_irqsave/_raw_spin_unlock_irqrestorepair when both resolve.Validation for this port: the upstream patch applies without conflicts, all four changed files have the same resulting contents as the upstream fix, and
git diff --cached --checkpasses. The upstream PR documents ARM64 compilation/disassembly checks and device boot evidence for the fallback prototype. This LyraVoid-based commit has not been rebuilt or device-tested; boot and concurrent task/kstorage testing remain to be done.Scope: four files, 96 additions and 14 deletions. No other upstream commits are included.