Skip to content

Commit

Permalink
Try to fix Aarch64 bustage by only adding O_LARGEFILE for 32-bit tracees
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed May 16, 2023
1 parent 4be071a commit 4bc3877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AutoRemoteSyscalls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,12 @@ void AutoRemoteSyscalls::finish_direct_mmap(
* recording. */
{
AutoRestoreMem child_str(*this, backing_file_name.c_str());
if (word_size(t->arch()) == 4) {
backing_file_open_flags |= RR_LARGEFILE_32;
}
fd = infallible_syscall(syscall_number_for_openat(arch()), -1,
child_str.get().as_int(),
backing_file_open_flags | RR_LARGEFILE_32);
backing_file_open_flags);
}
/* And mmap that file. */
infallible_mmap_syscall_if_alive(rec_addr, length,
Expand Down

0 comments on commit 4bc3877

Please sign in to comment.