NetBSD Problem Report #57473

From www@netbsd.org  Sun Jun 18 15:10:06 2023
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 480561A923E
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Jun 2023 15:10:06 +0000 (UTC)
Message-Id: <20230618151004.3D4FD1A9241@mollari.NetBSD.org>
Date: Sun, 18 Jun 2023 15:10:04 +0000 (UTC)
From: hpaluch@seznam.cz
Reply-To: hpaluch@seznam.cz
To: gnats-bugs@NetBSD.org
Subject: 9.3-RELEASE/amd64 base - mtree checksum mismatch usr/lib/i386/libkadm5srv.so.15.0
X-Send-Pr-Version: www-1.0

>Number:         57473
>Category:       install
>Synopsis:       9.3-RELEASE/amd64 base - mtree checksum mismatch usr/lib/i386/libkadm5srv.so.15.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 18 15:15:00 +0000 2023
>Originator:     Henryk Paluch
>Release:        9.3-RELEASE from NetBSD-9.3-amd64.iso
>Organization:
N/A
>Environment:
NetBSD netbsd-vm 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When verifying mtree of base.tar.xz set in 9.3-RELEASE there is reported single file mismatch (1st hash is expected, 2nd is found):

usr/lib/i386/libkadm5srv.so.15.0: 
        sha256 (0xa6bc0eba3aa08db46f668ad10e6002feb62273b23ce020c86ec8b8f394680d2d, 0x5a99994d8af8c44d6a558267ea1a0e0fe3906b0bc3902be1656272b4347f5399)

>How-To-Repeat:
Here is example how you can reproduce problem independent of installation (so we can rule out file corruption on extraction).

Requirements:
- curl package installed
- doas package installed and configured to allow to become root

How to reproduce:

cd
curl -fLO http://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/base.tar.xz
curl -fLO http://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/amd64/binary/sets/MD5
grep -w base.tar.xz MD5 > MD5.base

# NOTE: MD5.base contains: MD5 (base.tar.xz) = 1ca2d3cc3d057eb6880da34a2b8012dc

md5 -c MD5.base # no error reported
mkdir -p unpack
doas tar xpf base.tar.xz -C unpack
cd unpack && doas mtree -e -f etc/mtree/set.base

usr/lib/i386/libkadm5srv.so.15.0: 
        sha256 (0xa6bc0eba3aa08db46f668ad10e6002feb62273b23ce020c86ec8b8f394680d2d, 0x5a99994d8af8c44d6a558267ea1a0e0fe3906b0bc3902be1656272b4347f5399)

This behaviour was tested on 2 different NetBSD 9.3 installations - one VM under Linux/KVM another one bare-metal with same results.
>Fix:
Unknown.

However found two similar reports, but for other NetBSD versions and sometimes other libraries:

https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56136
https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56896

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.