Skip to content

Commit bd51393

Browse files
qc-azarrabijenswi-linaro
authored andcommitted
tee: increase TEE_MAX_ARG_SIZE to 4096
Increase TEE_MAX_ARG_SIZE to accommodate worst-case scenarios where additional buffer space is required to pass all arguments to TEE. This change is necessary for upcoming support for Qualcomm TEE, which requires a larger buffer for argument marshaling. Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Tested-by: Harshal Dev <quic_hdev@quicinc.com> Signed-off-by: Amirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent d5b8b0f commit bd51393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/uapi/linux/tee.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define TEE_IOC_MAGIC 0xa4
4343
#define TEE_IOC_BASE 0
4444

45-
#define TEE_MAX_ARG_SIZE 1024
45+
#define TEE_MAX_ARG_SIZE 4096
4646

4747
#define TEE_GEN_CAP_GP (1 << 0)/* GlobalPlatform compliant TEE */
4848
#define TEE_GEN_CAP_PRIVILEGED (1 << 1)/* Privileged device (for supplicant) */

0 commit comments

Comments
 (0)