Kernel error with Kernel 5.14 when hibernating

Hey all,

I noticed that I regularly get kernel errors (see later). It seems they always get triggered before I hibernate my desktop pc.

While reading up on these errors (starting with “–[cut here]–”, it was suggested to report them to the upstream kernel, which I would like to. However, I’m unsure on where to report them.
Would the iommu mailing list mentioned here be the correct place?

-- Journal begins at Thu 2021-08-12 11:07:33 CEST, ends at Sat 2021-09-11 18:39:28 CEST. --
Sep 11 00:21:46 pc-name kernel: ------------[ cut here ]------------
Sep 11 00:21:46 pc-name kernel: WARNING: CPU: 2 PID: 555 at drivers/iommu/dma-iommu.c:504 __iommu_dma_unmap_swiotlb+0x79/0x90
Sep 11 00:21:46 pc-name kernel: Modules linked in: snd_seq_dummy snd_seq snd_seq_device ccm joydev mousedev amdgpu nct6775 hwmon_vid intel_rapl_msr intel_rapl_common rtl8192ee btcoexist snd_hda_codec_realtek rtl_pci rtlwifi snd_hda_codec_generic edac_mce_amd ledtrig_audio snd_hda_codec_hdmi gpu_sched ppdev mac80211 kvm_amd snd_hda_intel wmi_bmof i2c_algo_bit snd_intel_dspcfg snd_intel_sdw_acpi drm_ttm_helper kvm snd_hda_codec ttm irqbypass cfg80211 drm_kms_helper crct10dif_pclmul nls_iso8859_1 snd_hda_core crc32_pclmul cec ghash_clmulni_intel vfat fat snd_hwdep agpgart r8169 snd_pcm syscopyarea sysfillrect realtek aesni_intel mdio_devres snd_timer ccp snd crypto_simd rfkill cryptd sysimgblt rapl fb_sys_fops pcspkr libphy soundcore k10temp i2c_piix4 libarc4 rng_core parport_pc parport gpio_amdpt wmi gpio_generic pinctrl_amd mac_hid acpi_cpufreq uinput drm i2c_dev crypto_user fuse ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 uas usb_storage usbhid sr_mod crc32c_intel cdrom xhci_pci
Sep 11 00:21:46 pc-name kernel: CPU: 2 PID: 555 Comm: NetworkManager Not tainted 5.14.0-0-MANJARO #1
Sep 11 00:21:46 pc-name kernel: Hardware name: Micro-Star International Co., Ltd MS-7B86/B450-A PRO MAX (MS-7B86), BIOS M.C0 02/03/2021
Sep 11 00:21:46 pc-name kernel: RIP: 0010:__iommu_dma_unmap_swiotlb+0x79/0x90
Sep 11 00:21:46 pc-name kernel: Code: 2b 48 3b 28 72 26 48 3b 68 08 73 20 49 89 d8 44 89 f1 5b 4c 89 ea 48 89 ee 4c 89 e7 5d 41 5c 41 5d 41 5e 41 5f e9 87 8b a6 ff <0f> 0b 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00
Sep 11 00:21:46 pc-name kernel: RSP: 0018:ffffaac982d57288 EFLAGS: 00010046
Sep 11 00:21:46 pc-name kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000015
Sep 11 00:21:46 pc-name kernel: RDX: 0000000040000000 RSI: 0000000000000000 RDI: ffffaac982d57268
Sep 11 00:21:46 pc-name kernel: RBP: ffff9eadd4060800 R08: 0000000000000000 R09: 0000000000000000
Sep 11 00:21:46 pc-name kernel: R10: 0000000000000081 R11: 0000000000000001 R12: ffff9eadc17fb0c8
Sep 11 00:21:46 pc-name kernel: R13: 0000000000000400 R14: 0000000000000001 R15: 0000000000000000
Sep 11 00:21:46 pc-name kernel: FS:  00007fad5f695980(0000) GS:ffff9eb0eea80000(0000) knlGS:0000000000000000
Sep 11 00:21:46 pc-name kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 11 00:21:46 pc-name kernel: CR2: 00007ff9c529f180 CR3: 00000001085be000 CR4: 0000000000350ee0
Sep 11 00:21:46 pc-name kernel: Call Trace:
Sep 11 00:21:46 pc-name kernel:  rtl_pci_reset_trx_ring+0x18d/0x370 [rtl_pci]
Sep 11 00:21:46 pc-name kernel:  rtl_pci_start+0x1d/0x180 [rtl_pci]
Sep 11 00:21:46 pc-name kernel:  rtl_op_start+0x52/0x80 [rtlwifi]
Sep 11 00:21:46 pc-name kernel:  drv_start+0x3f/0x100 [mac80211]
Sep 11 00:21:46 pc-name kernel:  ieee80211_do_open+0x47c/0x900 [mac80211]
Sep 11 00:21:46 pc-name kernel:  ieee80211_open+0x67/0x90 [mac80211]
Sep 11 00:21:46 pc-name kernel:  __dev_open+0xfb/0x1b0
Sep 11 00:21:46 pc-name kernel:  __dev_change_flags+0x1d7/0x240
Sep 11 00:21:46 pc-name kernel:  dev_change_flags+0x21/0x60
Sep 11 00:21:46 pc-name kernel:  do_setlink+0x2d2/0x1180
Sep 11 00:21:46 pc-name kernel:  ? __nla_validate_parse+0x65/0xbf0
Sep 11 00:21:46 pc-name kernel:  __rtnl_newlink+0x658/0xa10
Sep 11 00:21:46 pc-name kernel:  ? nla_put+0x28/0x40
Sep 11 00:21:46 pc-name kernel:  rtnl_newlink+0x44/0x70
Sep 11 00:21:46 pc-name kernel:  rtnetlink_rcv_msg+0x155/0x3a0
Sep 11 00:21:46 pc-name kernel:  ? rtnl_calcit.isra.0+0x150/0x150
Sep 11 00:21:46 pc-name kernel:  netlink_rcv_skb+0x5b/0x100
Sep 11 00:21:46 pc-name kernel:  netlink_unicast+0x23e/0x350
Sep 11 00:21:46 pc-name kernel:  netlink_sendmsg+0x23b/0x480
Sep 11 00:21:46 pc-name kernel:  ? __check_object_size+0x46/0x150
Sep 11 00:21:46 pc-name kernel:  sock_sendmsg+0x5e/0x60
Sep 11 00:21:46 pc-name kernel:  ____sys_sendmsg+0x258/0x2a0
Sep 11 00:21:46 pc-name kernel:  ___sys_sendmsg+0xa3/0xf0
Sep 11 00:21:46 pc-name kernel:  __sys_sendmsg+0x81/0xd0
Sep 11 00:21:46 pc-name kernel:  do_syscall_64+0x3b/0x90
Sep 11 00:21:46 pc-name kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Sep 11 00:21:46 pc-name kernel: RIP: 0033:0x7fad6043556d
Sep 11 00:21:46 pc-name kernel: Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 fa ee ff ff 8b 54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 33 44 89 c7 48 89 44 24 08 e8 4e ef ff ff 48
Sep 11 00:21:46 pc-name kernel: RSP: 002b:00007ffd57ec2b90 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
Sep 11 00:21:46 pc-name kernel: RAX: ffffffffffffffda RBX: 0000000000000046 RCX: 00007fad6043556d
Sep 11 00:21:46 pc-name kernel: RDX: 0000000000000000 RSI: 00007ffd57ec2bd0 RDI: 000000000000000c
Sep 11 00:21:46 pc-name kernel: RBP: 0000560be5112030 R08: 0000000000000000 R09: 0000000000000000
Sep 11 00:21:46 pc-name kernel: R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
Sep 11 00:21:46 pc-name kernel: R13: 00007ffd57ec2d20 R14: 00007ffd57ec2d1c R15: 0000000000000000
Sep 11 00:21:46 pc-name kernel: ---[ end trace edd34a412ad6aded ]---
...
Sep 11 14:59:41 pc-name kernel: ------------[ cut here ]------------
Sep 11 14:59:41 pc-name kernel: WARNING: CPU: 6 PID: 555 at drivers/iommu/dma-iommu.c:504 __iommu_dma_unmap_swiotlb+0x79/0x90
Sep 11 14:59:41 pc-name kernel: Modules linked in: snd_seq_dummy snd_seq snd_seq_device ccm joydev mousedev amdgpu nct6775 hwmon_vid intel_rapl_msr intel_rapl_common rtl8192ee btcoexist snd_hda_codec_realtek rtl_pci rtlwifi snd_hda_codec_generic edac_mce_amd ledtrig_audio snd_hda_codec_hdmi gpu_sched ppdev mac80211 kvm_amd snd_hda_intel wmi_bmof i2c_algo_bit snd_intel_dspcfg snd_intel_sdw_acpi drm_ttm_helper kvm snd_hda_codec ttm irqbypass cfg80211 drm_kms_helper crct10dif_pclmul nls_iso8859_1 snd_hda_core crc32_pclmul cec ghash_clmulni_intel vfat fat snd_hwdep agpgart r8169 snd_pcm syscopyarea sysfillrect realtek aesni_intel mdio_devres snd_timer ccp snd crypto_simd rfkill cryptd sysimgblt rapl fb_sys_fops pcspkr libphy soundcore k10temp i2c_piix4 libarc4 rng_core parport_pc parport gpio_amdpt wmi gpio_generic pinctrl_amd mac_hid acpi_cpufreq uinput drm i2c_dev crypto_user fuse ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 uas usb_storage usbhid sr_mod crc32c_intel cdrom xhci_pci
Sep 11 14:59:41 pc-name kernel: CPU: 6 PID: 555 Comm: NetworkManager Tainted: G        W         5.14.0-0-MANJARO #1
Sep 11 14:59:41 pc-name kernel: Hardware name: Micro-Star International Co., Ltd MS-7B86/B450-A PRO MAX (MS-7B86), BIOS M.C0 02/03/2021
Sep 11 14:59:41 pc-name kernel: RIP: 0010:__iommu_dma_unmap_swiotlb+0x79/0x90
Sep 11 14:59:41 pc-name kernel: Code: 2b 48 3b 28 72 26 48 3b 68 08 73 20 49 89 d8 44 89 f1 5b 4c 89 ea 48 89 ee 4c 89 e7 5d 41 5c 41 5d 41 5e 41 5f e9 87 8b a6 ff <0f> 0b 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00
Sep 11 14:59:41 pc-name kernel: RSP: 0018:ffffaac982d57288 EFLAGS: 00010046
Sep 11 14:59:41 pc-name kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000015
Sep 11 14:59:41 pc-name kernel: RDX: 0000000040000000 RSI: 0000000000000000 RDI: ffffaac982d57268
Sep 11 14:59:41 pc-name kernel: RBP: ffff9eadd4060800 R08: 0000000000000000 R09: 0000000000000000
Sep 11 14:59:41 pc-name kernel: R10: 0000000000000081 R11: 0000000000000001 R12: ffff9eadc17fb0c8
Sep 11 14:59:41 pc-name kernel: R13: 0000000000000400 R14: 0000000000000001 R15: 0000000000000000
Sep 11 14:59:41 pc-name kernel: FS:  00007fad5f695980(0000) GS:ffff9eb0eeb80000(0000) knlGS:0000000000000000
Sep 11 14:59:41 pc-name kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 11 14:59:41 pc-name kernel: CR2: 0000560be5234208 CR3: 00000001085be000 CR4: 0000000000350ee0
Sep 11 14:59:41 pc-name kernel: Call Trace:
Sep 11 14:59:41 pc-name kernel:  rtl_pci_reset_trx_ring+0x18d/0x370 [rtl_pci]
Sep 11 14:59:41 pc-name kernel:  rtl_pci_start+0x1d/0x180 [rtl_pci]
Sep 11 14:59:41 pc-name kernel:  rtl_op_start+0x52/0x80 [rtlwifi]
Sep 11 14:59:41 pc-name kernel:  drv_start+0x3f/0x100 [mac80211]
Sep 11 14:59:41 pc-name kernel:  ieee80211_do_open+0x47c/0x900 [mac80211]
Sep 11 14:59:41 pc-name kernel:  ieee80211_open+0x67/0x90 [mac80211]
Sep 11 14:59:41 pc-name kernel:  __dev_open+0xfb/0x1b0
Sep 11 14:59:41 pc-name kernel:  __dev_change_flags+0x1d7/0x240
Sep 11 14:59:41 pc-name kernel:  dev_change_flags+0x21/0x60
Sep 11 14:59:41 pc-name kernel:  do_setlink+0x2d2/0x1180
Sep 11 14:59:41 pc-name kernel:  ? __nla_validate_parse+0x65/0xbf0
Sep 11 14:59:41 pc-name kernel:  __rtnl_newlink+0x658/0xa10
Sep 11 14:59:41 pc-name kernel:  ? nla_put+0x28/0x40
Sep 11 14:59:41 pc-name kernel:  rtnl_newlink+0x44/0x70
Sep 11 14:59:41 pc-name kernel:  rtnetlink_rcv_msg+0x155/0x3a0
Sep 11 14:59:41 pc-name kernel:  ? rtnl_calcit.isra.0+0x150/0x150
Sep 11 14:59:41 pc-name kernel:  netlink_rcv_skb+0x5b/0x100
Sep 11 14:59:41 pc-name kernel:  netlink_unicast+0x23e/0x350
Sep 11 14:59:41 pc-name kernel:  netlink_sendmsg+0x23b/0x480
Sep 11 14:59:41 pc-name kernel:  ? __check_object_size+0x46/0x150
Sep 11 14:59:41 pc-name kernel:  sock_sendmsg+0x5e/0x60
Sep 11 14:59:41 pc-name kernel:  ____sys_sendmsg+0x258/0x2a0
Sep 11 14:59:41 pc-name kernel:  ___sys_sendmsg+0xa3/0xf0
Sep 11 14:59:41 pc-name kernel:  __sys_sendmsg+0x81/0xd0
Sep 11 14:59:41 pc-name kernel:  do_syscall_64+0x3b/0x90
Sep 11 14:59:41 pc-name kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Sep 11 14:59:41 pc-name kernel: RIP: 0033:0x7fad6043556d
Sep 11 14:59:41 pc-name kernel: Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 fa ee ff ff 8b 54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 33 44 89 c7 48 89 44 24 08 e8 4e ef ff ff 48
Sep 11 14:59:41 pc-name kernel: RSP: 002b:00007ffd57ec2b90 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
Sep 11 14:59:41 pc-name kernel: RAX: ffffffffffffffda RBX: 0000000000000092 RCX: 00007fad6043556d
Sep 11 14:59:41 pc-name kernel: RDX: 0000000000000000 RSI: 00007ffd57ec2bd0 RDI: 000000000000000c
Sep 11 14:59:41 pc-name kernel: RBP: 0000560be5112030 R08: 0000000000000000 R09: 0000000000000000
Sep 11 14:59:41 pc-name kernel: R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
Sep 11 14:59:41 pc-name kernel: R13: 00007ffd57ec2d20 R14: 00007ffd57ec2d1c R15: 0000000000000000
Sep 11 14:59:41 pc-name kernel: ---[ end trace edd34a412ad6adee ]---
1 Like

Yes.

But before you do that, please read this first:

Especially the section Linux has multiple kernels and maybe the solution to your problem is simply an LTS kernel instead of filing bugs…

:crossed_fingers:

Trying other kernels was actually an idea I haven’t thought about, since I saw it for several of the previous kernels.
Now I finally got around to try various kernels and it turned out, that it doesn’t happen with kernel 5.4 LTS, but with 5.10 LTS and 5.13 and 5.14.

However, I’m still gonna contact the mailing lists, since it could be that some of the changes after 5.4 introduced that problem.

PS: Thank you for the Tutorial/HowTo. I knew a lot already, but it was still quite informative.

1 Like

I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.