KPatch-Next-Module icon indicating copy to clipboard operation
KPatch-Next-Module copied to clipboard

[Critical Regression] KPatch 0.13.6 causes immediate kernel panic on boot, 0.13.5 works

Open CulvertYi opened this issue 10 months ago • 5 comments

Problem Description

On a Redmi K60 device, installing KPatch-Next-Module version 0.13.6 causes an immediate kernel panic during boot, resulting in an unrecoverable bootloop. Version 0.13.5 of the same module works correctly in the exact same environment.

Important Note: The exact same Magisk configuration (same modules and settings) works perfectly with version 0.13.5, so the issue is specific to changes in version 0.13.6, not a general environment conflict.

Environment Details

  • Device: Redmi K60
  • Kernel: 5.10.246-SoraYumeKernel-android12-9-g7649975a1c07-dirty
  • Android Version: ColorOS 15 (Unofficial ported ROM, based on Android 12 kernel)
  • Architecture: aarch64
  • Root Solution: Magisk Alpha v30600 (Kitsune Mask)
  • Zygisk: Enabled
  • Problem Version: KPatch-Next-Module 0.13.6
  • Working Version: KPatch-Next-Module 0.13.5

Steps to Reproduce

  1. Install KPatch-Next-Module 0.13.6 on the specified environment.
  2. Reboot the device.
  3. Observe boot sequence.

Actual Results

  • Boot animation (MIUI logo) appears for approximately 1 second.
  • Screen turns black, device reboots immediately.
  • Enters a continuous bootloop.
  • Cannot enter any recovery mode (TWRP, etc.).
  • The only recovery method is to flash the stock firmware via bootloader/EDL mode.

Expected Results

The device should boot into the operating system normally, as it does with version 0.13.5.

Additional Context

  • The crash occurs at a very early stage of kernel initialization.
  • The issue is 100% reproducible. Reverting to version 0.13.5 immediately resolves the problem.
  • No other Magisk modules or configuration changes were made between testing 0.13.5 and 0.13.6, confirming this is a regression in the module itself.
  • The incident occurred several days ago, and any potential kernel crash logs have likely been overwritten by the system.
  • The ColorOS 15 ROM is an unofficial port, not the stock ROM for Redmi K60.

Note: This issue report was written with AI assistance. There may be inaccuracies in technical language translation, and as a new contributor, I may have omitted some necessary details. I'm happy to provide any additional information or perform requested tests to help resolve this problem. Please let me know.

CulvertYi avatar Jan 25 '26 15:01 CulvertYi

Too same

hulik1 avatar Jan 26 '26 00:01 hulik1

I’m encountering the same issue on kernel 4.9. It was working correctly before, but the problem started after commit 133ce07. For reference, I did not embed any KPM during installing.

Ephemera42 avatar Feb 02 '26 03:02 Ephemera42

Problem Description

On a Redmi K60 device, installing KPatch-Next-Module version 0.13.6 causes an immediate kernel panic during boot, resulting in an unrecoverable bootloop. Version 0.13.5 of the same module works correctly in the exact same environment.

Important Note: The exact same Magisk configuration (same modules and settings) works perfectly with version 0.13.5, so the issue is specific to changes in version 0.13.6, not a general environment conflict.

Environment Details

  • Device: Redmi K60
  • Kernel: 5.10.246-SoraYumeKernel-android12-9-g7649975a1c07-dirty
  • Android Version: ColorOS 15 (Unofficial ported ROM, based on Android 12 kernel)
  • Architecture: aarch64
  • Root Solution: Magisk Alpha v30600 (Kitsune Mask)
  • Zygisk: Enabled
  • Problem Version: KPatch-Next-Module 0.13.6
  • Working Version: KPatch-Next-Module 0.13.5

Steps to Reproduce

  1. Install KPatch-Next-Module 0.13.6 on the specified environment.
  2. Reboot the device.
  3. Observe boot sequence.

Actual Results

  • Boot animation (MIUI logo) appears for approximately 1 second.
  • Screen turns black, device reboots immediately.
  • Enters a continuous bootloop.
  • Cannot enter any recovery mode (TWRP, etc.).
  • The only recovery method is to flash the stock firmware via bootloader/EDL mode.

Expected Results

The device should boot into the operating system normally, as it does with version 0.13.5.

Additional Context

  • The crash occurs at a very early stage of kernel initialization.
  • The issue is 100% reproducible. Reverting to version 0.13.5 immediately resolves the problem.
  • No other Magisk modules or configuration changes were made between testing 0.13.5 and 0.13.6, confirming this is a regression in the module itself.
  • The incident occurred several days ago, and any potential kernel crash logs have likely been overwritten by the system.
  • The ColorOS 15 ROM is an unofficial port, not the stock ROM for Redmi K60.

Note: This issue report was written with AI assistance. There may be inaccuracies in technical language translation, and as a new contributor, I may have omitted some necessary details. I'm happy to provide any additional information or perform requested tests to help resolve this problem. Please let me know.

Try using Kernelsu / Next

quadro-kal avatar May 02 '26 23:05 quadro-kal

Just to add, the current stable version still has this issue. I personally tested version 127 and had no problems.

CulvertYi avatar Jun 08 '26 08:06 CulvertYi

I used release version has this promble too, version 141 works for me. Remi k60, kernel 5.10.246

gaodayihao avatar Jun 26 '26 04:06 gaodayihao