Public bug reported:

I am getting random kernel panics on a small home server running Ubuntu
24.04.4 LTS. The machine is a NipoGi AM06PRO with an AMD Ryzen 7 5700U
and 16 CPUs.

The problem normally happens while the machine is idle. It does not seem
connected to high CPU or GPU load. The system may work for several days,
but one panic also happened after only 18 minutes.

The recent crashes happened with the official Ubuntu HWE kernel
7.0.0-28-generic. EFI pstore saved the logs and systemd-pstore copied
them to disk after the next boot.

The clearest and most recent crash was:

```text
CPU: 8 UID: 0 PID: 0 Comm: swapper/8
BUG: kernel NULL pointer dereference, address: 0000000000000024
Oops: Oops: 0000 [#1] SMP NOPTI
RIP: 0010:tmigr_update_events+0x127/0x320
Kernel panic - not syncing: Attempted to kill the idle task!
```

Two earlier panics with the same kernel also happened in an idle task.
One tried to execute an NX-protected data page after
`pv_native_safe_halt`. The other failed with an invalid opcode in
`srso_safe_ret`.

At that time the kernel was tainted with `S` because I had installed a
service which changed a C6-related MSR using zenstates.py. I have now
removed and masked this service. After rebooting,
`/proc/sys/kernel/tainted` is `0`.

I have temporarily returned to kernel 6.17.0-35-generic. I also set
`kernel.timer_migration=0` because the last panic happened inside
`tmigr_update_events`. This is only a workaround and not proof that
timer migration is the root cause.

## Hardware

```text
Computer: NipoGi AM06PRO mini PC
CPU: AMD Ryzen 7 5700U with Radeon Graphics
GPU: AMD Lucienne [1002:164c]
BIOS: 0.33, 18 December 2024
RAM: non-ECC
Storage: AirDisk 512 GB SATA SSD
```

The SSD SMART data and SATA PHY counters show no errors. Memtest86+
completed successfully, although I understand that this does not fully
exclude marginal RAM.

## Kernel history

Kernel 6.17 sometimes froze after several days or weeks, without a
visible panic. With 7.0.0-28 the problem became more frequent and pstore
captured three panic traces.

```text
7.0.0-28: panic after about 2.9 days
7.0.0-28: abrupt stop after about 1 day
7.0.0-28: panic after 18 minutes
7.0.0-28: panic after about 10 hours 48 minutes
```

I am attaching the three pstore `dmesg.txt` files. Please let me know if
I should test a proposed kernel or collect more information.

## Current workaround

```text
Kernel: 6.17.0-35-generic
kernel.timer_migration = 0
kernel.panic_on_oops = 1
kernel.panic = 60
/proc/sys/kernel/tainted = 0
disable-c6.service = masked
```

I can test a newer Ubuntu kernel, but this machine provides home
services, so I need a rollback option if it panics again.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-7.0.0-28-generic 7.0.0-28.28~24.04.1
ProcVersionSignature: Ubuntu 6.17.0-35.35~24.04.1-generic 6.17.13
Uname: Linux 6.17.0-35-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: pass
Date: Thu Aug 13 13:23:28 2026
InstallationDate: Installed on 2025-04-30 (470 days ago)
InstallationMedia: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250215)
MachineType: HC Technology.,Ltd. HCAR5000-MI
ProcEnviron:
 LANG=es_ES.UTF-8
 LC_CTYPE=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.17.0-35-generic 
root=UUID=a06d7f01-0998-4a19-9e62-ede005d68baa ro quiet splash 
processor.max_cstate=1 idle=nomwait amdgpu.ppfeaturemask=0xfff73fff 
amdgpu.runpm=0 vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-6.17.0-35-generic N/A
 linux-backports-modules-6.17.0-35-generic  N/A
 linux-firmware                             20240318.git3b128b60-0ubuntu2.27
RfKill:
 0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
SourcePackage: linux-hwe-7.0
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/18/2024
dmi.bios.release: 5.19
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: 0.33
dmi.board.asset.tag: Default string
dmi.board.name: HCAR5000-MI
dmi.board.vendor: HC Technology.,Ltd.
dmi.board.version: Default string
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvr0.33:bd12/18/2024:br5.19:svnHCTechnology.,Ltd.:pnHCAR5000-MI:pvrDefaultstring:rvnHCTechnology.,Ltd.:rnHCAR5000-MI:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: Default string
dmi.product.name: HCAR5000-MI
dmi.product.sku: Default string
dmi.product.version: Default string
dmi.sys.vendor: HC Technology.,Ltd.

** Affects: linux-hwe-7.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

** Attachment added: "Kernel panic pstore dump: panic-2026-07-29-oops-dmesg.txt"
   
https://bugs.launchpad.net/bugs/2163402/+attachment/5991706/+files/panic-2026-07-29-oops-dmesg.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163402

Title:
  Ubuntu 24.04 HWE 7.0.0-28: random kernel panics in idle, latest crash
  in tmigr_update_events

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2163402/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to