In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Correct the migration DMA map direction
The SVM DMA device map direction should be set the same as the DMA unmap setting, otherwise the DMA core will report the following warning.
Before finialize this solution, there're some discussion on the DMA mapping type(stream-based or coherent) in this KFD migration case, followed by https://lore.kernel.org/all/04d4ab32 [email protected]/T/.
As there's no dma_sync_single_for_*() in the DMA buffer accessed that because this migration operation should be sync properly and automatically. Give that there's might not be a performance problem in various cache sync policy of DMA sync. Therefore, in order to simplify the DMA direction setting alignment, let's set the DMA map direction as BIDIRECTIONAL.
[ 150.834218] WARNING: CPU: 8 PID: 1812 at kernel/dma/debug.c:1028 check_unmap+0x1cc/0x930 [ 150.834225] Modules linked in: amdgpu(OE) amdxcp drm_exec(OE) gpu_sched drm_buddy(OE) drm_ttm_helper(OE) ttm(OE) drm_suballoc_helper(OE) drm_display_helper(OE) drm_kms_helper(OE) i2c_algo_bit rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace netfs xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo iptable_nat xt_addrtype iptable_filter br_netfilter nvme_fabrics overlay nfnetlink_cttimeout nfnetlink openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bridge stp llc sch_fq_codel intel_rapl_msr amd_atl intel_rapl_common snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg edac_mce_amd snd_pci_acp6x snd_hda_codec snd_acp_config snd_hda_core snd_hwdep snd_soc_acpi kvm_amd sunrpc snd_pcm kvm binfmt_misc snd_seq_midi crct10dif_pclmul snd_seq_midi_event ghash_clmulni_intel sha512_ssse3 snd_rawmidi nls_iso8859_1 sha256_ssse3 sha1_ssse3 snd_seq aesni_intel snd_seq_device crypto_simd snd_timer cryptd input_leds [ 150.834310] wmi_bmof serio_raw k10temp rapl snd sp5100_tco ipmi_devintf soundcore ccp ipmi_msghandler cm32181 industrialio mac_hid msr parport_pc ppdev lp parport efi_pstore drm(OE) ip_tables x_tables pci_stub crc32_pclmul nvme ahci libahci i2c_piix4 r8169 nvme_core i2c_designware_pci realtek i2c_ccgx_ucsi video wmi hid_generic cdc_ether usbnet usbhid hid r8152 mii [ 150.834354] CPU: 8 PID: 1812 Comm: rocrtst64 Tainted: G OE 6.10.0-custom #492 [ 150.834358] Hardware name: AMD Majolica-RN/Majolica-RN, BIOS RMJ1009A 06/13/2021 [ 150.834360] RIP: 0010:check_unmap+0x1cc/0x930 [ 150.834363] Code: c0 4c 89 4d c8 e8 34 bf 86 00 4c 8b 4d c8 4c 8b 45 c0 48 8b 4d b8 48 89 c6 41 57 4c 89 ea 48 c7 c7 80 49 b4 84 e8 b4 81 f3 ff <0f> 0b 48 c7 c7 04 83 ac 84 e8 76 ba fc ff 41 8b 76 4c 49 8d 7e 50 [ 150.834365] RSP: 0018:ffffaac5023739e0 EFLAGS: 00010086 [ 150.834368] RAX: 0000000000000000 RBX: ffffffff8566a2e0 RCX: 0000000000000027 [ 150.834370] RDX: ffff8f6a8f621688 RSI: 0000000000000001 RDI: ffff8f6a8f621680 [ 150.834372] RBP: ffffaac502373a30 R08: 00000000000000c9 R09: ffffaac502373850 [ 150.834373] R10: ffffaac502373848 R11: ffffffff84f46328 R12: ffffaac502373a40 [ 150.834375] R13: ffff8f6741045330 R14: ffff8f6741a77700 R15: ffffffff84ac831b [ 150.834377] FS: 00007faf0fc94c00(0000) GS:ffff8f6a8f600000(0000) knlGS:0000000000000000 [ 150.834379] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 150.834381] CR2: 00007faf0b600020 CR3: 000000010a52e000 CR4: 0000000000350ef0 [ 150.834383] Call Trace: [ 150.834385] <TASK> [ 150.834387] ? show_regs+0x6d/0x80 [ 150.834393] ? __warn+0x8c/0x140 [ 150.834397] ? check_unmap+0x1cc/0x930 [ 150.834400] ? report_bug+0x193/0x1a0 [ 150.834406] ? handle_bug+0x46/0x80 [ 150.834410] ? exc_invalid_op+0x1d/0x80 [ 150.834413] ? asm_exc_invalid_op+0x1f/0x30 [ 150.834420] ? check_unmap+0x1cc/0x930 [ 150.834425] debug_dma_unmap_page+0x86/0x90 [ 150.834431] ? srso_return_thunk+0x5/0x5f [ 150.834435] ---truncated---
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux-6.1Upgrade linux | Feb 10, 2025 | Jan 15, 2025 |
| Ubuntu | — | Upgrade linux-image-5.15.0-1062-gkeopUpgrade linux-image-lowlatency-64kUpgrade linux-image-6.11.0-1012-azureUpgrade linux-image-nvidia-tegraUpgrade linux-image-5.15.0-1021-nvidia-tegra-igxUpgrade linux-image-5.15.0-1077-intel-iotgUpgrade linux-image-6.8.0-1028-nvidiaUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-generic-64k-hwe-20.04Upgrade linux-image-oem-22.04bUpgrade linux-image-oem-24.04bUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-azure-lts-22.04Upgrade linux-image-nvidia-lowlatencyUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-nvidiaUpgrade linux-image-oem-20.04bUpgrade linux-image-raspi-realtimeUpgrade linux-image-gkeop-6.8Upgrade linux-image-azure-nvidiaUpgrade linux-image-lowlatency-hwe-24.04Upgrade linux-image-ibm-classicUpgrade linux-image-6.8.0-2023-raspi-realtimeUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-5.15.0-135-lowlatencyUpgrade linux-image-oem-20.04dUpgrade linux-image-oem-24.04aUpgrade linux-image-lowlatencyUpgrade linux-image-5.15.0-135-fipsUpgrade linux-image-intelUpgrade linux-image-oracle-64kUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-aws-lts-22.04Upgrade linux-image-5.15.0-136-genericUpgrade linux-image-5.15.0-135-generic-64kUpgrade linux-image-5.15.0-1021-nvidia-tegra-igx-rtUpgrade linux-image-5.15.0-1075-intel-iotgUpgrade linux-image-5.15.0-1033-nvidia-tegra-rtUpgrade linux-image-nvidia-tegra-rtUpgrade linux-image-azure-fipsUpgrade linux-image-6.11.0-1011-lowlatency-64kUpgrade linux-image-6.8.0-1026-oracle-64kUpgrade linux-image-gcp-lts-22.04Upgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-5.15.0-1076-kvmUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-nvidia-tegra-igx-rtUpgrade linux-image-6.8.0-1028-raspiUpgrade linux-image-6.11.0-21-genericUpgrade linux-image-lowlatency-64k-hwe-20.04Upgrade linux-image-5.15.0-1074-nvidia-lowlatencyUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-6.11.0-1007-realtimeUpgrade linux-image-gke-5.15Upgrade linux-image-ibmUpgrade linux-image-6.8.0-1030-gcpUpgrade linux-image-6.8.0-60-genericUpgrade linux-image-azureUpgrade linux-image-azure-lts-24.04Upgrade linux-image-genericUpgrade linux-image-virtualUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-5.15.0-136-generic-lpaeUpgrade linux-image-lowlatency-64k-hwe-24.04Upgrade linux-image-gcpUpgrade linux-image-fipsUpgrade linux-image-5.15.0-1086-azure-fdeUpgrade linux-image-5.15.0-1074-ibmUpgrade linux-image-6.8.0-1029-awsUpgrade linux-image-5.15.0-1084-azureUpgrade linux-image-6.11.0-1011-awsUpgrade linux-image-6.8.0-1016-azure-nvidiaUpgrade linux-image-generic-lpaeUpgrade linux-image-oem-22.04aUpgrade linux-image-6.11.0-1013-oracleUpgrade linux-image-gkeopUpgrade linux-image-generic-64kUpgrade linux-image-5.15.0-1033-nvidia-tegraUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-oem-22.04cUpgrade linux-image-5.15.0-1073-intel-iot-realtimeUpgrade linux-image-gcp-fipsUpgrade linux-image-6.8.0-1028-oemUpgrade linux-image-5.15.0-1080-aws-fipsUpgrade linux-image-azure-fdeUpgrade linux-image-6.8.0-1028-nvidia-64kUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-oem-22.04Upgrade linux-image-5.15.0-1086-azureUpgrade linux-image-5.15.0-1077-oracleUpgrade linux-image-5.15.0-1077-gkeUpgrade linux-image-nvidia-64kUpgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-5.15.0-1074-raspiUpgrade linux-image-raspi-nolpaeUpgrade linux-image-5.15.0-135-genericUpgrade linux-image-oracle-lts-22.04Upgrade linux-image-virtual-hwe-22.04Upgrade linux-image-6.8.0-1025-gkeUpgrade linux-image-raspiUpgrade linux-image-intel-iotgUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-6.11.0-1011-gcp-64kUpgrade linux-image-5.15.0-1079-gcpUpgrade linux-image-nvidia-6.8Upgrade linux-image-5.15.0-1079-gcp-fipsUpgrade linux-image-nvidia-tegra-igxUpgrade linux-image-5.15.0-135-generic-lpaeUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-5.15.0-1080-realtimeUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-6.11.0-1017-oemUpgrade linux-image-6.11.0-1010-raspiUpgrade linux-image-oem-20.04Upgrade linux-image-6.8.0-1012-gkeopUpgrade linux-image-6.11.0-1011-gcpUpgrade linux-image-6.8.0-1028-nvidia-lowlatencyUpgrade linux-image-5.15.0-1083-azure-fipsUpgrade linux-image-6.8.0-60-lowlatencyUpgrade linux-image-5.15.0-136-generic-64kUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-azure-cvmUpgrade linux-image-6.8.0-60-generic-64kUpgrade linux-image-6.11.0-1012-azure-fdeUpgrade linux-image-aws-fipsUpgrade linux-image-5.15.0-1044-xilinx-zynqmpUpgrade linux-image-5.15.0-1080-awsUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-xilinx-zynqmpUpgrade linux-image-oracleUpgrade linux-image-6.8.0-1030-gcp-64kUpgrade linux-image-gcp-64kUpgrade linux-image-6.8.1-1022-realtimeUpgrade linux-image-6.8.0-1029-azure-fdeUpgrade linux-image-6.8.0-1026-ibmUpgrade linux-image-gkeop-5.15Upgrade linux-image-6.11.0-1011-lowlatencyUpgrade linux-image-oem-24.04Upgrade linux-image-virtual-hwe-20.04Upgrade linux-image-realtimeUpgrade linux-image-6.8.0-60-lowlatency-64kUpgrade linux-image-oem-22.04dUpgrade linux-image-awsUpgrade linux-image-5.15.0-1074-nvidiaUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-6.8.0-1028-nvidia-lowlatency-64kUpgrade linux-image-generic-hwe-20.04Upgrade linux-image-6.8.0-1029-azureUpgrade linux-image-5.15.0-1081-gcpUpgrade linux-image-6.11.0-21-generic-64kUpgrade linux-image-oem-20.04cUpgrade linux-image-gkeUpgrade linux-image-6.8.0-1026-oracleUpgrade linux-image-5.15.0-1072-ibmUpgrade linux-image-6.11.0-1013-oracle-64kUpgrade linux-image-aws-lts-24.04Upgrade linux-image-5.15.0-135-lowlatency-64kUpgrade linux-image-kvmUpgrade linux-image-nvidia-hwe-22.04 | Mar 28, 2025 | Jan 15, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Oct 9, 2025 | Jan 15, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub