How to resolve kernel "unchecked MSR access error"?

journalctl --boot on my Dell XPS 13 Plus 9320 shows

Aug 14 08:19:50 ls03064 kernel: unchecked MSR access error: WRMSR to 0xd10 (tried to write 0x000000000000ffff) at rIP: 0xffffffffbd68e138 (native_write_msr+0x8/0x30)
Aug 14 08:19:50 ls03064 kernel: Call Trace:
Aug 14 08:19:50 ls03064 kernel:  <TASK>
Aug 14 08:19:50 ls03064 kernel:  ? ex_handler_msr+0xcb/0x130
Aug 14 08:19:50 ls03064 kernel:  ? fixup_exception+0x16a/0x310
Aug 14 08:19:50 ls03064 kernel:  ? exc_general_protection+0xe3/0x3e0
Aug 14 08:19:50 ls03064 kernel:  ? asm_exc_general_protection+0x26/0x30
Aug 14 08:19:50 ls03064 kernel:  ? native_write_msr+0x8/0x30
Aug 14 08:19:50 ls03064 kernel:  cat_wrmsr+0x49/0x70
Aug 14 08:19:50 ls03064 kernel:  resctrl_online_cpu+0x353/0x3f0
Aug 14 08:19:50 ls03064 kernel:  ? __pfx_resctrl_online_cpu+0x10/0x10
Aug 14 08:19:50 ls03064 kernel:  cpuhp_invoke_callback+0xf5/0x460
Aug 14 08:19:50 ls03064 kernel:  ? __pfx_smpboot_thread_fn+0x10/0x10
Aug 14 08:19:50 ls03064 kernel:  cpuhp_thread_fun+0xec/0x190
Aug 14 08:19:50 ls03064 kernel:  smpboot_thread_fn+0xd9/0x1d0
Aug 14 08:19:50 ls03064 kernel:  kthread+0xe5/0x120
Aug 14 08:19:50 ls03064 kernel:  ? __pfx_kthread+0x10/0x10
Aug 14 08:19:50 ls03064 kernel:  ret_from_fork+0x31/0x50
Aug 14 08:19:50 ls03064 kernel:  ? __pfx_kthread+0x10/0x10
Aug 14 08:19:50 ls03064 kernel:  ret_from_fork_asm+0x1b/0x30
Aug 14 08:19:50 ls03064 kernel:  </TASK>

How the problem can be solved?

$ nix-info --markdown 
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.45, NixOS, 24.05 (Uakari), 24.05.3844.a731b45590a5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

The problem disappeared setting correct system.stateVersion = "24.5". It was still 23.11.

system.stateVersion should never be changed.

1 Like

Thanks for pointing that out.
When should I change system.stateVersion?