crosvm/sys_util/src
Dylan Reid 252d5b3cf3 handle mmap of large offsets on 32 bit systems
While only 32 bits of address can be mapped, that 32 bits can be offset
by further than 32 bits in to a large file. As chirantan points out, the
try_mmap call was already casting the usize to u64 on all architectures.

Convert the usize offset in mmap to u64 and address users of the API as
well.

Change-Id: I67aed928ea521049fb51eb7aa61ea4de8b4d096c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2124879
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
2020-04-05 21:32:17 +00:00
..
affinity.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00
alloc.rs crosvm: add license blurb to all files 2019-04-24 15:51:38 -07:00
capabilities.rs
clock.rs
errno.rs devices: remove user_command from proxy device 2020-01-09 07:53:57 +00:00
eventfd.rs sys_util: add ScopedEvent to trigger and EventFd on Drop 2020-02-01 08:50:22 +00:00
file_flags.rs
file_traits.rs sys_util: add FileAllocate trait 2020-01-24 20:22:47 +00:00
fork.rs
guest_address.rs
guest_memory.rs handle mmap of large offsets on 32 bit systems 2020-04-05 21:32:17 +00:00
handle_eintr.rs
ioctl.rs
lib.rs sys_util: add FileAllocate trait 2020-01-24 20:22:47 +00:00
mmap.rs handle mmap of large offsets on 32 bit systems 2020-04-05 21:32:17 +00:00
net.rs sys_util: recv entire UnixSeqpacket packets into Vec 2020-02-06 21:56:37 +00:00
passwd.rs
poll.rs sys_util: poll: add iter_writable to set of methods for PollEvents 2019-11-26 21:05:42 +00:00
priority.rs
raw_fd.rs
seek_hole.rs tempfile: Unify the two tempdir implementations 2019-07-11 16:15:38 -07:00
shm.rs sys_util: shm: make using names with shared memory more convenient 2019-09-11 09:34:10 +00:00
signal.rs sys_util: allow adding handlers for all signals 2019-10-03 06:57:34 +00:00
signalfd.rs
sock_ctrl_msg.rs sys_util: recv entire UnixSeqpacket packets into Vec 2020-02-06 21:56:37 +00:00
struct_util.rs crosvm: move vec_with_array_field to data_model 2019-12-11 00:34:36 +00:00
syslog.rs sys_util: cleanup shared mem file after test 2020-02-26 06:45:16 +00:00
terminal.rs devices: remove user_command from proxy device 2020-01-09 07:53:57 +00:00
timerfd.rs
write_zeroes.rs sys_util: do not deallocate space in write_zeroes 2019-11-27 21:22:39 +00:00