Skip to content

[Regression] Hard Crash/Reboot during high I/O (tar/apt) on OnePlus 13 - KSUN 32966 #122

@UlasuNoka

Description

@UlasuNoka

Device Information:

  • Device: OnePlus 13 (CPH2653)
  • ROM/Software Version: OOS 16.0.2.402(EX01) / Android 16
  • SELinux Status: Permissive

Kernel Information:

Note: I have not tested the intermediate builds between v2.0.0-r2 and v2.0.0-r7 yet. I plan to test them to narrow down the regression and will report my findings in a follow-up comment.

Description:
I am experiencing a consistent hard crash (instant reboot) when performing intensive I/O operations inside a chroot environment (setup via manual mounting, not restricted by Linux Deploy). The issue specifically occurs when unpacking large archives or installing packages.
This appears to be a regression introduced between KSUN build 32906 and 32966, as the kernel version (6.6.89) and SuSFS version (v2.0.0) remain the same.

Steps to Reproduce:

  1. Flash the problematic kernel (KSUN_32966).
  2. Open a root terminal (via Termux tsu or ADB).
  3. Attempt to unpack a large rootfs archive (e.g., Debian Sid rootfs ~200MB compressed):
    tar -xpf rootfs.tar.xz -C /data/chroot/target_dir/
    _Alternatively: _Run apt install for a large package inside the chroot.
  4. Result: The device freezes for a few seconds and then hard reboots.

Troubleshooting & Regression Testing:

  • I flashed the previous build (KSUN_32906) and the exact same operation completes successfully without any issues.
  • I attempted to capture logs using console-ramoops and pmsg-ramoops after the reboot.
    • console-ramoops is empty.
    • pmsg-ramoops cuts off abruptly on standard Android logs (Wifi/Sync) with no indication of I/O errors or kernel panics, suggesting the crash is instantaneous and logs are not flushed to NVRAM in time.

Hypothesis:
Since the base kernel version is identical, the issue likely stems from changes in KernelSU Next hooks or specific scheduler/memory management patches applied in the 32966 build that conflict with heavy write operations on UFS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions