Conversation
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 22, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 23, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 24, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 24, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 24, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 25, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 27, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 28, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 28, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 28, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 28, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 28, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 29, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 30, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
sakana164
pushed a commit
to sakana164/KernelSU
that referenced
this pull request
Dec 30, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 30, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 30, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
backslashxx
added a commit
to backslashxx/KernelSU
that referenced
this pull request
Dec 30, 2025
this tries to mimic the behavior of 6.12+'s kvrealloc where it straight up opts out of kasan checks. we dont have unsafe_memcpy on older kernels its just a macro of __builtin_memcpy anyway. ref: tiann#3087 tiann#3089 tiann@438559c * Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.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.
We used to think that oneplus protected the original memory with RO, but we are wrong. Why kfree() panic kernel is that original memory isn't allocated with kmalloc() but kvmalloc(). Normal device will eventually use kmalloc() anyway, but oneplus seems to use more aggressive memory allocation optimization and switched to vmalloc() path.
Use kvrealloc() to fix it. Note, kvrealloc() will check flags first and use kmalloc() if GFP_ATOMIC is passed, so it is fine to be called in kprobe context. This also fix the last memory leak we found in ksu driver.