Hi all,
In optee-os, memory of all params is mapped RW, irrespective of paramType (viz, INPUT, OUTPUT or INOUT).
References:
https://github.com/OP-TEE/optee_os/blob/master/core/arch/arm/mm/tee_mmu.c#L394 and
https://github.com/OP-TEE/optee_os/blob/master/core/arch/arm/mm/tee_mmu.c#L62
Do we know why is this so?
I tried to change this to map R only for input, W for output and RW for inout.
However few tests (ex: 4001 - 4007) in xtest suite fails.