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