From owner-freebsd-stable@freebsd.org Fri Feb 26 16:02:46 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7E3985652A2 for ; Fri, 26 Feb 2021 16:02:46 +0000 (UTC) (envelope-from ardovm@yahoo.it) Received: from sonic314-19.consmr.mail.ir2.yahoo.com (sonic314-19.consmr.mail.ir2.yahoo.com [77.238.177.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnDvT26Shz4TGW for ; Fri, 26 Feb 2021 16:02:44 +0000 (UTC) (envelope-from ardovm@yahoo.it) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1614355363; bh=P6X9rcyqXsR1EVukAwwK4blCtx3rwoJJUoTzRuW3oGe=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ezm9ubqf5qTT+cSn7ya9svLiI/97O4fsK++l6av+c0ESmPUOeUB/zP2Xj56X8GllazPuGC2SkQpHbq1q5GRC6AbrvgvjvPtdpVBqHOAWKlElcbDX/Qe3hjaRKw2moRsEc84NuRtsHzlBjBqIXIrDSITLe+YZ192iCrkQE0y23eoQds0cG7hAoFQM5N6eNYvzDXgYKBogQr7k6+/LUcIi4LW0jm9RKRVEs84tbMs7rHZFX/G8TYeRyj1P0QSNkk1ug1pp+BbVFk8pRmw9Vf034D5CaE3vJvU8IfX/YcF4dXrvGkrHiNMmlVbWA2CAG0Rx/WlLJFhN9rbNwOV0ZAePuw== X-YMail-OSG: 8n6oc1gVM1lFwG6Op1nMpBL1SkCCOdr8LP1stCzuSGt4LRj3QsugYFJ10FyvUBV .u0hwZTCKrhCHAK4aJC7q.4lUGdLwntHR6V8ybI4mWdZ5KmW4L4td_.RRNHCwg8Tehn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r0mK4qDJyBHLEz0KU6VScUVRJRfKk9kMLQ0_WN07DBVKde76 nW0sqz7Ds9GglEx5Y_rouTXk46Fq5I9OhS2q4bCFzwbltEV290K0iZOI4P6LASCZ78RRLQJzExy6 LiZ_D7b6uNNCcJdx14WUmKqDY1XwBHZK0iWXAQ5UbeIJp.Rb8g5A3PN4sixuHZjaOeB6V6cGnNTo 8OAbA2JFy.xBNqf1BHoo_g9c- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ir2.yahoo.com with HTTP; Fri, 26 Feb 2021 16:02:43 +0000 Received: by smtp422.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4b8af30728a659956d002b7be0b99b78; Fri, 26 Feb 2021 16:02:38 +0000 (UTC) Received: by nuvolo.localdomain (Postfix, from userid 1001) id B0CCD126815; Fri, 26 Feb 2021 17:02:35 +0100 (CET) Date: Fri, 26 Feb 2021 17:02:35 +0100 From: Arrigo Marchiori To: freebsd-stable@freebsd.org Subject: Trying do mount a slice containing a mounted partition makes the filesystem unreadable Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline References: X-Mailer: WebService/1.1.17828 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.9.1) X-Rspamd-Queue-Id: 4DnDvT26Shz4TGW X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.it]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[yahoo.it:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.it,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.it]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB]; RBL_DBL_DONT_QUERY_IPS(0.00)[77.238.177.145:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.it:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[77.238.177.145:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[77.238.177.145:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[77.238.177.145:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 16:02:46 -0000 Dear All, I think I found a bug that is similar to an already reported one, but I am not sure. Description: when a BSD partition is mounted to / (suppose /dev/da0s2a), if I try to mount its containing slice (/dev/da0s2) I receive a ``strange'' error message, and from that moment the mounted filesystem becomes unreadable. This problem appears: - on a memstick built from 11.4-STABLE r369279, - on the ``official'' 12.2-RELEASE memstick, both tested on amd64. Fun fact: the problem does _not_ appear if the already-mounted filesystem is mounted from /dev/ufs/label instead of /dev/da0s2a. Steps to reproduce on 12.2-RELEASE ================================== 1- download the official memstick image for 12.2-RELEASE-amd64 and flash it into a USB pen drive 2- edit /boot/loader.conf on the memstick adding the following lines (needed to boot successfully on my test system): kern.vty=sc kern.cam.boot_delay=10000 kern.cam.scsi_delay=10000 3- edit /etc/fstab on the memstick and change the root device from /dev/ufs/FreeBSD_Install to /dev/da0s2a 4- boot the memstick and open a shell 5- # mount /dev/da0s2 /mnt mount: /dev/da0s2: No such file or directory <--- strange message! 6- the filesystem is now unreadable! For example, trying to run some binaries not yet in the cache: # man /usr/bin/man: Device not configured If I try to reboot, the console is flooded by: > vm_fault: pager read error, pid 1 (init) This problem also appears on a memstick built from 11.4-STABLE r369279. The error messages are different, but the outcome is the same. Expected behavior ================= If the root partition is mounted from /dev/ufs/label (i.e. you skip step 3 above) the culprit mount command (step 5 above) gives the following error message: > mount: /dev/da0s2: Operation not permitted and the system remains healty and stable. Am I seeing PR 222948: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222948 or is it something else? Thank you in advance and best regards, -- Arrigo http://rigo.altervista.org