[RHEL 8] Kernel gets panic at dma_free_noncontiguous() upon ENOMEM.
Issue
-
The kernel gets panics while playing audio with the "Intel Corporation Comet Lake PCH-LP cAVS" sound card on 8.6.
-
Kernel panics with the following messages:
sof-audio-pci-intel-cnl 0000:00:1f.3: error: memory alloc failed: -12
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD 0 P4D 0
Oops: 0000 [#1] SMP NOPTI
CPU: 1 PID: 5266 Comm: alsa-sink-HDA A Kdump: loaded Tainted: P OE --------- - - 4.18.0-372.19.1.el8_6.x86_64 #1
Hardware name: LENOVO 20S1S3B00F/20S1S3B00F, BIOS N2XET35W (1.25 ) 04/06/2022
RIP: 0010:dma_free_noncontiguous+0x2c/0x60
Code: 44 00 00 48 8b 87 70 02 00 00 48 85 c0 74 0e 48 8b 40 78 48 85 c0 74 11 e9 c1 74 a8 00 48 8b 05 2a eb 28 02 48 85 c0 75 e6 53 <48> 8b 02 48 89 d3 41 89 c8 48 8b 10 48 8b 48 10 48 83 e2 fc e8 0b
RSP: 0018:ffff9f25c5dcb7d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: fffffffffffffff4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff91a982a780b8
RBP: ffff91a9861ca818 R08: 0000000000002000 R09: 0000000000000000
R10: 0000000000000001 R11: ffff9f25c5dcb500 R12: 00000000fffffff4
R13: 0000000000083000 R14: 0000000000000000 R15: ffff91a9861caaf0
FS: 00007fccea2d0700(0000) GS:ffff91ac66040000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000015d2b4002 CR4: 00000000003726e0
Call Trace:
cl_stream_prepare.constprop.5.cold.7+0x2f/0x78 [snd_sof_intel_hda_common]
hda_dsp_cl_boot_firmware+0x85/0x760 [snd_sof_intel_hda_common]
snd_sof_run_firmware+0xa0/0x230 [snd_sof]
sof_resume+0xe5/0x1c0 [snd_sof]
pci_pm_runtime_resume+0x70/0x90
? pci_pm_default_resume+0x30/0x30
__rpm_callback+0xe8/0x140
rpm_callback+0x1f/0x70
? pci_pm_default_resume+0x30/0x30
rpm_resume+0x5d3/0x810
__pm_runtime_resume+0x47/0x70
snd_soc_pcm_component_pm_runtime_get+0x66/0xe0 [snd_soc_core]
soc_pcm_open+0x5f/0x4f0 [snd_soc_core]
dpcm_be_dai_startup+0x124/0x210 [snd_soc_core]
dpcm_fe_dai_open+0xf4/0x820 [snd_soc_core]
snd_pcm_open_substream+0x92/0x370 [snd_pcm]
snd_pcm_open+0xf3/0x220 [snd_pcm]
? wake_up_q+0x70/0x70
snd_pcm_playback_open+0x3d/0x70 [snd_pcm]
chrdev_open+0xcb/0x1e0
? cdev_default_release+0x20/0x20
do_dentry_open+0x132/0x340
path_openat+0x53e/0x14f0
? inotify_handle_event+0x1db/0x237
? cshook_security_inode_free_security+0x2d2/0x2820 [falcon_lsm_serviceable]
? cshook_network_ops_inet6_sockraw_recvmsg+0x188c9/0x22160 [falcon_lsm_serviceable]
do_filp_open+0x93/0x100
? getname_flags+0x4a/0x1e0
? __check_object_size+0xa8/0x16b
do_sys_open+0x184/0x220
unload_network_ops_symbols+0x6c32/0x7270 [falcon_lsm_pinned_14108]
? do_syscall_64+0x5b/0x1a0
? entry_SYSCALL_64_after_hwframe+0x65/0xca
Environment
- Red Hat Enterprise Linux 8.6
- Intel Corporation Comet Lake PCH-LP cAVS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.