diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-16 22:22:16 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-16 22:23:36 +0200 |
commit | 21d99ce0cfefc82039f9bd45bd9d12eb47966992 (patch) | |
tree | ac40d91f4eaec264bf2957911dd585f7944df5dc /mach-defpager/main.c | |
parent | 7e176f23511446bc33f4e43fd098ddb73acd8146 (diff) | |
download | hurd-21d99ce0cfefc82039f9bd45bd9d12eb47966992.tar.gz hurd-21d99ce0cfefc82039f9bd45bd9d12eb47966992.tar.bz2 hurd-21d99ce0cfefc82039f9bd45bd9d12eb47966992.zip |
libstore: Detect device-based access overflow
recnum_t is 32bit while offsets are 64bit. We need to detect the
otherwise-silent truncation of the address. This happens here at 2TiB
for 512-byte sectors.
* libstore/device.c (dev_read, dev_write): Return EOVERFLOW on addresses
that are larger than what the device interface can handle.
Diffstat (limited to 'mach-defpager/main.c')
0 files changed, 0 insertions, 0 deletions