Skip to contentSkip to conversation

Different xen-3.4.3.tar.gz in Fedora RPM

DISCUSSION Joanna Rutkowska 6 participants 11 messages Jun 18, 2010

lore
Share & tools
lore
#0 lore raw

So, the MD5 for the xen-3.4.3.tar.gz I downloaded from:

http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz

which for me reads:

f8d001eb9e08525c451d38deb93908b1

is *different* than expected by Fedora F13 RPM:

http://cvs.fedoraproject.org/viewvc/F-13/xen/sources?revision=1.59&view=markup

which is:

cbe84c44bc156ad1b4a20dc1c73464b8

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions -- changes (cosmetic cleanup mostly) are innocent, but, hey, why would anybody do such a thing? After allm we would expect only one version of xen-XXX.tar.gz, right? Patches should be the proper way for customizing tarballs for packaging, no?

Or am I missing something?

joanna.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 10 lines · Joanna Rutkowska

So, the MD5 for the xen-3.4.3.tar.gz I downloaded from:

http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz

which for me reads:

f8d001eb9e08525c451d38deb93908b1

is *different* than expected by Fedora F13 RPM:

Quoted 8 lines

http://cvs.fedoraproject.org/viewvc/F-13/xen/sources?revision=1.59&view=markup

which is:

cbe84c44bc156ad1b4a20dc1c73464b8

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions --

You can also download the fedora version of xen-3.4.3.tar.gz using this direct link:

http://cvs.fedoraproject.org/repo/pkgs/xen/xen-3.4.3.tar.gz/cbe84c44bc156ad1b4a20dc1c73464b8/xen-3.4.3.tar.gz

j.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 17 lines · Joanna Rutkowska
Quoted 16 lines · Joanna Rutkowska

So, the MD5 for the xen-3.4.3.tar.gz I downloaded from:

http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz

which for me reads:

f8d001eb9e08525c451d38deb93908b1

is *different* than expected by Fedora F13 RPM:

http://cvs.fedoraproject.org/viewvc/F-13/xen/sources?revision=1.59&view=markup

which is:

cbe84c44bc156ad1b4a20dc1c73464b8

Quoted 8 lines
Quoted 2 lines

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions --

You can also download the fedora version of xen-3.4.3.tar.gz using this direct link:

http://cvs.fedoraproject.org/repo/pkgs/xen/xen-3.4.3.tar.gz/cbe84c44bc156ad1b4a20dc1c73464b8/xen-3.4.3.tar.gz

Michael (CC) might know more about it..

-- Pasi

#3 lore raw
Quoted 21 lines · Pasi Kärkkäinen
Quoted 20 lines · Joanna Rutkowska
Quoted 18 lines · Joanna Rutkowska

So, the MD5 for the xen-3.4.3.tar.gz I downloaded from:

http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz

which for me reads:

f8d001eb9e08525c451d38deb93908b1

is *different* than expected by Fedora F13 RPM:

http://cvs.fedoraproject.org/viewvc/F-13/xen/sources?revision=1.59&view=markup

which is:

cbe84c44bc156ad1b4a20dc1c73464b8

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions --

Quoted 7 lines
Quoted 5 lines

You can also download the fedora version of xen-3.4.3.tar.gz using this direct link:

http://cvs.fedoraproject.org/repo/pkgs/xen/xen-3.4.3.tar.gz/cbe84c44bc156ad1b4a20dc1c73464b8/xen-3.4.3.tar.gz

Michael (CC) might know more about it..

Yes, they will be different. I failed to find an offical xen-3.4.3.tar.gz when I built the rpm so I glued one together myself from the git and hg repositories (Judging by the dates of the unpacked tar file I think the official file was created after mine). I have compared the two now, and although there are slight differences (eg. more hg/git files left in the offical ones), they are functionally equivalent.

Michael Young

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw
In reply to Joanna Rutkowska
Quoted 8 lines · Joanna Rutkowska

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions -- changes (cosmetic cleanup mostly) are innocent, but, hey, why would anybody do such a thing? After allm we would expect only one version of xen-XXX.tar.gz, right? Patches should be the proper way for customizing tarballs for packaging, no?

Or am I missing something?

Well, I think this and your other point have one simple answer. If I wanted the maximum possible confidence in the bits I was building, I would obtain them from the original source, as it were. In this case that means, for example:

# hg clone -r RELEASE-3.4.3 http://xenbits.xensource.com/xen-3.4-testing.hg
If you want your own tarball for some reason:
# hg archive -t tgz xen-3.4.3.tar.gz

It doesn't seem very hard to me. I maintain the repo and sign the releases myself. Downloading tarballs from Fedora, or even from our own xen.org website, introduces more people between you and me. And it seems you very likely care about that.

-- Keir

Quoted 2 lines

joanna.

#5 lore raw
Quoted 16 lines · Keir Fraser
Quoted 8 lines · Joanna Rutkowska

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions -- changes (cosmetic cleanup mostly) are innocent, but, hey, why would anybody do such a thing? After allm we would expect only one version of xen-XXX.tar.gz, right? Patches should be the proper way for customizing tarballs for packaging, no?

Or am I missing something?

Well, I think this and your other point have one simple answer. If I wanted the maximum possible confidence in the bits I was building, I would obtain them from the original source, as it were. In this case that means, for example:

Quoted 6 lines
# hg clone -r RELEASE-3.4.3 http://xenbits.xensource.com/xen-3.4-testing.hg
If you want your own tarball for some reason:
# hg archive -t tgz xen-3.4.3.tar.gz

It doesn't seem very hard to me. I maintain the repo and sign the releases myself.

But you *do* publish sigs for Xen 4:

http://bits.xensource.com/oss-xen/release/4.0.0/xen-4.0.0.tar.gz.sig

So, why can't you do the same for 3.4.3 tarball?

Sure, I could use hg in my RPM Makefile, but this would require me to install hg first, and also the download process I think takes longer than if it was a simply tar, and also requires to create a tmp directory that later must be removed.

Quoted 4 lines

Downloading tarballs from Fedora, or even from our own xen.org website, introduces more people between you and me. And it seems you very likely care about that.

From the security point of view it doesn't matter, as long as both are signed by one of the keys signed by xen.org.

j.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw

Keir Fraser writes ("Re: [Xen-devel] Different xen-3.4.3.tar.gz in Fedora RPM"):

Quoted 5 lines
Quoted 3 lines · Joanna Rutkowska

But you *do* publish sigs for Xen 4:
http://bits.xensource.com/oss-xen/release/4.0.0/xen-4.0.0.tar.gz.sig
So, why can't you do the same for 3.4.3 tarball?

Well spotted. This was a mistake; my release script failed to do "vcs add" to add the signature (which I did generate at the time) to the tree which got uploaded to the distribution site.

I have now uploaded the signature and added a link to it on the archive release webpage for 3.4.4

Ian.

#8 lore raw
Quoted 7 lines · Ian Jackson

Keir Fraser writes ("Re: [Xen-devel] Different xen-3.4.3.tar.gz in Fedora RPM"):

Quoted 5 lines
Quoted 3 lines · Joanna Rutkowska

But you *do* publish sigs for Xen 4:
http://bits.xensource.com/oss-xen/release/4.0.0/xen-4.0.0.tar.gz.sig
So, why can't you do the same for 3.4.3 tarball?

Quoted 7 lines

Well spotted. This was a mistake; my release script failed to do "vcs add" to add the signature (which I did generate at the time) to the tree which got uploaded to the distribution site.

I have now uploaded the signature and added a link to it on the archive release webpage for 3.4.4

Many thanks Ian! My Makefile is happy now [1] :)

joanna.

[1]
https://qubes-os.org/gitweb/?p=joanna/xen.git;a=commitdiff;h=ab1a74c5c40bb83253830c82815d8e5cc6a5de12

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw
In reply to Keir Fraser
Quoted 16 lines · Keir Fraser
Quoted 8 lines · Joanna Rutkowska

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions -- changes (cosmetic cleanup mostly) are innocent, but, hey, why would anybody do such a thing? After allm we would expect only one version of xen-XXX.tar.gz, right? Patches should be the proper way for customizing tarballs for packaging, no?

Or am I missing something?

Well, I think this and your other point have one simple answer. If I wanted the maximum possible confidence in the bits I was building, I would obtain them from the original source, as it were. In this case that means, for example:

Quoted 8 lines
# hg clone -r RELEASE-3.4.3 http://xenbits.xensource.com/xen-3.4-testing.hg
If you want your own tarball for some reason:
# hg archive -t tgz xen-3.4.3.tar.gz

It doesn't seem very hard to me. I maintain the repo and sign the releases myself. Downloading tarballs from Fedora, or even from our own xen.org website, introduces more people between you and me. And it seems you very likely care about that.

Though bear in mind that producing xen-3.4.3.tar.gz in this way means you will download the qemu parts from http://xenbits.xensource.com/git-http/qemu-xen-3.4-testing.git at build time, which might not be what you want.

Michael Young

#10 lore raw
In reply to Joanna Rutkowska
Quoted 23 lines · Joanna Rutkowska

So, the MD5 for the xen-3.4.3.tar.gz I downloaded from:

http://bits.xensource.com/oss-xen/release/3.4.3/xen-3.4.3.tar.gz

which for me reads:

f8d001eb9e08525c451d38deb93908b1

is *different* than expected by Fedora F13 RPM:

http://cvs.fedoraproject.org/viewvc/F-13/xen/sources?revision=1.59&view=markup

which is:

cbe84c44bc156ad1b4a20dc1c73464b8

So, I downloaded xen-3.4.3.tar.gz from fedora mirror (using their original Makefile for RPM building), and diffed the two versions -- changes (cosmetic cleanup mostly) are innocent, but, hey, why would anybody do such a thing? After allm we would expect only one version of xen-XXX.tar.gz, right? Patches should be the proper way for customizing tarballs for packaging, no?

Quoted 4 lines

Or am I missing something?

joanna.

I find this quite worrying as well. If one set of source has been tampered with, which one has been tampered with? Did someone modify the Fedora sources rather than patch them? Were the Xensource patches re-generated without incrementing the version number?

I'm rather less worried that the changes are malicious knowing your reputation :-) but even so this is still worrying.

jch