Kernel panic after every reboot: kernel: BUG: Bad page state in process systemd-udevd

I’m learning Linux as I write this, so I request you to please be a bit clear and patient with my logs. For no specific reason, I have tried to update to latest kernel from the kernels page in System Settings.

However, after every reboot, my system crashes right in SDDM and I can’t even enter TTYs. I’ve read through online and am sharing my logs I retrieved with the following command:

journalctl --system -b -1 > journalctl.txt

Please find it here:

Just in case someone is not able to access it due to country restrictions, I’m adding the bug stack trace here.

Mar 20 16:05:47 SrisGamingLaptop kernel: kauditd_printk_skb: 12 callbacks suppressed
Mar 20 16:05:47 SrisGamingLaptop kernel: audit: type=1131 audit(1647772547.110:69): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 20 16:05:47 SrisGamingLaptop NetworkManager[627]: <info>  [1647772547.1685] manager: startup complete
Mar 20 16:05:47 SrisGamingLaptop kernel: mt7921e 0000:2d:00.0: Timeout for driver own
Mar 20 16:05:48 SrisGamingLaptop kernel: mt7921e 0000:2d:00.0: Timeout for driver own
Mar 20 16:05:48 SrisGamingLaptop kernel: BUG: Bad page state in process systemd-udevd  pfn:158ed8
Mar 20 16:05:48 SrisGamingLaptop kernel: page:00000000cd99a915 refcount:-1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x158ed8
Mar 20 16:05:48 SrisGamingLaptop kernel: flags: 0x2ffff0000000000(node=0|zone=2|lastcpupid=0xffff)
Mar 20 16:05:48 SrisGamingLaptop kernel: raw: 02ffff0000000000 dead000000000100 dead000000000122 0000000000000000
Mar 20 16:05:48 SrisGamingLaptop kernel: raw: 0000000000000000 0000000000000000 ffffffffffffffff 0000000000000000
Mar 20 16:05:48 SrisGamingLaptop kernel: page dumped because: nonzero _refcount
Mar 20 16:05:48 SrisGamingLaptop kernel: Modules linked in: cmac algif_hash algif_skcipher af_alg bnep btusb btrtl btbcm btintel bluetooth ecdh_generic crc16 squashfs qrtr loop snd_hda_codec_realtek snd_hda_codec_generic snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_soc_hdac_hda snd_hda_ext_core joydev snd_soc_acpi_intel_match intel_tcc_cooling snd_soc_acpi mousedev x86_pkg_temp_thermal soundwire_bus intel_powerclamp coretemp ledtrig_audio hid_multitouch mt7921e(+) kvm_intel snd_soc_core iTCO_wdt asus_nb_wmi mt7921_common vfat asus_wmi snd_compress intel_pmc_bxt pmt_telemetry mei_hdcp ee1004 iTCO_vendor_support pmt_class intel_rapl_msr mt76_connac_lib ac97_bus platform_profile kvm fat wmi_bmof mt76 snd_pcm_dmaengine uinput irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel nvidia_uvm(POE) snd_hda_codec_hdmi crypto_simd snd_hda_intel cryptd mac80211 uvcvideo
Mar 20 16:05:48 SrisGamingLaptop kernel:  snd_intel_dspcfg snd_intel_sdw_acpi intel_spi_pci snd_hda_codec snd_usb_audio intel_spi videobuf2_vmalloc libarc4 intel_cstate videobuf2_memops spi_nor intel_uncore videobuf2_v4l2 intel_lpss_pci pcspkr cfg80211 r8169 mtd snd_hda_core snd_usbmidi_lib videobuf2_common intel_lpss nvidia_drm(POE) realtek rfkill nvidia_modeset(POE) i2c_i801 mei_me i2c_smbus snd_rawmidi videodev mei idma64 snd_hwdep snd_seq_device processor_thermal_device_pci_legacy snd_pcm mc processor_thermal_device processor_thermal_rfim i915 snd_timer thunderbolt nvidia(POE) processor_thermal_mbox snd ttm processor_thermal_rapl intel_pmt ucsi_acpi intel_rapl_common typec_ucsi intel_gtt soundcore intel_soc_dts_iosf tpm_crb typec i2c_hid_acpi tpm_tis roles wmi mac_hid i2c_hid tpm_tis_core int3403_thermal int340x_thermal_zone tpm intel_hid video rng_core sparse_keymap int3400_thermal asus_wireless acpi_pad acpi_thermal_rel ipmi_devintf ipmi_msghandler sg fuse crypto_user ip_tables x_tables usbhid btrfs
Mar 20 16:05:48 SrisGamingLaptop kernel:  blake2b_generic libcrc32c crc32c_generic xor raid6_pq serio_raw atkbd libps2 xhci_pci xhci_pci_renesas vmd i8042 serio crc32c_intel
Mar 20 16:05:48 SrisGamingLaptop kernel: CPU: 3 PID: 354 Comm: systemd-udevd Tainted: P     U     OE     5.16.14-1-MANJARO #1 6844a1b2380ad85145cd2835aa27097ec1c85aa7
Mar 20 16:05:48 SrisGamingLaptop kernel: Hardware name: ASUSTeK COMPUTER INC. ASUS TUF Gaming F15 FX506HM_FX506HM/FX506HM, BIOS FX506HM.311 12/15/2021
Mar 20 16:05:48 SrisGamingLaptop kernel: Call Trace:
Mar 20 16:05:48 SrisGamingLaptop kernel:  <TASK>
Mar 20 16:05:48 SrisGamingLaptop kernel:  dump_stack_lvl+0x48/0x66
Mar 20 16:05:48 SrisGamingLaptop kernel:  bad_page.cold+0x63/0x94
Mar 20 16:05:48 SrisGamingLaptop kernel:  free_pcppages_bulk+0x1f2/0x380
Mar 20 16:05:48 SrisGamingLaptop kernel:  free_unref_page+0xbd/0x140
Mar 20 16:05:48 SrisGamingLaptop kernel:  mt76_dma_rx_cleanup+0x94/0x120 [mt76 d9d8aa3355f86e14f45fe55232b4e552eae06fe6]
Mar 20 16:05:48 SrisGamingLaptop kernel:  mt7921_wpdma_reset+0xb9/0x1c0 [mt7921e e8655cde78940a573b130cb3ca13c85ca140634d]
Mar 20 16:05:48 SrisGamingLaptop kernel:  mt7921_register_device+0x328/0x5e0 [mt7921_common f008fb774bc0ea33f728e7d984c7a5ac19a9b824]
Mar 20 16:05:48 SrisGamingLaptop kernel:  mt7921_pci_probe+0x1f1/0x230 [mt7921e e8655cde78940a573b130cb3ca13c85ca140634d]
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? __pm_runtime_resume+0x58/0x80
Mar 20 16:05:48 SrisGamingLaptop kernel:  local_pci_probe+0x42/0x90
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? pci_match_device+0xdf/0x140
Mar 20 16:05:48 SrisGamingLaptop kernel:  pci_device_probe+0xcf/0x1c0
Mar 20 16:05:48 SrisGamingLaptop kernel:  really_probe+0x200/0x400
Mar 20 16:05:48 SrisGamingLaptop kernel:  __driver_probe_device+0x112/0x190
Mar 20 16:05:48 SrisGamingLaptop kernel:  driver_probe_device+0x1e/0x90
Mar 20 16:05:48 SrisGamingLaptop kernel:  __driver_attach+0xc8/0x1e0
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? __device_attach_driver+0xf0/0xf0
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? __device_attach_driver+0xf0/0xf0
Mar 20 16:05:48 SrisGamingLaptop kernel:  bus_for_each_dev+0x8a/0xe0
Mar 20 16:05:48 SrisGamingLaptop kernel:  bus_add_driver+0x154/0x200
Mar 20 16:05:48 SrisGamingLaptop kernel:  driver_register+0x8f/0xf0
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? 0xffffffffc2dfa000
Mar 20 16:05:48 SrisGamingLaptop kernel:  do_one_initcall+0x54/0x220
Mar 20 16:05:48 SrisGamingLaptop kernel:  do_init_module+0x4c/0x250
Mar 20 16:05:48 SrisGamingLaptop kernel:  load_module+0x2617/0x27f0
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? __do_sys_init_module+0x12e/0x1b0
Mar 20 16:05:48 SrisGamingLaptop kernel:  __do_sys_init_module+0x12e/0x1b0
Mar 20 16:05:48 SrisGamingLaptop kernel:  do_syscall_64+0x59/0x90
Mar 20 16:05:48 SrisGamingLaptop kernel:  ? exc_page_fault+0x72/0x180
Mar 20 16:05:48 SrisGamingLaptop kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Mar 20 16:05:48 SrisGamingLaptop kernel: RIP: 0033:0x7f1f926006ae
Mar 20 16:05:48 SrisGamingLaptop kernel: Code: 48 8b 0d ed 66 0e 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ba 66 0e 00 f7 d8 64 89 01 48
Mar 20 16:05:48 SrisGamingLaptop kernel: RSP: 002b:00007ffdf1a3a9d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
Mar 20 16:05:48 SrisGamingLaptop kernel: RAX: ffffffffffffffda RBX: 00005621431630d0 RCX: 00007f1f926006ae
Mar 20 16:05:48 SrisGamingLaptop kernel: RDX: 00007f1f9275d32c RSI: 000000000002b4e7 RDI: 0000562143a81890
Mar 20 16:05:48 SrisGamingLaptop kernel: RBP: 0000562143a81890 R08: 0000562143267db0 R09: 00007ffdf1a37d67
Mar 20 16:05:48 SrisGamingLaptop kernel: R10: 0000000000000005 R11: 0000000000000246 R12: 00007f1f9275d32c
Mar 20 16:05:48 SrisGamingLaptop kernel: R13: 000056214315f9c0 R14: 00005621431630d0 R15: 0000562143163d10
Mar 20 16:05:48 SrisGamingLaptop kernel:  </TASK>
Mar 20 16:05:48 SrisGamingLaptop kernel: BUG: Bad page state in process systemd-udevd  pfn:158fc8

Some more relevant details:

This screenshot is taken on the stock kernel. The kernel I’m having problems with is 5.16.14-1 and it seems installing it from Kernels page has installed the following packages.

linux516 and nvidia516

I guess that is the problem, as I actually have a Dual GPU laptop and only updating the nvidia package might have caused it, but I’m not sure.

As to why I went with installation, I don’t have any problems with the stock kernel. Just upgraded so that I can learn the process. Because I got issues, I reverted back to the stock kernel.

Can someone please explain what is going on here? Here’s a list of problems I have with newer kernel.

  1. After every reboot or shutdown, I get the above mentioned crash.
  2. On wake-up, bluetooth gets disabled.
  3. Sometimes CPU suddenly spikes to 100% and everything hangs for a few seconds.

And btw, forgot to mention, I’m on Wayland and not on Xorg. This is because I have a 4k display and Firefox is so laggy in terms of scrolling content in X on large resolutions. Also, I have two displays and fractional per display scaling is not supported in X.

Please do let me know if in case you need any extra details apart from these.

Thanks in advance!