[PATCH 6.12 286/414] tee: Prevent size calculation wraparound on 32-bit kernels