🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.current
Article #57

Re: Filesystem errors on armv7 -current

#57
From: Warner Losh
Date: Mon, 19 Oct 2026 15:57
199 lines
14146 bytes
--0000000000003f7d65065e3393eb
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 19, 2026 at 9:40=E2=80=AFAM bob prohaska <fbsd@www.zefox.net> w=
rote:

> A Pi2B running
> FreeBSD pelorus.zefox.org 16.0-CURRENT FreeBSD 16.0-CURRENT #76
> main-n289925-6c305c3c3129: Sun Oct 11 15:20:02 PDT 2026
>  bob@pelorus.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm armv7
> 1600027 1600028
>
> is reporting errors during installworld of the form
>
> /usr: inode 67896768: check-hash failed
>
> and
>
> UFS /dev/da0s2d (/usr) cylinder checkhash failed: cg 846, cgp: 0xce917fd
> !=3D bp: 0x4e2a15c5
>

So this is a data corruption bug. Almost certainly. It may be related to
caching (or memory observability), or it may be something else. If the
errors are on boot, then something is writing it before the system went
down. If this occurs at runtime, it is likely a transfer error.


> There's an old bug report,
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267654
>
> which looks somewhat similar but is marked "Closed FIXED".
>

So symptoms may be the same, but the root cause is likely different.


> So far, the errors have not resulted in any build or install stoppages,
> but the install and reboot haven't completed yet.
>
> Is it worth reporting this behavior as a new bug? Old bug? Other? Not?
>

New bug. For the love of all that's holy, do not reopen the old bug.


> It's true that the kernel lags world by one index digit. Not sure how
> that happened.
>
> I can post console output, but it's mostly repetitive, as if the
> errors correct eventually or are ignored.
>
> /etc/fstab contains
>
> # more /etc/fstab
> # Custom /etc/fstab for FreeBSD embedded images
> #/dev/ufs/rootfs                /               ufs     rw              1
>             1
> #/dev/msdosfs/EFI               /boot/efi       msdosfs rw,noatime      0
>             0
> #tmpfs                  /tmp            tmpfs   rw,mode=3D1777    0      =
 0
>
> /dev/da0s2a     /       ufs     rw      1       1
> /dev/da0s2d    /usr    ufs     rw      1       1
> /dev/da0s1      /boot/msdos msdosfs rw,noatime 0 0
> /dev/da0s2b     none    swap    sw
>
> Swap is
>
> # swapinfo
> Device          1K-blocks     Used    Avail Capacity
> /dev/da0s2b       1843200    15644  1827556     1%
> so below the warning limit
>
> The storage device is SATA spinning rust on
> ugen0.6: <JMS578 SATA 6Gb/s JMicron Technology Corp. / JMicron USA
> Technology Corp.> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=
=3DON (500mA)
>

So  what's the actual disk? It could be that the disk is going bad too.
Though JMicron has a history of dodgy adapters (though that history
pre-dates this one, I think).

tl;dr: This is rare data corruption, but any is bad. So far, though, there
doesn't seem to be enough to trace the problem.  I suggest A/B tests if you
can, starting with a different non-JMicron-based USB adapter.

Warner

--0000000000003f7d65065e3393eb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g=
mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 19,=
 2026 at 9:40=E2=80=AFAM bob prohaska &lt;<a href=3D"mailto:fbsd@www.zefox.=
net">fbsd@www.zefox.net</a>&gt; wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">A Pi2B running<br>
FreeBSD <a href=3D"http://pelorus.zefox.org" rel=3D"noreferrer" target=3D"_=
blank">pelorus.zefox.org</a> 16.0-CURRENT FreeBSD 16.0-CURRENT #76 main-n28=
9925-6c305c3c3129: Sun Oct 11 15:20:02 PDT 2026=C2=A0 =C2=A0 =C2=A0bob@pelo=
rus.zefox.org:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm armv7 1600027 1600=
028<br>
<br>
is reporting errors during installworld of the form<br>
<br>
/usr: inode 67896768: check-hash failed<br>
<br>
and<br>
<br>
UFS /dev/da0s2d (/usr) cylinder checkhash failed: cg 846, cgp: 0xce917fd !=
=3D bp: 0x4e2a15c5<br></blockquote><div><br></div><div>So this is a data co=
rruption bug. Almost certainly. It may be related to caching (or memory obs=
ervability), or it may be something else. If the errors are on boot, then s=
omething is writing it before the system went down. If this occurs at runti=
me, it is likely a transfer error.</div><div>=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">
There&#39;s an old bug report, <br>
<a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267654" rel=
=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzilla/show_bu=
g.cgi?id=3D267654</a><br>
<br>
which looks somewhat similar but is marked &quot;Closed FIXED&quot;.<br></b=
lockquote><div><br></div><div>So symptoms may be the same, but the root cau=
se is likely different.</div><div>=C2=A0</div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">
So far, the errors have not resulted in any build or install stoppages,<br>
but the install and reboot haven&#39;t completed yet.<br>
<br>
Is it worth reporting this behavior as a new bug? Old bug? Other? Not?<br><=
/blockquote><div><br></div><div>New bug. For the love of all that&#39;s hol=
y, do not reopen the old bug.</div><div>=C2=A0</div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex">
It&#39;s true that the kernel lags world by one index digit. Not sure how<b=
r>
that happened.<br>
<br>
I can post console output, but it&#39;s mostly repetitive, as if the<br>
errors correct eventually or are ignored.<br>
<br>
/etc/fstab contains<br>
<br>
# more /etc/fstab<br>
# Custom /etc/fstab for FreeBSD embedded images<br>
#/dev/ufs/rootfs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 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avail Capacity<br>
/dev/da0s2b=C2=A0 =C2=A0 =C2=A0 =C2=A01843200=C2=A0 =C2=A0 15644=C2=A0 1827=
556=C2=A0 =C2=A0 =C2=A01%<br>
so below the warning limit<br>
<br>
The storage device is SATA spinning rust on <br>
ugen0.6: &lt;JMS578 SATA 6Gb/s JMicron Technology Corp. / JMicron USA Techn=
ology Corp.&gt; at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON =
(500mA)<br></blockquote><div><br></div><div><span style=3D"background-color=
:transparent">So=C2=A0 what&#39;s the actual disk? It could be that the dis=
k is going bad too.=C2=A0 Though JMicron has a history of dodgy adapters (t=
hough that history pre-dates this one, I think).=C2=A0</span></div><div><sp=
an style=3D"background-color:transparent"><br></span></div><div><span style=
=3D"background-color:transparent">tl;dr: This is rare data corruption, but =
any is bad. So far, though, there doesn&#39;t seem to be enough to trace th=
e problem.=C2=A0 I suggest A/B tests if you can, starting with a different =
non-JMicron-based USB adapter.</span></div><div><span style=3D"background-c=
olor:transparent"><br></span></div><div><span style=3D"background-color:tra=
nsparent">Warner</span></div></div></div>

--0000000000003f7d65065e3393eb--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <CANCZdfoA=VpQa2QendUxVL7Sd59ZC+fRw7nTGQ5Sx=mG_vnUpA@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <atY6ef-50K4cjAEM@www.zefox.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Warner Losh <imp@bsdimp.com>
Newsgroups: muc.lists.freebsd.current
Subject: Re: Filesystem errors on armv7 -current
Date: Mon, 19 Oct 2026 09:57:34 -0600
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CANCZdfoA=VpQa2QendUxVL7Sd59ZC+fRw7nTGQ5Sx=mG_vnUpA@mail.gmail.com>
References: <atY6ef-50K4cjAEM@www.zefox.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0000000000003f7d65065e3393eb"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="60906"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792425495; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-owner:list-unsubscribe:
	 list-subscribe:list-post; bh=3XOhHB47sixYajdpuMHH+PBtZcKB2k/X5nBHQdKByPc=;
	b=dLvCfVDdhBQzklPouylVXWL3uvgELS6O8FIf76WhCeLtxITQc/XmdsBYRCCAhrlEwSmcjr
	c6z3rveYx6UrFe1lCycqRz3VxX9DR3hxQVCCIKzm7d7uvF9eRY5fOlYh3+yJU0FL+Va01Y
	Y7M9M4ghoab8Q4t/uBrBe1+dxiLjVNLmPJwDd3wPgk5HUZx6CWylE9UpVk6Vb252k9oj6l
	uuJwpJ7WLEOROz9C+4zO9o34XGnAwswzBKlfLlEuvejOcw2pt11RATbZ48Td/6LDctigdE
	SLEHAtdwzrQlW/nBP6dvyKxQQt8LXtQi8T98+nDrSyecx/zX0t+6xX3eKpT04A==
X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=bsdimp-com.20251104.gappssmtp.com header.s=20251104 header.b=gvA4XNL2;
	arc=pass ("google.com:s=arc-20260327:i=1");
	spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::1134) smtp.mailfrom=wlosh@bsdimp.com;
	dmarc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=bsdimp-com.20251104.gappssmtp.com; s=20251104; t=1792425467; x=1793030267; darn=freebsd.org;
        h=content-type:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=3XOhHB47sixYajdpuMHH+PBtZcKB2k/X5nBHQdKByPc=;
        b=gvA4XNL2aRSA2FcVVJ3GLehGk1mUHRtEYW/Szi0GmbKKlGirC2LOnXIDEV5XjEq4Zr
         CF5yEKm44lVynCyRwwnR6SENqlHbM+mI55gw5r7JVTKn3FlIii8nJZLokrSXvgEx6ato
         bMK7Fc9bCU7eonk01bt4jkHkR4oYnNqDU/7kb43EzVlXfGib/50I/UQguYeVOMBHZW2M
         vQl0W0dEiMk3Jpq+gbENaxTD8FG3kaRm8qbyHbhk4MZmJKBroxZZjVys+LtfFp9ix7SZ
         4klg12BOnVg4yRBZnClF9mhLd5/yPhYsSjiLzJfePcIBAMX6I3bYvSQv4zfj7T5CWMsk
         BJWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1792425467; x=1793030267;
        h=content-type:cc:to:subject:message-id:date:from:in-reply-to
         :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=3XOhHB47sixYajdpuMHH+PBtZcKB2k/X5nBHQdKByPc=;
        b=QARhp+1Aj3cpi06OPkH1a3V/+rx20YRgngfNk/UQqOu/imel58CH3P7whMGyRThe1M
         1JjyIw8M4ViwozR2RiwFi7E3DoifKiPCOmZEV5TN9wzuA3jNiRWO7uUpTEuhLKvXUvAL
         4tAGSUPBaUxVje8G99ZPdl+SbS2kEGKOYsqtZdvBTkA6C9ttmncfFY0p5KjgUXzCgNQn
         7txlhJF3XL4O9SXqYSHkDbAlxcPPNUPkzZc8xj/iz6UrLfjgo6hEGN+fRxss9m4hAULd
         ZRmLiw6YDWRtxX5L5UCc+/PEO3elrlpkSMjRIu+6Iqf7hqcB8Xx1YEhpo1OrtQlczaVz
         iApg==
X-Gm-Message-State: AFq9FYLOdF//j1rE0Xm+Ii5Ujd0n3/xEm9gHpJJYrRcfqpx17hghAjpA
	Z6yczoHIxRctIvvGvoXuq4dLc4MjdcVS+AaXzpzkr/O+pfB80eFb/v2qg37SQWovB3bWBU/9gA0
	UlXt3BE8/VzgC0kTEPRe8/NZ39hRzkAol0wMVxYr+pOmIdD55qJBhB5c=
X-Gm-Gg: AYBFou0qsTl7LPm5UnEinD8nOqr70tRl4q0V+PRNdSJk1WSjOZyQx8ANdTXxyl8h7r9
	m6eqro7aOPVFnvDVhoR4ajPA9QSMFk3y9Bl5GxPiKr0iJpBVK7KfzHIUh2xxkD0ky4BzNViXr22
	DP03UR+36U3m0uFVh2U+zb4+4xp30lRuN8+38ae/MhSFEUT4CmIc5MnvMvZdNmntsUZPA8eTioT
	vnZ9vrQQ8RiGek7bFmnJzEw11/RbBqGvIPZ0oWxDNUvDNegiOo69lhAouDsXwFxFeeGPS0IY37R
	Qp7rb7p+tqGTBK6afOM2xOpaiodGQL6AtvCaKwWVUDjWlD2LQia2GNsdJ6ZxMAPXOKsTqVcXOjG
	iTNlhYIW+m6VVg3xwjWyz
Precedence: list
In-Reply-To: <atY6ef-50K4cjAEM@www.zefox.net>
X-Gm-Features: AclHuK8Jr7fjeTu5_bC3bQPutHZdS2cbTLiPLIxNUCBLn3cX3srEoa0Mg7APtqs
X-Spamd-Bar: -
X-Spamd-Result: default: False [-1.00 / 15.00];
	ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
	FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com];
	R_DKIM_ALLOW(-0.20)[bsdimp-com.20251104.gappssmtp.com:s=20251104];
	MIME_GOOD(-0.10)[multipart/alternative,text/plain];
	ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
	RCVD_COUNT_ONE(0.00)[1];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	RCPT_COUNT_TWO(0.00)[2];
	TO_DN_SOME(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-current@freebsd.org];
	R_SPF_NA(0.00)[no SPF record];
	DMARC_NA(0.00)[bsdimp.com];
	FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com];
	FROM_HAS_DN(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1134:from];
	TO_MATCH_ENVRCPT_SOME(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org];
	MISSING_XM_UA(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	DKIM_TRACE(0.00)[bsdimp-com.20251104.gappssmtp.com:+]
X-Rspamd-Queue-Id: 4j7gDX6b10z4QWL
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes