sha3-384 mismatch

Gustavo Niemeyer gustavo.niemeyer at canonical.com
Fri Dec 2 18:15:31 UTC 2016


The broken snap is a prefix of the actual snap:

[niemeyer at nomade ~/test]% dd if=cr5pkasGhR7N3M8wKfP9DJqGxbBGeET2_25.snap
of=broken.snap bs=409018 count=1
1+0 records in
1+0 records out
409018 bytes (409 kB, 399 KiB) copied, 0,0024764 s, 165 MB/s

[niemeyer at nomade ~/test]% sha3384 broken.snap
broken.snap:
 d0e1cd6d578c8eaab13e10dac4acbd7e8f6337da45b291fa7ae0358a29393059732b29bb61a65d18e693b8e6e8a53b62


Either the CDN is returning a successful code on interruption, or we're
mishandling the actual interruption code.



On Fri, Dec 2, 2016 at 2:52 PM, Michael Vogt <michael.vogt at canonical.com>
wrote:

> On Fri, Dec 02, 2016 at 02:32:03PM +0100, David Barth wrote:
> > On Fri, Dec 2, 2016 at 1:04 PM, Pegenaute Bresme, Xavier <
> > xpegenautebr at iam.cat> wrote:
> [..]
> > > - Download snap "snapweb" (25) from channel "stable" (sha3-384 mismatch
> > > downloading snapweb: got 8b83c8eb7f7aa306bc342fd1b424fa
> > > 95ccf379c068c4735085bc81ee6b51bb02a23b8c3c2a34f842619d7650b3152787 but
> > > expected d0e1cd6d578c8eaab13e10dac4acbd7e8f6337da45b291fa7ae0358a2939
> > > 3059732b29bb61a65d18e693b8e6e8a53b62)
> > >
> >
> > What is surprising is the "expected" signature.
> > Snap is downloading the correct armhf build for 0.21.2, ie #25, and the
> > SHA3 it obtained corresponds to the published version.
>
> This version of snapd has a mixup of expected vs actual hash, this is
> fixed in git. Sorry for the confusion.
>
> I would love to see the actual file that got downloaded, that is
> probably tricky because currently we delete those iirc. It would be
> good to have the file to see if its garbage or a mostly valid squashfs
> with some garbage in between or something else. Also size would be
> interessting etc.
>
> Cheers,
>  Michael
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>



-- 
gustavo @ http://niemeyer.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161202/4d0d9d7e/attachment.html>


More information about the Snapcraft mailing list