]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tee: increase TEE_MAX_ARG_SIZE to 4096
authorAmirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>
Fri, 12 Sep 2025 04:07:46 +0000 (21:07 -0700)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 15 Sep 2025 15:34:06 +0000 (17:34 +0200)
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>
include/uapi/linux/tee.h

index 9abb0f299549371d0ffd2c7b20bd2d59ef8ad6ef..a5466b503bfe4466774a6ed0affd7f922495f261 100644 (file)
@@ -42,7 +42,7 @@
 #define TEE_IOC_MAGIC  0xa4
 #define TEE_IOC_BASE   0
 
-#define TEE_MAX_ARG_SIZE       1024
+#define TEE_MAX_ARG_SIZE       4096
 
 #define TEE_GEN_CAP_GP         (1 << 0)/* GlobalPlatform compliant TEE */
 #define TEE_GEN_CAP_PRIVILEGED (1 << 1)/* Privileged device (for supplicant) */