[PATCH v2] tee: add overflow check in register_shm_helper()