qemu-kvm Kdump

基本环境:
系统版本:openEuler release 22.03 (LTS-SP2)
内核版本:5.10.0-153.26.0.102.oe2203sp2.x86_64
安装了使用yum 安装 了vdsm
使用 /usr/libexec/qemu-kvm启动虚拟机
加入网桥:ip link set vcenter-net-0 up
brctl addif ovirtmgmt vcenter-net-0
问题:
关闭虚拟机后,发生qemu-kvm Kdump
[364397.825779] CPU: 8 PID: 1240924 Comm: qemu-kvm Kdump: loaded Tainted: P IOE 5.10.0-153.26.0.102.oe2203sp2.x86_64 #1
[364397.828583] Hardware name: Dell Inc. PowerEdge R710/0XDX06, BIOS 6.4.0 07/23/2013
[364397.829995] RIP: 0010:start_unregistering+0x62/0x100
[364397.831368] Code: 48 89 df c6 07 00 66 66 66 90 48 8d 7d 48 48 c7 c6 e0 ac 9d 8d e8 5e 26 ff ff 48 c7 c7 e0 ac 9d 8d e8 82 8c 6a 00 48 8b 5d 00 <48> 83 3b 00 74 32 48 89 d8 eb 04 48 8b 45 00 48 89 df 48 8b 4d 38
[364397.834187] RSP: 0018:ffffa98bc1bdfc80 EFLAGS: 00010246
[364397.835589] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000246
[364397.837021] RDX: 0000000000000001 RSI: ffff982e0699bb40 RDI: ffffffff8d9dace0
[364397.838447] RBP: ffff983291a75400 R08: 0000000000000000 R09: 0000000000000000
[364397.839871] R10: ffff982d62cc2410 R11: 0000000000651940 R12: ffff98330963c000
[364397.841307] R13: ffff983290850000 R14: ffffffff8cf466c0 R15: 000000000000000a
[364397.842716] FS: 00007f726191de80(0000) GS:ffff98383fc00000(0000) knlGS:0000000000000000
[364397.844153] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[364397.845560] CR2: 0000000000000003 CR3: 00000007b9926001 CR4: 00000000000226e0
[364397.846972] Call Trace:
[364397.848373] drop_sysctl_table+0x26/0x70
[364397.849760] unregister_sysctl_table.part.0+0x39/0x90
[364397.851166] inetdev_destroy+0xa7/0x140
[364397.852561] inetdev_event+0x15a/0x400
[364397.853943] ? raw_notifier_call_chain+0x44/0x60
[364397.855333] ? devinet_init_net+0x2d0/0x2d0
[364397.856686] raw_notifier_call_chain+0x44/0x60
[364397.858009] unregister_netdevice_many+0x1d0/0x460
[364397.859327] unregister_netdevice_queue+0xcf/0x110
[364397.860628] __tun_detach+0x447/0x480 [tun]
[364397.861911] tun_chr_close+0x34/0xb0 [tun]
[364397.863170] __fput+0xcb/0x240
[364397.864398] task_work_run+0x5f/0x90
[364397.865618] exit_to_user_mode_loop+0xf0/0x100
[364397.866829] exit_to_user_mode_prepare+0x9f/0xb0
[364397.868040] syscall_exit_to_user_mode+0x12/0x40
[364397.869235] do_syscall_64+0x4d/0x80
[364397.870423] entry_SYSCALL_64_after_hwframe+0x61/0xc6
[364397.871603] RIP: 0033:0x7f726231873b
[364397.872769] Code: 03 00 00 00 0f 05 48 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 c3 9f f8 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 21 a0 f8 ff 8b 44
[364397.875193] RSP: 002b:00007fff56d40530 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
[364397.876446] RAX: 0000000000000000 RBX: 000055f893adf4d0 RCX: 00007f726231873b
[364397.877698] RDX: 0000000000000002 RSI: 0000000000000002 RDI: 000000000000000b
[364397.878940] RBP: 000055f893af0ae8 R08: 0000000000000000 R09: 0000000000000000
[364397.880188] R10: 0000000000000020 R11: 0000000000000293 R12: 000055f893adf4d0
[364397.881439] R13: 0000000000000001 R14: 00007f7262ea3a80 R15: 000055f892f33978
[364397.882677] Modules linked in: tun raid1 dm_round_robin iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ficus_disk(POE) dm_multipath kvm_intel iscsi_scst(OE) scst_changer(OE) scst_cdrom(OE) scst_tape(OE) scst_raid(OE) scst_processor(OE) scst_modisk(OE) scst_user(OE) scst_disk(OE) scst_vdisk(OE) qla2x00tgt(OE) scst(OE) dlm qla2xxx_scst(OE) nvme_fc nvme_fabrics nvme_core nf_tables libcrc32c nfnetlink ip6table_filter ip6_tables iptable_filter ip_tables rfkill bnx2fc cnic uio fcoe libfcoe libfc sunrpc vfat fat iTCO_wdt gpio_ich iTCO_vendor_support dcdbas intel_powerclamp coretemp ipmi_ssif kvm bcache mgag200 i2c_algo_bit drm_kms_helper irqbypass crc64 intel_cstate syscopyarea sysfillrect intel_uncore sysimgblt pcspkr ipmi_si lpc_ich fb_sys_fops cec ipmi_devintf joydev ipmi_msghandler sg i7core_edac acpi_power_meter 8021q garp mrp bridge stp llc bonding drm fuse ext4 mbcache jbd2 sr_mod ata_generic cdrom sd_mod crct10dif_pclmul uas ata_piix crc32_pclmul crc32c_intel libata
[364397.882764] ghash_clmulni_intel usb_storage serio_raw t10_pi megaraid_sas scsi_transport_fc bnx2 wmi dm_mod [last unloaded: kvm_intel]
[364397.896513] CR2: 0000000000000003
[364397.899232] kexec: Bye!
[root@dell2 vmcore-127.0.0.1-2023-12-11-14:53:40]#

日志中的关键信息是 start_unregistering 函数在执行时遇到了问题,并导致内核崩溃。该函数是内核网络子系统的一部分,涉及到网络设备的注销。从调用栈中我们可以看到 unregister_netdevice_manytun_chr_close 函数,这表明问题可能与 TUN/TAP 设备的注销有关。