20 Mar
2025
20 Mar
'25
11:32 p.m.
On Mon, 17 Mar 2025 20:24:13 +1100
David Gibson
There are a number of places where we make calculations and checks around how large frames can be and where they sit in memory. Several of these are roughly correct, but can be wrong in certain edge cases. Improve robustness by clarifying what we're doing and being more careful about the edge cases.
v2: * Added additional patches 5..11 * Patches 1..4 rebased but unchanged
Applied... it took me a while to convince myself that the refactored checks in 2/11 and 10/11 (functionally different in one case) are in fact equivalent (and functionally equivalent in the bigger picture for that idx >= p->size now gone from 10/11), but yes, of course, they weren't robust earlier. -- Stefano