From nobody Fri Oct 22 14:36:01 2021 X-Original-To: freebsd-stable@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 C7DCB18195B9 for ; Fri, 22 Oct 2021 14:36:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HbRjg2KWhz3FVn for ; Fri, 22 Oct 2021 14:36:07 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.16.1/8.16.1) with ESMTPS id 19MEa0U8010277 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 22 Oct 2021 10:36:00 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:917c:bed3:acc8:4357] ([IPv6:2607:f3e0:0:4:917c:bed3:acc8:4357]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 19MEa0jI076189 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 22 Oct 2021 10:36:00 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <9bd8a15d-4800-ee21-2c4b-27c316467f87@sentex.net> Date: Fri, 22 Oct 2021 10:36:01 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Content-Language: en-US To: FreeBSD-STABLE Mailing List From: mike tancsa Subject: ufs_dirbad: /mnt: bad dir ino 50626 at offset 0: mangled entry Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 X-Rspamd-Queue-Id: 4HbRjg2KWhz3FVn X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:1::12 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [-3.29 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[sentex.net]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N In one of my VMs, I do a bunch of testing to a nano image on /dev/md0 and increasingly I am getting a panic on umounting the file system The image is just truncate -s 5G /tmp/junk.bin mdconfig -f /tmp/junk.bin and then I dd my nano image, mount it, make some configuration changes and then umount it. After cycles of this, unmounts, mounts etc, I get panic: ufs_dirbad: /mnt: bad dir ino 50626 at offset 0: mangled entry cpuid = 1 time = 1634912598 KDB: stack backtrace: #0 0xffffffff80c77035 at kdb_backtrace+0x65 #1 0xffffffff80c28a47 at vpanic+0x187 #2 0xffffffff80c288b3 at panic+0x43 #3 0xffffffff80f345f7 at ufs_lookup_ino+0xdc7 #4 0xffffffff80ceae1d at vfs_cache_lookup+0xad #5 0xffffffff80cf872c at lookup+0x46c #6 0xffffffff80cf785c at namei+0x26c #7 0xffffffff80d1c979 at vn_open_cred+0x509 #8 0xffffffff80d12a3e at kern_openat+0x26e #9 0xffffffff810b4d3c at amd64_syscall+0x10c #10 0xffffffff8108bdab at fast_syscall_common+0xf8 Uptime: 4m48s I forced an fsck on reboot, and the file system is clean. I also deleted /mnt and recreated the directory and still get this issue.  Any idea what might be causing it or how I can better track it down ?     ---Mike