Andrew Kaster
3f0dcd63dc
Kernel: Fix TmpFS resize behavior around INT32_MAX for 32-bit systems
...
We need some overflow checks due to the implementation of TmpFS.
When size_t is 32 bits and off_t is 64 bits, we might overflow our
KBuffer max size and confuse the KBuffer set_size code, causing a VERIFY
failure. Make sure that resulting offset + size will fit in a size_t.
Another constraint, we make sure that the resulting offset + size will
be less than half of the maximum value of a size_t, because we double
the KBuffer size each time we resize it.
2021-07-11 19:42:00 +02:00
..
2021-07-11 01:46:59 +02:00
2021-07-09 15:36:50 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 17:55:29 +02:00
2021-07-11 17:55:29 +02:00
2021-07-11 19:42:00 +02:00
2021-07-11 19:09:02 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 18:00:31 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 18:52:27 +02:00
2021-07-11 00:26:17 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 19:42:00 +02:00
2021-07-07 21:57:01 +02:00
2021-07-11 01:14:53 +02:00
2021-07-11 01:46:59 +02:00
2021-07-11 00:25:24 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 15:15:57 +02:00
2021-07-07 10:05:55 +02:00
2021-07-07 10:05:55 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 01:40:26 +02:00
2021-07-11 14:10:58 +02:00
2021-07-07 15:32:17 +02:00
2021-07-08 10:11:00 +02:00
2021-07-11 14:14:51 +02:00
2021-07-07 15:32:17 +02:00
2021-07-11 00:25:24 +02:00
2021-07-06 19:08:22 +02:00
2021-07-08 11:43:34 +02:00
2021-07-11 01:40:26 +02:00
2021-07-09 15:36:50 +02:00
2021-07-11 01:40:26 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 01:40:26 +02:00
2021-07-05 23:30:15 +02:00
2021-07-11 14:14:51 +02:00
2021-07-11 19:42:00 +02:00
2021-07-11 14:14:51 +02:00
2021-07-04 20:08:28 +01:00
2021-07-05 16:40:00 +02:00
2021-07-11 01:40:26 +02:00
2021-07-05 23:30:15 +02:00