[PATCH 4.14 119/189] tee: check shm references are consistent in offset/size