mkubecek / vmware-host-modules

Patches needed to build VMware (Player and Workstation) host modules against recent kernels
GNU General Public License v2.0
2.31k stars 382 forks source link

ubuntu 2404 array-index-out-of-bounds when insmod vmmon #245

Open gdhunt opened 6 months ago

gdhunt commented 6 months ago

System Details Report


Report details

Hardware Information:

Software Information:

workstation: VMware-Workstation-Full-17.5.0-22583795.x86_64.bundle

log: kern.log

pwntr commented 6 months ago

Similar for me on Dell XPS 13 9380 @ Fedora 40 [kernel 6.8.9] with Workstation Pro 17.5.2 and the 17.5.1 vmmon and vmnet modules/sources:

------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in /tmp/modconfig-pJfuAW/vmmon-only/common/vmx86.c:2970:31
index 0 is out of range for type 'MSRReply [*]'
CPU: 4 PID: 14175 Comm: vmware-vmx Tainted: G           OE      6.8.9-300.fc40.x86_64 #1
Hardware name: Dell Inc. XPS 13 9380/0KTW76, BIOS 1.26.0 09/11/2023
Call Trace:
 <TASK>
 dump_stack_lvl+0x6a/0x90
 __ubsan_handle_out_of_bounds+0x95/0xd0
 Vmx86_GetAllMSRs+0xda/0x170 [vmmon]
 LinuxDriver_Ioctl+0xcaf/0x1310 [vmmon]
 ? ioctl_has_perm.constprop.0.isra.0+0xd8/0x130
 ? __x64_sys_ioctl+0x94/0xd0
 __x64_sys_ioctl+0x94/0xd0
 do_syscall_64+0x83/0x170
 ? syscall_exit_to_user_mode+0x83/0x230
 ? do_fault+0x246/0x490
 ? __handle_mm_fault+0x82f/0xe90
 ? shmem_file_write_iter+0x5e/0x90
 ? __count_memcg_events+0x69/0x100
 ? count_memcg_events.constprop.0+0x1a/0x30
 ? handle_mm_fault+0x1f2/0x350
 ? do_user_addr_fault+0x304/0x690
 ? exc_page_fault+0x7f/0x180
 entry_SYSCALL_64_after_hwframe+0x78/0x80
RIP: 0033:0x7f71c7a16d2d
Code: 04 25 28 00 00 00 48 89 45 c8 31 c0 48 8d 45 10 c7 45 b0 10 00 00 00 48 89 45 b8 48 8d 45 d0 48 89 45 c0 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1a 48 8b 45 c8 64 48 2b 04 25 28 00 00 00
RSP: 002b:00007fff045dc870 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f71c7a16d2d
RDX: 00007fff045dc8d8 RSI: 00000000000007ec RDI: 000000000000000f
RBP: 00007fff045dc8c0 R08: 000055a59631aca0 R09: 00007f71c7ae6b20
R10: 0000000000000070 R11: 0000000000000246 R12: 0000000000000008
R13: 000000000000003a R14: 000055a5963196d0 R15: 000055a5962eaa00
ufechner7 commented 6 months ago

Same here on Ubuntu 24.04 kernel 6.8.0 (latest official kernel).

kev1nweng commented 5 months ago

Same issue here on 24.04 LTS with kernel 6.8.0-35. vmware-installer run into issues when installing VMX as well, failing to properly compile components.

wokawoka commented 4 months ago

Same issue here on ubuntu 24.04 LTS and kernel 6.7.10

odravison commented 2 months ago

Same here, but I’m facing an UBSAN error in Linux kernel code! Does anyone know how to solve the issue?

image

Kernel version is 6.8.0 I have tried changing it already but it didn’t work