[PULL 04/28] linux-user: Fix unaligned memory access in prlimit64 syscall

2023-03-10 Thread Laurent Vivier
From: Ilya Leoshkevich target_rlimit64 contains uint64_t fields, so it's 8-byte aligned on some hosts, while some guests may align their respective type on a 4-byte boundary. This may lead to an unaligned access, which is an UB. Fix by defining the fields as abi_ullong. This makes the host align

[PULL 04/28] linux-user: Fix unaligned memory access in prlimit64 syscall

2023-03-08 Thread Laurent Vivier
From: Ilya Leoshkevich target_rlimit64 contains uint64_t fields, so it's 8-byte aligned on some hosts, while some guests may align their respective type on a 4-byte boundary. This may lead to an unaligned access, which is an UB. Fix by defining the fields as abi_ullong. This makes the host align