View Issue Details

IDProjectCategoryView StatusLast Update
0001516channel: kernel/el9kernel-ltpublic2025-03-31 01:33
Reporterelrepo@mx.zzux.com Assigned Totoracat  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Platformamd64OSCentOS StreamOS Version9
Summary0001516: Update to 'kernel-lt.x86_64-6.1.130-1.el9.elrepo' causes start failure in the VM with vfio passthrough
DescriptionThere are two libvirt/qemu log files attached,

'fail'
with error
qemu-kvm: -device {"driver":"vfio-pci","host":"0000:00:1b.0","id":"hostdev0","bus":"pci.0","addr":"0x1b","rombar":0}: vfio 0000:00:1b.0: failed to setup container for group 0: memory listener initialization failed: Region pc.rom: vfio_container_dma_map(0x56392f24a680, 0xc0000, 0x20000, 0x7fccf8400000) = -12 (Cannot allocate memory)

and 'ok', after reboot & select 6.1.129 kernel in the GRUB menu.


device 0000:00:1b.0 is
8086:8d20 Audio device: Intel Corporation C610/X99 series chipset HD Audio Controller (rev 05)
Steps To Reproduceuname -r
6.1.130-1.el9.elrepo.x86_64

dnf list installed qemu-kvm
qemu-kvm.x86_64 17:9.1.0-15.el9
TagsNo tags attached.
Attached Files
fail.txt (5,343 bytes)   
ok.txt (5,160 bytes)   

Activities

elrepo@mx.zzux.com

2025-03-08 10:03

reporter   ~0010342

I also cannot start VM on another host. See log in the attachment.
centos-stream9-2.log (7,921 bytes)   

toracat

2025-03-12 02:53

administrator   ~0010345

I glanced through the changelog for kernel-lt-6.1.130 but could not find anything obvious.

Will you be able to test-install kernel-ml and see if the issue persists? Or else, kernel-lt-6.1.131 should be out in the next few days, so you can give it a try.

elrepo@mx.zzux.com

2025-03-12 12:40

reporter   ~0010346

Yes, there is no the subject issue with the kernel-ml-6.13.6-1.el9.elrepo.x86_64.
Now only the version 130 is buggy.
I hope it will be ok in 131.

toracat

2025-03-13 22:38

administrator   ~0010350

kernel-lt-6.1.131 has just been released and is currently syncing to mirrors. Let's see if this one works.

elrepo@mx.zzux.com

2025-03-14 03:29

reporter   ~0010351

Now I tried both kernel-lt-6.1.131 & kernel-ml-6.13.7.
6.1.131 is with the same bug again.
Config & log files are in the attachment.
grub.cfg (3,424 bytes)   
W7_UEFI.xml (3,872 bytes)   
W7_UEFI-6.1.129.log (3,688 bytes)   
W7_UEFI-6.1.130.log (6,367 bytes)   
W7_UEFI-6.1.131.log (6,269 bytes)   
W7_UEFI-6.13.6.log (3,687 bytes)   
W7_UEFI-6.13.7.log (3,471 bytes)   

toracat

2025-03-16 22:48

administrator   ~0010354

So, kernel-ml does not have the problem that you see with kernel-lt-6.1.130. It looks as though some patch(es) that was(were) backported from the mainline kernel to stable kernel 6.1 caused the issue. If this is indeed the case, either the "bad patch" needs to be deleted or additional patch(es) need to be backported to fix it.

Since we, ELRepo, cannot modify or fix the code, you'd have to report this to kernel developers. Here's the link for their bugzilla:

https://bugzilla.kernel.org/enter_bug.cgi?product=Linux

I see a few patches that might be related to this bug in the upcoming release of kernel 6.1. Therefore you might want to wait for the next update and see if the problem persists.

toracat

2025-03-28 22:23

administrator   ~0010355

elrepo@mx.zzux.com

kernel-lt-6.1.132-1.el9.elrepo is out. Could you give it a try?

elrepo@mx.zzux.com

2025-03-29 00:16

reporter   ~0010356

There is the same bug in 6.1.132 and it's ok in 6.14.0.

I've also submit
https://bugzilla.kernel.org/show_bug.cgi?id=219889
but no answer yet.
W7_UEFI-6.1.132.log (6,269 bytes)   
W7_UEFI-6.14.0.log (3,471 bytes)   

toracat

2025-03-30 13:00

administrator   ~0010357

Are you familiar with "git bisection"? At this point, that seems to be the only way to identify the patch that was introduced into kernel-6.1.130.

elrepo@mx.zzux.com

2025-03-31 01:33

reporter   ~0010358

I'm not familiar with that thing.
I only can compare files/folders with Total Commander.
Because the error is 'Cannot allocate memory', maybe these files

mm/gup.c
mm/madvise.c
mm/memcontrol.c
mm/memory.c
mm/oom_kill.c

of the source code are with the most suspected changes from 6.1.129 to 6.1.130?
Clipboard01.png (17,138 bytes)   

Issue History

Date Modified Username Field Change
2025-03-08 08:59 elrepo@mx.zzux.com New Issue
2025-03-08 08:59 elrepo@mx.zzux.com Status new => assigned
2025-03-08 08:59 elrepo@mx.zzux.com Assigned To => toracat
2025-03-08 08:59 elrepo@mx.zzux.com File Added: fail.txt
2025-03-08 08:59 elrepo@mx.zzux.com File Added: ok.txt
2025-03-08 10:03 elrepo@mx.zzux.com Note Added: 0010342
2025-03-08 10:03 elrepo@mx.zzux.com File Added: centos-stream9-2.log
2025-03-08 13:00 toracat Status assigned => acknowledged
2025-03-12 02:53 toracat Note Added: 0010345
2025-03-12 12:40 elrepo@mx.zzux.com Note Added: 0010346
2025-03-13 22:38 toracat Note Added: 0010350
2025-03-13 22:38 toracat Status acknowledged => assigned
2025-03-14 03:29 elrepo@mx.zzux.com Note Added: 0010351
2025-03-14 03:29 elrepo@mx.zzux.com File Added: grub.cfg
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI.xml
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI-6.1.129.log
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI-6.1.130.log
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI-6.1.131.log
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI-6.13.6.log
2025-03-14 03:29 elrepo@mx.zzux.com File Added: W7_UEFI-6.13.7.log
2025-03-16 22:48 toracat Note Added: 0010354
2025-03-28 22:23 toracat Note Added: 0010355
2025-03-29 00:16 elrepo@mx.zzux.com Note Added: 0010356
2025-03-29 00:16 elrepo@mx.zzux.com File Added: W7_UEFI-6.1.132.log
2025-03-29 00:16 elrepo@mx.zzux.com File Added: W7_UEFI-6.14.0.log
2025-03-30 13:00 toracat Note Added: 0010357
2025-03-31 01:33 elrepo@mx.zzux.com Note Added: 0010358
2025-03-31 01:33 elrepo@mx.zzux.com File Added: Clipboard01.png