Thread (34 messages) 34 messages, 14 authors, 2011-05-26

Re: [PATCH 00/34] Make kernel build deterministic

From: Artem Bityutskiy <dedekind1@gmail.com>
Date: 2011-04-05 19:24:07
Also in: linux-arm-kernel, linux-edac, linux-hams, linux-scsi, linuxppc-dev

On Tue, 2011-04-05 at 08:49 -0700, Greg KH wrote:
On Tue, Apr 05, 2011 at 04:58:47PM +0200, Michal Marek wrote:
quoted
Hi,

this series makes it possible to build bit-identical kernel image and
modules from identical sources. Of course the build is already
deterministic in terms of behavior of the code, but the various
timestamps embedded in the object files make it hard to compare two
builds, for instance to verify that a makefile cleanup didn't
accidentally change something. A prime example is /proc/config.gz, which
has both a timestamp in the gzip header and a timestamp in the payload
data. With this series applied, a script like this will produce
identical kernels each time:
Very nice stuff.  Do you want to take the individual patches through one
of your trees, or do you mind if the subsystem maintainers take them
through theirs?
But unfortunately, it is very easy to break this and for sure it'll be
broken very soon.

So additionally, I'd suggest:
1. Instrument checkpatch.pl and make it err or warn on timestamps.
2. Probably instrument linux-next to rise a warning when people break
   this.

-- 
Best Regards,
Artem Bityutskiy (Битюцкий Артём)


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help