The page size calculation did not account for the size of the stack header (or rather it did account for it, but in the wrong direction...)