RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1972462 - QEMU core dump when doing TLS migration via TCP
Summary: QEMU core dump when doing TLS migration via TCP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Leonardo Bras
QA Contact: Li Xiaohui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-16 01:36 UTC by Leonardo Bras
Modified: 2021-12-07 21:25 UTC (History)
5 users (show)

Fixed In Version: qemu-kvm-6.0.0-6.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 21:24:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src qemu-kvm merge_requests 10 0 None None None 2021-06-18 13:44:33 UTC

Description Leonardo Bras 2021-06-16 01:36:58 UTC
Description of problem:
Qemu core dump when do tls migration on two hosts:
(qemu) qemu-kvm: ../util/yank.c:107: yank_unregister_instance: Assertion `QLIST_EMPTY(&entry->yankfns)' failed.
Aborted (core dumped)


Version-Release number of selected component (if applicable):

hosts info: kernel-5.13.0-0.rc4.33.el9.x86_64 & 
qemu-kvm-6.0.0-5.el9.x86_64.rpm    
guest info: kernel-4.18.0-305.8.el8.x86_64


How reproducible:
100%


Steps to Reproduce:
1.Generate a keys.psk in current dir, and username '$user'
2.Boot a vm as tls server on dst host:
-object tls-creds-psk,dir=.,endpoint=server,id=tls0 \
-incoming defer 
3.Boot a vm as tls client on src host:
-object tls-creds-psk,dir=.,endpoint=client,username=$user,id=tls0 
4.On dst host (qemu) console:
 migrate_set_parameter tls-creds tls0
 migrate_incoming tcp:localhost:1234
On src host (qemu) console:
 migrate_set_parameter tls-creds tls0
 migrate tcp:localhost:1234

Actual results:
During migration, qemu on src&dst host hit core dump:
(qemu) qemu-kvm: ../util/yank.c:107: yank_unregister_instance: Assertion `QLIST_EMPTY(&entry->yankfns)' failed.
Aborted (core dumped)


Expected results:
Migration succeed, vm works well after migration

Comment 1 Leonardo Bras 2021-06-16 01:41:06 UTC
Patch got accepted upstream at:
https://gitlab.com/qemu-project/qemu/-/commit/7de2e8565335c13fb3516cddbe2e40e366cce273 (master)

Downstream patch posted at Gitlab:
https://gitlab.com/redhat/rhel/src/qemu-kvm/qemu-kvm/-/merge_requests/10

Comment 2 Leonardo Bras 2021-06-18 13:30:58 UTC
I moved the downstream MR to centos-stream:
https://gitlab.com/redhat/centos-stream/src/qemu-kvm/-/merge_requests/10

Comment 5 Yanan Fu 2021-06-22 05:05:00 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 6 Li Xiaohui 2021-06-22 09:52:48 UTC
Run automation over tls migration test requirement with rhel9.0 and win2022 guests, all cases passed.

hosts info:
kernel-5.13.0-0.rc4.33.el9.x86_64 & qemu-img-6.0.0-6.el9.x86_64

Automation Logs link:
http://kvmqe-tools.qe.lab.eng.nay.redhat.com/logjump.html?target=pek&path=xiaohli/bz1972462


Mark this bz verified per Comment 5 and Comment 6(Notes tls test requirement cover the case in this bz, so remove SanityOnly).


Note You need to log in before you can comment on or make changes to this bug.