NetBSD Problem Report #56896
From www@netbsd.org Tue Jun 21 08:15:28 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id DBFB91A921F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Jun 2022 08:15:28 +0000 (UTC)
Message-Id: <20220621081527.36FF21A9239@mollari.NetBSD.org>
Date: Tue, 21 Jun 2022 08:15:27 +0000 (UTC)
From: rvp@SDF.ORG
Reply-To: rvp@SDF.ORG
To: gnats-bugs@NetBSD.org
Subject: mtree checksum mismatch of some i386 compat libraries
X-Send-Pr-Version: www-1.0
>Number: 56896
>Category: misc
>Synopsis: mtree checksum mismatch of some i386 compat libraries
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 21 08:20:00 +0000 2022
>Last-Modified: Wed Jun 22 10:10:01 +0000 2022
>Originator: RVP
>Release: NetBSD/amd64 9.99.97
>Organization:
>Environment:
NetBSD 9.99.97 NetBSD 9.99.97 (GENERIC) #0: Thu Jun 9 07:01:27 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Certain i386 compat libraries show checksum mismatches when you run mtree:
---
/root# cat /etc/mtree/set.[bcg-x]* | mtree -e -p /
dev/pts:
permissions (0755, 0555)
usr/lib/i386/libkadm5clnt.so.14.0:
sha256 (0x88d65c32cf89781fb6fb9d9718549fe571b95e6f7a61c1e9fb7e75848289ade2, 0x23fbcb62a7ca31b4a7f1369520af622cd318b5b7ea6addaba18c77def0d5c6ad)
usr/lib/i386/libldap.so.5.0:
sha256 (0xd87666bf036c44a94f85fd2e81fcb509a7734e25a243b5d4d72be15dc79f16c7, 0x0ec0c2b632d62eadc4af76012449e5f7f907a658dfbe315a38708a5316792dce)
usr/lib/i386/libldap_r.so.5.0:
sha256 (0xab0af627309befc8bb39af66edd35135b9a140b214918ff16dade9e0ca61d963, 0x22158c7b51ffd9338ea55b54ab466d6dd035e2221330ed66ae54a26446dedf2f)
[...]
/root#
---
Notice that only the checksums are wrong; the file sizes are the same.
No idea how this could happen, but, this is not a new issue (I think
I've noticed this last year too...)
NetBSD 9.2_STABLE reports this:
---
/root# uname -a
NetBSD x202e.localdomain 9.2_STABLE NetBSD 9.2_STABLE (GENERIC) #0: Mon Jun 6 11:36:16 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
/root# cat /etc/mtree/set.[bcg-x]* | mtree -e -p /
usr/lib/i386/libkadm5srv.so.15.0:
sha256 (0xf2f4000bb322ac102e8c1f6f411f2b9d4200fd2675739e91867c2c13b1644214, 0xc347f1b233a2e1a84d41d2143f414716bfe4a159b079914306d36e36a77dd56f)
[...]
/root#
---
The files in /etc/mtree/ are the ones correctly merged by etcupdate(8).
Thx,
-RVP
>How-To-Repeat:
Update NetBSD binary sets and run the command-line as shown.
>Fix:
No clue about this.
>Audit-Trail:
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: misc/56896: mtree checksum mismatch of some i386 compat
libraries
Date: Wed, 22 Jun 2022 08:22:52 +0000 (UTC)
Updating to 9.99.98 produces a mismatch in a _different_ Kerberos compat
library now:
---
/# uname -a
NetBSD x202e.localdomain 9.99.98 NetBSD 9.99.98 (GENERIC) #0: Tue Jun 21 12:20:43 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
/# mtree -e < /etc/mtree/set.base
dev/pts:
permissions (0755, 0555)
usr/lib/i386/libkadm5srv.so.15.0:
sha256 (0x2f043296de56d743ab1ccc668623bb0e55963b22ab1c9c8d734b6d48e673fddb, 0x2d4d9a289c46f691ea62870217bc96aaa1047abf59abf71143258fa9b41b1530)
usr/lib/i386/libldap.so.5.0:
sha256 (0x9034a9c7665ea69b7f375ac019d803385d49e5d3647f7e78afb8b59b0c8b87ae, 0x151ef9836ee38de5e2f7988e3b86afe7513cc12bda148d306001036d888c340d)
usr/lib/i386/libldap_r.so.5.0:
sha256 (0xcdeb0d10c50cb93865cce417942cd70e1f825368f701102f3b88bd3c8b4cecbc, 0xca45291a2fb3dd4fc49e80dfa159d55e83e2dd9237a7a7ade547d3538fdfc04f)
[...]
/#
---
-RVP
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: misc/56896: mtree checksum mismatch of some i386 compat
libraries
Date: Wed, 22 Jun 2022 08:45:20 +0000 (UTC)
On Wed, 22 Jun 2022, RVP wrote:
> Updating to 9.99.98 produces a mismatch in a _different_ Kerberos compat
> library now:
>
> ---
> /# uname -a
> NetBSD x202e.localdomain 9.99.98 NetBSD 9.99.98 (GENERIC) #0: Tue Jun 21 12:20:43 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
> /# mtree -e < /etc/mtree/set.base
> dev/pts:
> permissions (0755, 0555)
> usr/lib/i386/libkadm5srv.so.15.0:
> sha256 (0x2f043296de56d743ab1ccc668623bb0e55963b22ab1c9c8d734b6d48e673fddb, 0x2d4d9a289c46f691ea62870217bc96aaa1047abf59abf71143258fa9b41b1530)
> usr/lib/i386/libldap.so.5.0:
> sha256 (0x9034a9c7665ea69b7f375ac019d803385d49e5d3647f7e78afb8b59b0c8b87ae, 0x151ef9836ee38de5e2f7988e3b86afe7513cc12bda148d306001036d888c340d)
> usr/lib/i386/libldap_r.so.5.0:
> sha256 (0xcdeb0d10c50cb93865cce417942cd70e1f825368f701102f3b88bd3c8b4cecbc, 0xca45291a2fb3dd4fc49e80dfa159d55e83e2dd9237a7a7ade547d3538fdfc04f)
> [...]
> /#
> ---
>
Well, the kernel version change in the ident section explains why all the
SHA256 hashes are completely different now:
---
Displaying notes found in: .note.netbsd.ident
Owner Data size Description
NetBSD 0x00000004 IDENT 999009800 (9.99.98)
---
But, why is a _different_ Kerberos library showing a mismatch?
-RVP
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.