[PATCH 5.19 2/7] tee: add overflow check in register_shm_helper()