Re: [PATCH v5 0/3] MR8834: server: Use process_vm_writev / process_vm_readv instead of ptrace when available.
6 Nov
2025
6 Nov
'25
11:38 a.m.
On Thu Nov 6 11:38:17 2025 +0000, Paul Gofman wrote:
If I have to guess, this part looks suspicious: ``` ret = mach_vm_region( process_port, ®ion_address, ®ion_size, VM_REGION_BASIC_INFO_64, (vm_region_info_t)&info, &info_count, &object_name ); ``` ((vm_region_info_t)&info). That seems like the parameter which address on stack is below our 'written' (so writing past it can do this), and it is suspiciously casted. The cast there is how the API is supposed to be used, but this is indeed where the stack is getting smashed.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8834#note_121019
39
Age (days ago)
39
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marc-Aurel Zent (@mzent)