Reboot and shutdown issues with recent kernels

After conducting shutdown/reboot tests from 60 kernel builds, I discovered the common CONFIG that causes my system’s instability.

Testing was done across 3 different kernel config pairs. Stable Liquorix-678 vs unstable linux-678, stable Xanmod-677 vs unstable linux-677 and stable linux-lts-61.71 vs unstable linux-lts-66.21.

There are two possible solutions to fix the issue. A user based solution and/or an Arch global fix. The user solution is derived from the Liquorix kernel. They’ve included a kernel boot parameter rcupdate.rcu_expedited=1. When this parameter is added to my grub config line GRUB_CMDLINE_LINUX_DEFAULT=“” my system can run stable using the latest packaged linux-6.7.8 kernel.

The image below is Meld, comparing linux67 on the left and Liquorix67 on the right showing the kernel boot parameter that makes shutdown/reboot become stable.

The actual config that is causing the instability is.

  7946	# HID-BPF support
  7947	#
  7948	CONFIG_HID_BPF=y
  7949	# end of HID-BPF support

CONFIG_HID_BPF=y was introduced in linux-lts-66 and linux-67. When this config is removed from the compiled kernel my system becomes stable.

Xanmod-67 is a little different. HID-BPF support & CONFIG_HID_BPF=y are included, but it has ># CONFIG_FTRACE is not set< under RCU Debugging. When CONFIG_FTRACE=y & CONFIG_DYNAMIC_FTRACE=y are included my system becomes unstable.

Currently the user solution boot parameter derived from the Liquorix config is sufficient to resolve the instability issues.

My next step would be to possibly lodge a bug report to Arch’s Gitlab, and request for the possible removal of HID-BPF support & CONFIG_HID_BPF=y from the kernel’s config. This would ultimately solve our issue globally on all distros that use Arch kernels as their base.