You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signing firmware files prior to delta creation succeeds. It's unclear when this regression happened due to a shell script issue in 175_sign_delta_upgrade.test that erroneously caused this test to succeed.
Therefore, the recommended way of creating delta firmware images is to:
Create and sign the regular (non-delta) firmware file
Modify the firmware file with the delta
Do NOT sign the delta firmware update files until this issue is fixed since they can't be verified.
Note that firmware signatures cover the result of the running the delta data through the xdelta3 algorithm. This is also true of the regular lossless compression. I.e., you're not signing a hash of the compressed data, you're signing a hash of the uncompressed data. That means that fwup will succeed so long as the .fw's contents can get you to the exact uncompressed data that was signed.
To my knowledge, users of delta firmware updates with fwup always sign first since that's integrated into their CI or via a signing computer. Then they upload the signed .fw file to a firmware update service which runs a script to create the deltas depending on the versions of firmware that exist on devices in the field. In other words, I don't believe this to be a production-affecting issue. It's still very important, since this should work and will certainly cause a lot of confusion for anyone who stumbles on it.
The text was updated successfully, but these errors were encountered:
See #227 for discussion
especially how this has been an issue for a while and likely doesn't
affect anyone. Still want it fixed, but no need to waste more people's
time on looking into it any more.
See #227 for discussion
especially how this has been an issue for a while and likely doesn't
affect anyone. Still want it fixed, but no need to waste more people's
time on looking into it any more.
Signing firmware files prior to delta creation succeeds. It's unclear when this regression happened due to a shell script issue in
175_sign_delta_upgrade.test
that erroneously caused this test to succeed.Therefore, the recommended way of creating delta firmware images is to:
Do NOT sign the delta firmware update files until this issue is fixed since they can't be verified.
Note that firmware signatures cover the result of the running the delta data through the xdelta3 algorithm. This is also true of the regular lossless compression. I.e., you're not signing a hash of the compressed data, you're signing a hash of the uncompressed data. That means that
fwup
will succeed so long as the.fw
's contents can get you to the exact uncompressed data that was signed.To my knowledge, users of delta firmware updates with
fwup
always sign first since that's integrated into their CI or via a signing computer. Then they upload the signed.fw
file to a firmware update service which runs a script to create the deltas depending on the versions of firmware that exist on devices in the field. In other words, I don't believe this to be a production-affecting issue. It's still very important, since this should work and will certainly cause a lot of confusion for anyone who stumbles on it.The text was updated successfully, but these errors were encountered: