Skip to content

tee-supplicant: preserve large REE FS file lengths - #422

Merged
jforissier merged 1 commit into
OP-TEE:masterfrom
ysbnim:master
Aug 19, 2026
Merged

tee-supplicant: preserve large REE FS file lengths#422
jforissier merged 1 commit into
OP-TEE:masterfrom
ysbnim:master

Conversation

@ysbnim

@ysbnim ysbnim commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

REE FS RPC passes file lengths as 64-bit values, but truncate stored them in size_t. This truncated large lengths on 32-bit builds.

This enables 64-bit file offsets and use off_t for the truncate length.

This solves issues similar to those addressed in OP-TEE/optee_os#7925 .

@jenswikl

Copy link
Copy Markdown
Contributor

Reviewed-by: Jens Wiklander <jens.wiklander@oss.qualcomm.com>

REE FS RPC passes file lengths as 64-bit values, but truncate stored
them in size_t. This truncated large lengths on 32-bit builds.

Enable 64-bit file offsets and use off_t for the truncate length.

Fixes: 1472d0e ("Add new RPC FS functions with useful error codes")
Signed-off-by: Sungbae Yoo <sungbaey@nvidia.com>
Reviewed-by: Jens Wiklander <jens.wiklander@oss.qualcomm.com>
@ysbnim

ysbnim commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Gentle reminder. Attached reviewed-by tags.

@jforissier
jforissier merged commit ba3dce7 into OP-TEE:master Aug 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants