FS#72059 - Kernel panics with sound in 5.14.1.arch1-1

Attached to Project: Arch Linux
Opened by Jean-Michaël Celerier (jcelerier) - Tuesday, 07 September 2021, 10:31 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 23 September 2021, 00:26 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Hi,

Kernel: 5.14.1.arch1-1
Hardware: RME HDSPe Multiface II (snd_hdsp module)

With 5.14.1 in testing just launching alsamixer causes the panic that I put in attachment, in snd_dma_buffer_mmap.

Also, my USB devices keep restarting and sometimes just don't work when rebooting, e.g. I had to unplug / replug my USB keyboard a few times before being able to type and even then, dmesg fills up with "restarting SuperSpeed USB device number <...> using xhci_hcd" messages. Some audio software are able to launch but then get stuck upon exit (even with kill -9, I have to reboot the machine with the hardware button to be able to reboot). So maybe there's some deeper memory corruption.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 23 September 2021, 00:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux 5.14.7.arch1-1
Comment by Guy B (sushi2503) - Monday, 20 September 2021, 16:06 GMT
Hi,

Kernel: 5.14.1 to 6.arch1-1
Hardware. RME HDSP 9632

I'm affected too by a kernel oops about snd_dma_buffer_mmap.

Crash report:

BUG: kernel NULL pointer dereference, address: 0000000000000000
sep 15 13:02:10 Cockpit kernel: #PF: supervisor read access in kernel mode
sep 15 13:02:10 Cockpit kernel: #PF: error_code(0x0000) - not-present page
sep 15 13:02:10 Cockpit kernel: PGD 0 P4D 0
sep 15 13:02:10 Cockpit kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
sep 15 13:02:10 Cockpit kernel: CPU: 1 PID: 1293 Comm: deadbeef-stream Not tainted 5.14.6-arch1-1 #1 7079317413bd7f23458a4f12074dee48a4433dad
sep 15 13:02:10 Cockpit kernel: Hardware name: Gigabyte Technology Co., Ltd. GA-MA770-UD3/GA-MA770-UD3, BIOS FKb 07/08/2010
sep 15 13:02:10 Cockpit kernel: RIP: 0010:snd_dma_buffer_mmap+0x5/0x40 [snd_pcm]
sep 15 13:02:10 Cockpit kernel: Code: 83 fa 06 77 1c 48 8b 04 c5 60 85 15 c1 48 85 c0 74 0e 48 8b 40 08 48 85 c0 74 05 e9 b5 c0 ca f0 c3 0f 0b c3 90 0f 1f 44 00 00 <48> 63 07 8d 50 ff 83 fa 06 77 1b 48 8b 04 c5 60 85 15 c1 48 85 c0
sep 15 13:02:10 Cockpit kernel: RSP: 0018:ffffa1e340d23d38 EFLAGS: 00010246
sep 15 13:02:10 Cockpit kernel: RAX: ffff8b52dc988800 RBX: ffff8b52c24be400 RCX: 0000000000000000
sep 15 13:02:10 Cockpit kernel: RDX: 00000000001af000 RSI: ffff8b52e354fed8 RDI: 0000000000000000
sep 15 13:02:10 Cockpit kernel: RBP: 00007fc3a739e000 R08: 00000000040400fb R09: 0000000000001000
sep 15 13:02:10 Cockpit kernel: R10: ffff8b52e023f258 R11: 00007fc3a9e04000 R12: ffff8b52c2539b20
sep 15 13:02:10 Cockpit kernel: R13: 0000000000000008 R14: ffff8b52e354fed8 R15: ffff8b52c1e26a40
sep 15 13:02:10 Cockpit kernel: FS: 00007fc38ffff640(0000) GS:ffff8b53e7c40000(0000) knlGS:0000000000000000
sep 15 13:02:10 Cockpit kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
sep 15 13:02:10 Cockpit kernel: CR2: 0000000000000000 CR3: 00000001234f6000 CR4: 00000000000006e0
sep 15 13:02:10 Cockpit kernel: Call Trace:
sep 15 13:02:10 Cockpit kernel: snd_pcm_mmap_data+0x127/0x140 [snd_pcm 52883601536316a338aa37d982c037da02ab8be0]
sep 15 13:02:10 Cockpit kernel: mmap_region+0x415/0x690
sep 15 13:02:10 Cockpit kernel: do_mmap+0x35f/0x550
sep 15 13:02:10 Cockpit kernel: ? security_mmap_file+0x81/0xb0
sep 15 13:02:10 Cockpit kernel: vm_mmap_pgoff+0xe2/0x190
sep 15 13:02:10 Cockpit kernel: ? syscall_exit_to_user_mode+0x23/0x40
sep 15 13:02:10 Cockpit kernel: ksys_mmap_pgoff+0x1c8/0x230
sep 15 13:02:10 Cockpit kernel: do_syscall_64+0x5c/0x80
sep 15 13:02:10 Cockpit kernel: ? do_syscall_64+0x69/0x80
sep 15 13:02:10 Cockpit kernel: ? do_syscall_64+0x69/0x80
sep 15 13:02:10 Cockpit kernel: ? syscall_exit_to_user_mode+0x23/0x40
sep 15 13:02:10 Cockpit kernel: ? do_syscall_64+0x69/0x80
sep 15 13:02:10 Cockpit kernel: ? do_syscall_64+0x69/0x80
sep 15 13:02:10 Cockpit kernel: entry_SYSCALL_64_after_hwframe+0x44/0xae
sep 15 13:02:10 Cockpit kernel: RIP: 0033:0x7fc3a9b7b336
sep 15 13:02:10 Cockpit kernel: Code: 01 00 66 90 f3 0f 1e fa 41 f7 c1 ff 0f 00 00 75 2b 55 48 89 fd 53 89 cb 48 85 ff 74 37 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 62 5b 5d c3 0f 1f 80 00 00 00 00 48 8b 05 01
sep 15 13:02:10 Cockpit kernel: RSP: 002b:00007fc38fffe378 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
sep 15 13:02:10 Cockpit kernel: RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fc3a9b7b336
sep 15 13:02:10 Cockpit kernel: RDX: 0000000000000003 RSI: 0000000000001000 RDI: 0000000000000000
sep 15 13:02:10 Cockpit kernel: RBP: 0000000000000000 R08: 0000000000000010 R09: 0000000000000000
sep 15 13:02:10 Cockpit kernel: R10: 0000000000000001 R11: 0000000000000246 R12: 00007fc37404e500
sep 15 13:02:10 Cockpit kernel: R13: 00000000fffffffe R14: 0000000000000001 R15: 0000000000000000
sep 15 13:02:10 Cockpit kernel: Modules linked in: 8021q garp mrp stp llc hid_logitech_hidpp ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_limit xt_addrtype xt_tcpudp snd_hda_codec_hdmi hid_logitech_dj snd_hda_intel snd_intel_dspcfg xt_conntrack snd_intel_sdw_acpi snd_hdsp snd_hda_codec snd_rawmidi snd_hda_core snd_seq_device snd_hwdep ip6table_filter snd_pcm r8169 ip6_tables snd_timer radeon usbhid realtek snd nf_conntrack_netbios_ns mdio_devres nf_conntrack_broadcast edac_mce_amd libphy soundcore nf_nat_ftp nf_nat acpi_cpufreq nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter it87 hwmon_vid fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 ata_generic pata_acpi pata_atiixp sr_mod cdrom amdgpu drm_ttm_helper ttm agpgart gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm
sep 15 13:02:10 Cockpit kernel: CR2: 0000000000000000
sep 15 13:02:10 Cockpit kernel: ---[ end trace db72d421f9015bc8 ]---
sep 15 13:02:10 Cockpit kernel: RIP: 0010:snd_dma_buffer_mmap+0x5/0x40 [snd_pcm]
sep 15 13:02:10 Cockpit kernel: Code: 83 fa 06 77 1c 48 8b 04 c5 60 85 15 c1 48 85 c0 74 0e 48 8b 40 08 48 85 c0 74 05 e9 b5 c0 ca f0 c3 0f 0b c3 90 0f 1f 44 00 00 <48> 63 07 8d 50 ff 83 fa 06 77 1b 48 8b 04 c5 60 85 15 c1 48 85 c0
sep 15 13:02:10 Cockpit kernel: RSP: 0018:ffffa1e340d23d38 EFLAGS: 00010246
sep 15 13:02:10 Cockpit kernel: RAX: ffff8b52dc988800 RBX: ffff8b52c24be400 RCX: 0000000000000000
sep 15 13:02:10 Cockpit kernel: RDX: 00000000001af000 RSI: ffff8b52e354fed8 RDI: 0000000000000000
sep 15 13:02:10 Cockpit kernel: RBP: 00007fc3a739e000 R08: 00000000040400fb R09: 0000000000001000
sep 15 13:02:10 Cockpit kernel: R10: ffff8b52e023f258 R11: 00007fc3a9e04000 R12: ffff8b52c2539b20
sep 15 13:02:10 Cockpit kernel: R13: 0000000000000008 R14: ffff8b52e354fed8 R15: ffff8b52c1e26a40
sep 15 13:02:10 Cockpit kernel: FS: 00007fc38ffff640(0000) GS:ffff8b53e7c40000(0000) knlGS:0000000000000000
sep 15 13:02:10 Cockpit kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
sep 15 13:02:10 Cockpit kernel: CR2: 0000000000000000 CR3: 00000001234f6000 CR4: 00000000000006e0

If I launch a media player like Deadbeef or mpv it freez the player not the all computer and the only way to get sound back is to revert to kernel 5.13.13.arch1-1.

Sorry if I posted at the wrong place (it's my first report) but it looks like the same problem.

I was advised to post here by a reply from Deadbeef player bug report :

https://github.com/DeaDBeeF-Player/deadbeef/issues/2674

Let me know if you need more info.

Thanks.
Comment by Jan Alexander Steffens (heftig) - Monday, 20 September 2021, 17:57 GMT Comment by Guy B (sushi2503) - Monday, 20 September 2021, 19:03 GMT
Sorry but I never patched a kernel myself. I'm reading about but sounds not that easy for me.
Comment by Jan Alexander Steffens (heftig) - Monday, 20 September 2021, 20:02 GMT Comment by Guy B (sushi2503) - Monday, 20 September 2021, 20:51 GMT
Thank you very much but it's still the same :

BUG: kernel NULL pointer dereference, address: 0000000000000000
sep 20 22:41:45 Cockpit kernel: #PF: supervisor read access in kernel mode
sep 20 22:41:45 Cockpit kernel: #PF: error_code(0x0000) - not-present page
sep 20 22:41:45 Cockpit kernel: PGD 0 P4D 0
sep 20 22:41:45 Cockpit kernel: Oops: 0000 [#1] PREEMPT SMP NOPTI
sep 20 22:41:45 Cockpit kernel: CPU: 5 PID: 1504 Comm: mpv Not tainted 5.14.6-arch1-1.1 #1 76e8a05aa159dc9c98611ecf740764c290fd62b8
sep 20 22:41:45 Cockpit kernel: Hardware name: Gigabyte Technology Co., Ltd. GA-MA770-UD3/GA-MA770-UD3, BIOS FKb 07/08/2010
sep 20 22:41:45 Cockpit kernel: RIP: 0010:snd_dma_buffer_mmap+0x5/0x40 [snd_pcm]
sep 20 22:41:45 Cockpit kernel: Code: 83 fa 06 77 1c 48 8b 04 c5 60 65 d4 c0 48 85 c0 74 0e 48 8b 40 08 48 85 c0 74 05 e9 a5 e0 0b ee c3 0f 0b c3 90 0f 1f 44 00 00 <48> 63 07 8d 50 ff 83 fa 06 77 1b 48 8b 04 c5 60 65 d4 c0 48 85 c0
sep 20 22:41:45 Cockpit kernel: RSP: 0018:ffffaed340f5fd60 EFLAGS: 00010246
sep 20 22:41:45 Cockpit kernel: RAX: ffff8cddc59d0000 RBX: ffff8cdd82ea6600 RCX: 0000000000000000
sep 20 22:41:45 Cockpit kernel: RDX: 00000000001ac000 RSI: ffff8cddc064c190 RDI: 0000000000000000
sep 20 22:41:45 Cockpit kernel: RBP: 00007fce2e387000 R08: 00000000040400fb R09: 0000000000004000
sep 20 22:41:45 Cockpit kernel: R10: ffff8cddab2eda28 R11: 00007fce53307000 R12: ffff8cddc064c5a8
sep 20 22:41:45 Cockpit kernel: R13: 0000000000000008 R14: ffff8cddc064c190 R15: ffff8cdd81c05940
sep 20 22:41:45 Cockpit kernel: FS: 00007fce3edcc080(0000) GS:ffff8cdea7d40000(0000) knlGS:0000000000000000
sep 20 22:41:45 Cockpit kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
sep 20 22:41:45 Cockpit kernel: CR2: 0000000000000000 CR3: 00000001201b2000 CR4: 00000000000006e0
sep 20 22:41:45 Cockpit kernel: Call Trace:
sep 20 22:41:45 Cockpit kernel: snd_pcm_mmap_data+0x127/0x140 [snd_pcm 239c8ffc9a2090e6bd3659bc0353c791c49668d2]
sep 20 22:41:45 Cockpit kernel: mmap_region+0x415/0x690
sep 20 22:41:45 Cockpit kernel: do_mmap+0x35f/0x550
sep 20 22:41:45 Cockpit kernel: ? security_mmap_file+0x81/0xb0
sep 20 22:41:45 Cockpit kernel: vm_mmap_pgoff+0xe2/0x190
sep 20 22:41:45 Cockpit kernel: ksys_mmap_pgoff+0x1c8/0x230
sep 20 22:41:45 Cockpit kernel: do_syscall_64+0x5c/0x80
sep 20 22:41:45 Cockpit kernel: ? syscall_exit_to_user_mode+0x23/0x40
sep 20 22:41:45 Cockpit kernel: ? do_syscall_64+0x69/0x80
sep 20 22:41:45 Cockpit kernel: entry_SYSCALL_64_after_hwframe+0x44/0xae
sep 20 22:41:45 Cockpit kernel: RIP: 0033:0x7fce50497336
sep 20 22:41:45 Cockpit kernel: Code: 01 00 66 90 f3 0f 1e fa 41 f7 c1 ff 0f 00 00 75 2b 55 48 89 fd 53 89 cb 48 85 ff 74 37 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 62 5b 5d c3 0f 1f 80 00 00 00 00 48 8b 05 01
sep 20 22:41:45 Cockpit kernel: RSP: 002b:00007ffd56f0b438 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
sep 20 22:41:45 Cockpit kernel: RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fce50497336
sep 20 22:41:45 Cockpit kernel: RDX: 0000000000000003 RSI: 0000000000004000 RDI: 0000000000000000
sep 20 22:41:45 Cockpit kernel: RBP: 0000000000000000 R08: 0000000000000012 R09: 0000000000000000
sep 20 22:41:45 Cockpit kernel: R10: 0000000000000001 R11: 0000000000000246 R12: 00005596a5170eb0
sep 20 22:41:45 Cockpit kernel: R13: 00000000fffffffe R14: 0000000000000001 R15: 0000000000000000
sep 20 22:41:45 Cockpit kernel: Modules linked in: 8021q garp mrp stp llc hid_logitech_hidpp ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT nf_reject_ipv4 snd_hda_codec_hdmi xt_LOG nf_log_syslog snd_hda_intel xt_limit snd_intel_dspcfg snd_intel_sdw_acpi xt_addrtype snd_hda_codec xt_tcpudp snd_hdsp snd_hda_core snd_rawmidi hid_logitech_dj snd_seq_device snd_hwdep xt_conntrack r8169 radeon realtek snd_pcm edac_mce_amd ip6table_filter mdio_devres ip6_tables snd_timer snd nf_conntrack_netbios_ns usbhid nf_conntrack_broadcast libphy soundcore nf_nat_ftp nf_nat acpi_cpufreq nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter it87 hwmon_vid fuse bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 ata_generic pata_acpi pata_atiixp sr_mod cdrom amdgpu drm_ttm_helper ttm agpgart gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm
sep 20 22:41:45 Cockpit kernel: CR2: 0000000000000000
sep 20 22:41:45 Cockpit kernel: ---[ end trace 759c24f69dcd7afa ]---
sep 20 22:41:45 Cockpit kernel: RIP: 0010:snd_dma_buffer_mmap+0x5/0x40 [snd_pcm]
sep 20 22:41:45 Cockpit kernel: Code: 83 fa 06 77 1c 48 8b 04 c5 60 65 d4 c0 48 85 c0 74 0e 48 8b 40 08 48 85 c0 74 05 e9 a5 e0 0b ee c3 0f 0b c3 90 0f 1f 44 00 00 <48> 63 07 8d 50 ff 83 fa 06 77 1b 48 8b 04 c5 60 65 d4 c0 48 85 c0
sep 20 22:41:45 Cockpit kernel: RSP: 0018:ffffaed340f5fd60 EFLAGS: 00010246
sep 20 22:41:45 Cockpit kernel: RAX: ffff8cddc59d0000 RBX: ffff8cdd82ea6600 RCX: 0000000000000000
sep 20 22:41:45 Cockpit kernel: RDX: 00000000001ac000 RSI: ffff8cddc064c190 RDI: 0000000000000000
sep 20 22:41:45 Cockpit kernel: RBP: 00007fce2e387000 R08: 00000000040400fb R09: 0000000000004000
sep 20 22:41:45 Cockpit kernel: R10: ffff8cddab2eda28 R11: 00007fce53307000 R12: ffff8cddc064c5a8
sep 20 22:41:45 Cockpit kernel: R13: 0000000000000008 R14: ffff8cddc064c190 R15: ffff8cdd81c05940
sep 20 22:41:45 Cockpit kernel: FS: 00007fce3edcc080(0000) GS:ffff8cdea7d40000(0000) knlGS:0000000000000000
sep 20 22:41:45 Cockpit kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
sep 20 22:41:45 Cockpit kernel: CR2: 0000000000000000 CR3: 00000001201b2000 CR4: 00000000000006e0

The log is a bit shorter but it still freezes mpv and Deadbeef.

A side effect of the bug is that it freezes one of my conky too!?

P.S. As info, I just installed the kernel not the headers.
Comment by Jan Alexander Steffens (heftig) - Monday, 20 September 2021, 21:29 GMT
Please file a kernel bug if you haven't already; see https://www.alsa-project.org/wiki/Bug_Tracking (don't forget the mentioned alsa-info.sh https://www.alsa-project.org/wiki/AlsaInfo ).
Comment by Jan Alexander Steffens (heftig) - Monday, 20 September 2021, 21:32 GMT
Ah, I will have one more kernel to try before you do that.
Comment by Jan Alexander Steffens (heftig) - Monday, 20 September 2021, 22:19 GMT Comment by Guy B (sushi2503) - Tuesday, 21 September 2021, 07:05 GMT
BINGO !

It's working again flawlessly with that kernel. I have tried with both player (Deadbeef & mpv) and firefox (youtube) too.

Thank you very much.

P.S. Will this modifications added to the main Arch kernels soon ?

Loading...