A TEE implementation such developed in ARM trustzone OS is a carved out partition isolated from the main OS.
What makes such a TEE secure? Is it the fact that the TEE is accessible only through a small controlled aperture to the processes running in main OS provides?
If somebody runs a full blown OS such as linux kernel as TEE OS, will it become insecure since that linux kernel has large codebase and hence more potential vulnerabilities?