GNU bug report logs

#70943 linux-libre is not reproducible (regression)

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #8 received at 70943@debbugs.gnu.org (full text, mbox, reply):

Received: (at 70943) by debbugs.gnu.org; 26 May 2024 18:17:19 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sun May 26 14:17:19 2024
Received: from localhost ([127.0.0.1]:42529 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1sBIQo-000209-SK
	for submit@debbugs.gnu.org; Sun, 26 May 2024 14:17:19 -0400
Received: from mail-yb1-f177.google.com ([209.85.219.177]:58784)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1sBIQl-0001zs-Te
 for 70943@debbugs.gnu.org; Sun, 26 May 2024 14:17:17 -0400
Received: by mail-yb1-f177.google.com with SMTP id
 3f1490d57ef6-df4e1366da6so4745184276.1
 for <70943@debbugs.gnu.org>; Sun, 26 May 2024 11:17:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1716747361; x=1717352161; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=l0/KCCgyoeRmaIGKKHGdLrSeZDs4bdlsMpjUdpQNNMo=;
 b=jTAs+TGSUGSkp7Sg0DDV8jcaG2ME9JGS7i/M8GRJwkJjvyoXTgBehLM/luPIQVekbD
 8jkD/EZIkWNtjJvC4gL3RpnI6j/k1ZqpYo9T9yhOWTgt7uz2+OLfAALQE26Pn2You8Cg
 obZ8CHfbZfLuBja0YCKTytC/qbtBVXvtP8ih6dzbAF8m5t/Gm6/Wr/X3qehboJZByjUa
 cOgZC2Y3++fSbtxkLCTQ/NiIcev3TgSp3U2IX15U2ECH9pMzf4zRgNFoVkWvcaAxHqBG
 uPbnRQNmB1eoVQ7JONd5g9lsVldUa1YZs9eblYWpoBIQNH4homhPD20IdSY//pe7pa9r
 pONg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1716747361; x=1717352161;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=l0/KCCgyoeRmaIGKKHGdLrSeZDs4bdlsMpjUdpQNNMo=;
 b=LvTOTKDMUeyXd3G9F1yepfxJuFbTqa1wswwlx1vfNd4v+9h3Ehpdwf3WIrafjRfZed
 EpH2fuJaBZ2DOzf+d8ySsQR4oU4aKdkE6xcVdr7sCkLYqZkm2+YuQ8cfY0b0anhA0kSE
 wvF/kVMr868Hzi5CXG/wPTjhqv05D3jxIF+Sai4vW/4BWFZPTbM4MuNdPLz8COpADsxm
 gAuRYAdSD+jVyOLmKR0aTEfbOHkOmEwUkExWajbdzJmlWm+bOPPC0Rejo6Z1Qt8RklzZ
 jBhhMouQrjMUgr88InEv9kRwTAasx5QwHVHI5Z3pX1Fgy5JTrd2lkYV+wOJFUZjoApUO
 Pzog==
X-Gm-Message-State: AOJu0YzyydT7cZozjAtzubOQEDGHZpHpmVzqa23FW8y41AIWLh+0oJVI
 2y0XqzgGp2vRqFE8C/jMv0mbUTityJs6LPtYPdJXN24cQEZ+TSTli5zzVrd+
X-Google-Smtp-Source: AGHT+IGpRMAuz3pb7QlmcElUQRFfGVVPhVP22rQY1nP/jFh5UPYQKK8ijcyI4oEIKLWPKv3Grk1XfQ==
X-Received: by 2002:a25:aa82:0:b0:df7:71b7:c353 with SMTP id
 3f1490d57ef6-df772222ea6mr8047393276.51.1716747360829; 
 Sun, 26 May 2024 11:16:00 -0700 (PDT)
Received: from hurd (dsl-153-139.b2b2c.ca. [66.158.153.139])
 by smtp.gmail.com with ESMTPSA id
 af79cd13be357-794abd08f5asm239885985a.89.2024.05.26.11.16.00
 for <70943@debbugs.gnu.org>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 26 May 2024 11:16:00 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 70943@debbugs.gnu.org
Subject: Re: bug#70943: linux-libre is not reproducible (regression)
In-Reply-To: <87a5ksz9jg.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 14
 May 2024 11:40:35 -0400")
References: <87a5ksz9jg.fsf@gmail.com>
Date: Sun, 26 May 2024 14:15:59 -0400
Message-ID: <87o78sh21s.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 70943
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello,
>
> I've investigated non-determinism in our linux-libre package, which
> sadly appears to have regressed in that regard since I last looked into
> it 3 years ago (see commit 01ea70a29c5c1ded31c37ce8c43192bc1956b2ca
> ("gnu: linux-libre: Make build reproducible.")).
>
> I'm currently seeing these differing files:
>
> $ diff -ql /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9{,-check}
> Files /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9/bzImage and /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9-check/bzImage differ
> Common subdirectories: /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9/lib and /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9-check/lib
> Common subdirectories: /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9/share and /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9-check/share
> Files /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9/System.map and /gnu/store/6vx6vkranmggv690ggm79zhdhwvmbji9-linux-libre-6.8.9-check/System.map differ
>
> I'll take a look at what Yocto does differently, if anything.

I didn't see anything special, although some BPF switches got turned on
in the kernel by default in newer 6.X releases, and BPF appears to
introduce non-determinism, accordingy to the Reproducible Builds website
which says this [0]:

   Several distributions noticed recent versions of the Linux Kernel are
   no longer reproducible because the BPF Type Format (BTF) metadata is
   not generated in a deterministic way. This was discussed on the
   #reproducible-builds IRC channel, but no solution appears to be in
   sight for now.

[0]  https://reproducible-builds.org/reports/2023-04/

So it seems there'll need to be some reproducibility work for that
feature in the kernel before it can be resolved (we could also disable
all BPF features, but that seems counter-current at this point in time).

-- 
Thanks,
Maxim




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 02:34:58 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.