malloc(): invalid size (unsorted) when launch TD GUEST.
CentOS STREAM 9: [root@localhost opt]# uname -r 5.14.0-558.tdx.el9s.x86_64
[root@localhost opt]# dmesg |grep -i tdx [ 0.000000] Linux version 5.14.0-558.tdx.el9s.x86_64 (mockbuild@doogie-n1.rdu2.centos.org) (gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5), GNU ld version 2.35.2-60.el9) #1 (closed) SMP PREEMPT_DYNAMIC Mon Feb 17 11:33:05 UTC 2025 [ 0.000000] Command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-5.14.0-558.tdx.el9s.x86_64 root=/dev/mapper/cs-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/cs-swap rd.lvm.lv=cs/root rd.lvm.lv=cs/swap rhgb quiet nohibernate [ 0.070010] Kernel command line: BOOT_IMAGE=(hd2,gpt2)/vmlinuz-5.14.0-558.tdx.el9s.x86_64 root=/dev/mapper/cs-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/cs-swap rd.lvm.lv=cs/root rd.lvm.lv=cs/swap rhgb quiet nohibernate [ 0.070133] Unknown kernel command line parameters "rhgb BOOT_IMAGE=(hd2,gpt2)/vmlinuz-5.14.0-558.tdx.el9s.x86_64", will be passed to user space. [ 0.384031] virt/tdx: BIOS enabled: private KeyID range [32, 64) [ 0.384033] virt/tdx: Disable ACPI S3. Turn off TDX in the BIOS to use ACPI S3. [ 4.137139] usb usb1: Manufacturer: Linux 5.14.0-558.tdx.el9s.x86_64 xhci-hcd [ 4.137461] usb usb2: Manufacturer: Linux 5.14.0-558.tdx.el9s.x86_64 xhci-hcd [ 4.983678] BOOT_IMAGE=(hd2,gpt2)/vmlinuz-5.14.0-558.tdx.el9s.x86_64 [ 111.945969] virt/tdx: TDX module 2.0.02.00, build number 786, build date 20240814 [ 114.211410] virt/tdx: 4202520 KB allocated for PAMT [ 114.211425] virt/tdx: module initialized
following is the error message: [root@localhost opt]# bash qemu.sh malloc(): invalid size (unsorted) qemu.sh: line 14: 27658 Aborted (core dumped) /usr/libexec/qemu-kvm -accel kvm -m 4G -smp 4 -name process=tdxvm,debug-threads=on -cpu host -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type": "vsock", "cid":"2","port":"4050"}}' -machine q35,hpet=off,kernel_irqchip=split,confidential-guest-support=tdx -nographic -vga none -bios /usr/share/edk2/ovmf/OVMF.inteltdx.fd -serial stdio -nodefaults -device virtio-net-pci,netdev=nic0 -netdev user,id=nic0,hostfwd=tcp::10022-:22 -drive file=/opt/rhel-9.2-x86_64-kvm.qcow2,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0 [root@localhost opt]#