Bug 219889

Summary: Update to 'kernel-lt.x86_64-6.1.130-1.el9.elrepo' causes start failure in the VM with vfio passthrough
Product: Linux Reporter: bugzilla.kernel.org
Component: KernelAssignee: Virtual assignee for kernel bugs (linux-kernel)
Status: NEW ---    
Severity: high CC: bugzilla.kernel.org, toracat
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: grub.cfg
VM config
Successful start on 6.1.129
Error on 6.1.130
Error on 6.1.131
Ok in 6.13.6
Ok in 6.13.7
6.1.132
6.14.0

Description bugzilla.kernel.org 2025-03-17 04:47:49 UTC
There is an issue in the kernels 6.1.130 & 6.1.131, while in 6.13.6 & 6.13.7 it works ok.

Cannot start VM with error

2025-03-08T14:53:10.620302Z qemu-kvm: VFIO_MAP_DMA failed: Cannot allocate memory
2025-03-08T14:53:10.620323Z qemu-kvm: vfio_container_dma_map(0x5621ca6e5400, 0xc0000, 0x20000, 0x7fd550600000) = -12 (Cannot allocate memory)
qemu: hardware error: vfio: DMA mapping failed, unable to continue


Config & logs are in the attachment.
Comment 1 bugzilla.kernel.org 2025-03-17 04:49:23 UTC
Created attachment 307842 [details]
grub.cfg
Comment 2 bugzilla.kernel.org 2025-03-17 04:49:43 UTC
Created attachment 307843 [details]
VM config
Comment 3 bugzilla.kernel.org 2025-03-17 04:50:36 UTC
Created attachment 307844 [details]
Successful start on 6.1.129
Comment 4 bugzilla.kernel.org 2025-03-17 04:51:12 UTC
Created attachment 307845 [details]
Error on 6.1.130
Comment 5 bugzilla.kernel.org 2025-03-17 04:51:29 UTC
Created attachment 307846 [details]
Error on 6.1.131
Comment 6 bugzilla.kernel.org 2025-03-17 04:51:56 UTC
Created attachment 307847 [details]
Ok in 6.13.6
Comment 7 bugzilla.kernel.org 2025-03-17 04:52:11 UTC
Created attachment 307848 [details]
Ok in 6.13.7
Comment 8 bugzilla.kernel.org 2025-03-29 04:10:00 UTC
There is the same bug in 6.1.132 and it's ok in 6.14.0.
Comment 9 bugzilla.kernel.org 2025-03-29 04:10:48 UTC
Created attachment 307905 [details]
6.1.132
Comment 10 bugzilla.kernel.org 2025-03-29 04:11:09 UTC
Created attachment 307906 [details]
6.14.0
Comment 11 Akemi Yagi 2025-03-30 17:12:56 UTC
Just wanted to add a note that elrepo does not make modifications to the source code from kernel.org. Chances are this is a bug in linux-6.1.130. 

The mainline kernels do not show any problem. Assuming that some backport caused the issue, there might be additional patches that should have been applied together.