Skip to content

[BUG] 7.0.5-2: zram slot_free NULL pointer dereference crash on boot #845

@Karlos5000

Description

@Karlos5000

Pre-flight checklist

  • I have searched existing issues and this is not a duplicate.
  • I have read the Contributing Guidelines.
  • I have verified the issue is reproducible with the latest available CachyOS kernel.
  • I have tried to reproduce the issue on Arch Linux's linux kernel.

Upstream / vanilla kernel check

I have not tested with a vanilla/upstream kernel

Kernel variant

linux-cachyos (EEVDF, Clang)

System information (cachyos-bugreport.sh)

Full bugreport: https://paste.cachyos.org/p/a0e5125.log

Manual system information (if cachyos-bugreport.sh is unavailable)

Kernel: 7.0.5-2-cachyos (crashed) / 7.0.5-1-cachyos (works)
  CPU: Intel i9-14900K
  GPU: NVIDIA RTX 5060 Ti + RTX 4060 Ti, driver: nvidia-open 595.45.04
  Architecture: x86-64-v3

Bug description

After updating to linux-cachyos 7.0.5-2, system crashes on boot with a NULL pointer dereference in the zram module. The crash happens in the writeback
workqueue for zram1 (24GB ext4, used as NVIDIA shader cache). System becomes completely unresponsive. Downgrading to 7.0.5-1 fixes the issue immediately.

Kernel oops:
BUG: kernel NULL pointer dereference, address: 0000000000000000
Oops: Oops: 0002 [#1] SMP NOPTI
CPU: 12 PID: 344 Comm: kworker/u128:5 Tainted: G O 7.0.5-2-cachyos #1 PREEMPT(full)
Workqueue: writeback wb_workfn (flush-253:1)
RIP: 0010:slot_free+0x11f/0x140 [zram]
CR2: 0000000000000000

Full bugreport: https://paste.cachyos.org/p/a0e5125.log

Steps to reproduce

  1. Install linux-cachyos 7.0.5-2 with zram1 configured as ext4 (zram-generator)
  2. Reboot
  3. System crashes during boot in zram writeback workqueue

Expected behavior

System boots normally as it did with linux-cachyos 7.0.5-1

Actual behavior

System crashes on boot. Kernel oops in zram module, system freezes completely and requires hard reset.

Logs / stack traces

https://paste.cachyos.org/p/a0e5125.log

Additional system information

"Cannot test vanilla Arch kernel — system crashes on boot with 7.0.5-2."

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions