aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorYasumasa Suenaga <[email protected]>2025-06-28 02:22:17 +0000
committerWei Liu <[email protected]>2025-07-09 23:01:55 +0000
commit0d86a8d65c1e69610bfe1a7a774f71ff111ed8c1 (patch)
tree3c590608aa010647bbf7c40ed580bbd3b77d50b4 /tools/perf/scripts/python/futex-contention.py
parentDrivers: hv: Select CONFIG_SYSFB only if EFI is enabled (diff)
downloadkernel-0d86a8d65c1e69610bfe1a7a774f71ff111ed8c1.tar.gz
kernel-0d86a8d65c1e69610bfe1a7a774f71ff111ed8c1.zip
tools/hv: fcopy: Fix incorrect file path conversion
The hv_fcopy_uio_daemon fails to correctly handle file copy requests from Windows hosts (e.g. via Copy-VMFile) due to wchar_t size differences between Windows and Linux. On Linux, wchar_t is 32 bit, whereas Windows uses 16 bit wide characters. Fix this by ensuring that file transfers from host to Linux guest succeed with correctly decoded file names and paths. - Treats file name and path as __u16 arrays, not wchar_t*. - Allocates fixed-size buffers (W_MAX_PATH) for converted strings instead of using malloc. - Adds a check for target path length to prevent snprintf() buffer overflow. Fixes: 82b0945ce2c2 ("tools: hv: Add new fcopy application based on uio driver") Signed-off-by: Yasumasa Suenaga <[email protected]> Reviewed-by: Naman Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions