From nobody Fri Nov 12 21:47:08 2021 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1D24018503A0 for ; Fri, 12 Nov 2021 21:47:12 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HrXHM6t6kz3G8S for ; Fri, 12 Nov 2021 21:47:11 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-il1-x132.google.com with SMTP id l8so10326742ilv.3 for ; Fri, 12 Nov 2021 13:47:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VUHbwJYXGs9nAu+BxmXNktKwshToAiVZnX+nouDRp8Q=; b=UG8GQhF3opyqKmg6BoKMWHo6XHdTCWd9JDbNkbkk16AWZn78Q2da5zOracRHyZGuAb cdNICwiJncWlmhecoqECkM/mwhJSdVEB+BNSjTaexGMg81mf2Zlf2o4AQHsL0gfbFDoh zcOh1nHrTjFCSbTSG2n4A1je9YtywDsHo6pu7OqON2XeVMPyE2A2ExZEYtVy2VmKK9Dx NyZzgWr2KzPyFI0hcev7Kjd0mWJc/xeWgxDzjZz1ZxuyjQOy9xyv5U0U4uxL7fY8OQ1l VBavoLpcw01/ZAVvYJ1UjoIRsFRCwV5K5qv38ccCYwfq2EHJ369AkK6m3SUWFQpM0Gor 4F5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=VUHbwJYXGs9nAu+BxmXNktKwshToAiVZnX+nouDRp8Q=; b=nQjEPDItH46fMjrsh8OntjGTDmZ2ZioGINNM3hqddAzfvMQhAmrDSs0aPMxUT66K+x r5W4yMtMw5vr2eWZvX34OArUHDLrYFnMk099XCQo8MmhWGe0TjC68/KnuD2UxQJOBp8Z O/Mts5cp+DDhUV+Okiq4Rv9XUELgpm2ZN7/Bf1doNaTSW4/j3Alig9z40hxVbGFIr6zs HKZiKx4MYp09HMfE85dQNaRE5LO5/6WyMlXoDBZPf108VyHWTh9cv5fDIGDVSIgDN8yq YClFOPtJ/tseF/gJseZBcTvRTVSYxjmR8X/XI9UAlUAfKoRt7M9sBsPD8LPSqo+C2IID 5rQg== X-Gm-Message-State: AOAM530ekPZdrjl4ZkLdZXdvgFdjNWx1sHpUzLWvbbc8IibI0XDMAWsP /pULoxAnw7J0Gp2LqIjlG6kmXuDSmkM= X-Google-Smtp-Source: ABdhPJxJUXYf/aEm2odi2mhsHdDlug2gAwuvGvHg2Jlw9IW9ddG75/S6u6rJrJFIic6B8xo/zs0/AA== X-Received: by 2002:a92:a304:: with SMTP id a4mr10944515ili.78.1636753631301; Fri, 12 Nov 2021 13:47:11 -0800 (PST) Received: from nuc ([142.126.186.191]) by smtp.gmail.com with ESMTPSA id h10sm4838024ild.85.2021.11.12.13.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 13:47:10 -0800 (PST) Date: Fri, 12 Nov 2021 16:47:08 -0500 From: Mark Johnston To: "Herbert J. Skuhra" Cc: current@freebsd.org Subject: Re: Extracting base.txz files missing flags Message-ID: References: <87fss1rxfl.wl-herbert@gojira.at> <87ee7lrvhc.wl-herbert@gojira.at> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ee7lrvhc.wl-herbert@gojira.at> X-Rspamd-Queue-Id: 4HrXHM6t6kz3G8S X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Nov 12, 2021 at 09:04:47PM +0100, Herbert J. Skuhra wrote: > On Fri, 12 Nov 2021 20:22:38 +0100, "Herbert J. Skuhra" wrote: > > > > Hi! > > > > # uname -rms > > FreeBSD 12.2-RELEASE-p10 amd64 > > > > # cd tmp > > # fetch https://download.freebsd.org/ftp/releases/amd64/13.0-RELEASE/base.txz > > # tar -xzvf base.txz > > # find . -flags schg > > ./sbin/init > > ./var/empty > > ./usr/bin/opieinfo > > ./usr/bin/passwd > > ./usr/bin/su > > ./usr/bin/chpass > > ./usr/bin/opiepasswd > > ./usr/bin/login > > ./usr/bin/crontab > > ./usr/lib/librt.so.1 > > ./libexec/ld-elf.so.1 > > ./libexec/ld-elf32.so.1 > > ./lib/libc.so.7 > > ./lib/libcrypt.so.5 > > ./lib/libthr.so.3 > > > > On 13.0-STABLE (stable/13-n247985-ef1134110e80): > > > > # cd tmp > > # fetch https://download.freebsd.org/ftp/releases/amd64/13.0-RELEASE/base.txz > > # tar -xzvf base.txz > > # find . -flags schg > > ./var/empty > > > > On 14.0-CURRENT (main-n250458-c441592a0e15): > > > > # cd tmp > > # fetch https://download.freebsd.org/ftp/releases/amd64/13.0-RELEASE/base.txz > > # tar -xzvf base.txz > > # find . -flags schg > > # find . -flags schg,uarch > > ./var/empty > > > > PBKAC or bug? > > 12.3-RC1 (r371003): also affected > 13.0-RELEASE (releng/13.0-n244733-ea31abc261f): OK This seems to be a libarchive bug, somewhere in the extraction code. I can reproduce it trivially on UFS or ZFS and in a debugger I can see that SF_IMMUTABLE is present during extraction. There is some deferral logic to ensure that setting SF_IMMUTABLE is one of the last steps during extract, and the problem seems to be related to that mechanism.