[openEuler-5.10 491/496] tee: add overflow check in register_shm_helper()