Skip to contentSkip to conversation

Transfer List Checksum Correction and Impact on Bloblist

DISCUSSION Harrison Mutai 3 participants 8 messages Sep 26, 2025 – Oct 21, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

[1] https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

All the best,
Harrison

#2 lore raw

Hi Harrison,

Quoted 8 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 7 lines
Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Currently I am working on patches [1] and [2] to enable Firmware Handoff in U-Boot CI.
It is pointing to TF-A v2.13.0 so actually the changes later that it won't break anything at the moment.
Do you know the plan for the next TF-A 'non-RC' release? I think you can send a patch to update the checksum when the 'non-RC' release is done and then I can let CI point to the new release.

[1] https://lore.kernel.org/u-boot/[email protected]/
[2] https://lore.kernel.org/u-boot/[email protected]/

Regards,
Raymond

Quoted 5 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

All the best,
Harrison

#3 lore raw
In reply to Harrison Mutai
Quoted 10 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

Quoted 6 lines

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Signature · 1 line
Tom
#4 lore raw
Quoted 15 lines · Tom Rini
Quoted 14 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Quoted 7 lines
Quoted 2 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Raymond; Thanks for setting up the handoff tests. The next release for TF-A is planned for mid-November [1].

We’ve run into an issue where TF-A requires specific tags from the transfer list library, but we can’t consume them due to the recent checksum changes.

Tom; As it stands, ours is the only implementation currently using the updated checksum algorithm. There are two other consumers - OP-TEE and EDK2. OP-TEE already has a patch in upstream review to move to the new algorithm [2].

I’ve also reached out to the author of the EDK2 implementation to make them aware of the change.

[1] https://trustedfirmware-a.readthedocs.io/en/latest/about/release-information.html
[2] https://github.com/OP-TEE/optee_os/pull/7531

#5 lore raw
Quoted 35 lines · Harrison Mutai
Quoted 15 lines · Tom Rini
Quoted 14 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Quoted 7 lines
Quoted 2 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Raymond; Thanks for setting up the handoff tests. The next release for TF-A is planned for mid-November [1].

We’ve run into an issue where TF-A requires specific tags from the transfer list library, but we can’t consume them due to the recent checksum changes.

Tom; As it stands, ours is the only implementation currently using the updated checksum algorithm. There are two other consumers - OP-TEE and EDK2. OP-TEE already has a patch in upstream review to move to the new algorithm [2].

Quoted 5 lines

I’ve also reached out to the author of the EDK2 implementation to make them aware of the change.

[1] https://trustedfirmware-a.readthedocs.io/en/latest/about/release-information.html
[2] https://github.com/OP-TEE/optee_os/pull/7531

OK, but since this could also be deployed, I'm again asking, can we make a breaking change like this without having to check some cardinal / version field / something? A mismatch in expected algorithms will break, and so updating deployed devices and getting a mismatch is possibly bricking the device?

Signature · 1 line
Tom
#6 lore raw

+Ilias to the thread

Quoted 39 lines · Tom Rini
Quoted 38 lines · Harrison Mutai
Quoted 15 lines · Tom Rini
Quoted 14 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Quoted 7 lines
Quoted 2 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Raymond; Thanks for setting up the handoff tests. The next release for TF-A is planned for mid-November [1].

We’ve run into an issue where TF-A requires specific tags from the transfer list library, but we can’t consume them due to the recent checksum changes.

Tom; As it stands, ours is the only implementation currently using the updated checksum algorithm. There are two other consumers - OP-TEE and EDK2. OP-TEE already has a patch in upstream review to move to the new algorithm [2].

I’ve also reached out to the author of the EDK2 implementation to make them aware of the change.

Quoted 9 lines
Quoted 2 lines

[1] https://trustedfirmware-a.readthedocs.io/en/latest/about/release-information.html
[2] https://github.com/OP-TEE/optee_os/pull/7531

OK, but since this could also be deployed, I'm again asking, can we make a breaking change like this without having to check some cardinal / version field / something? A mismatch in expected algorithms will break, and so updating deployed devices and getting a mismatch is possibly bricking the device?

Agreed, I raised your concerns in the specification forum [1], and similar concerns were raised by Ilias. It seems that the key question is whether any existing deployments rely on bloblist.

[1] https://github.com/FirmwareHandoff/firmware_handoff/issues/78

#7 lore raw
In reply to Harrison Mutai

Hi Harrison,

Quoted 28 lines · Harrison Mutai
Quoted 15 lines · Tom Rini
Quoted 14 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Quoted 7 lines
Quoted 2 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Raymond; Thanks for setting up the handoff tests. The next release for TF-A is planned for mid-November [1].

Quoted 9 lines

We’ve run into an issue where TF-A requires specific tags from the transfer list library, but we can’t consume them due to the recent checksum changes.

Tom; As it stands, ours is the only implementation currently using the updated checksum algorithm. There are two other consumers - OP-TEE and EDK2. OP-TEE already has a patch in upstream review to move to the new algorithm [2].

There is a question: How did you pass the OP-TEE CI test without U-Boot changes? There is a CI check QEMUv8_check2 in OP-TEE that builds with Firmware Handoff enabled, but the manifest is pointing to U-Boot v2025.07-rc1. So I think unless you have merged the updated checksum to U-Boot and updated the OP-TEE manifest with that commit-id, otherwise QEMUv8_check2 will still fail due to the mismatching checksum algorithm.

Regards,
Raymond

Quoted 7 lines

I’ve also reached out to the author of the EDK2 implementation to make them aware of the change.

[1]
https://trustedfirmware-a.readthedocs.io/en/latest/about/release-information.html
[2] https://github.com/OP-TEE/optee_os/pull/7531

#8 lore raw

+Illias to the thread

Quoted 41 lines · Raymond Mao

Hi Harrison,

Quoted 28 lines · Harrison Mutai
Quoted 15 lines · Tom Rini
Quoted 14 lines · Harrison Mutai

Hi all,

We recently applied changes to the transfer list library [1] to correct the checksum calculation. Previously, we used a simple byte-sum approach. However, we later realized this contradicts the Firmware Handoff specification, which states:

Quoted 2 lines

The checksum is set to a value such that the XOR over every byte in the {tl_base_pa, …, tl_base_pa + used_size - 1} address range is equal to 0.

This discrepancy creates problems when interoperating with Bloblist. Should Bloblist’s checksum calculation be updated to follow the same XOR-based method?

Quoted 7 lines
Quoted 2 lines

[1]
https://review.trustedfirmware.org/c/shared/transfer-list-library/+/42548

Erm, since this has been out in the wild so to speak, we can't just change the algorithm without bumping some cardinal. Or are there yet other implementations that were doing what the spec said?

Raymond; Thanks for setting up the handoff tests. The next release for TF-A is planned for mid-November [1].

Quoted 9 lines

We’ve run into an issue where TF-A requires specific tags from the transfer list library, but we can’t consume them due to the recent checksum changes.

Tom; As it stands, ours is the only implementation currently using the updated checksum algorithm. There are two other consumers - OP-TEE and EDK2. OP-TEE already has a patch in upstream review to move to the new algorithm [2].

Quoted 8 lines

There is a question: How did you pass the OP-TEE CI test without U-Boot changes? There is a CI check QEMUv8_check2 in OP-TEE that builds with Firmware Handoff enabled, but the manifest is pointing to U-Boot v2025.07-rc1. So I think unless you have merged the updated checksum to U-Boot and updated the OP-TEE manifest with that commit-id, otherwise QEMUv8_check2 will still fail due to the mismatching checksum algorithm.

Ah yes that's a good catch. I've held that patch while we discuss things here and in the handoff spec forum.

Quoted 10 lines

Regards,
Raymond

Quoted 7 lines

I’ve also reached out to the author of the EDK2 implementation to make them aware of the change.

[1]
https://trustedfirmware-a.readthedocs.io/en/latest/about/release-information.html
[2] https://github.com/OP-TEE/optee_os/pull/7531