Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2016 19:54:38 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-stable@freebsd.org
Subject:   Not-so stable if you take a CAM error....
Message-ID:  <2b0c454b-c1a0-4b5b-e778-bf0939e90ae1@denninger.net>

next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms030305070203070503020907
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Got a (nasty) surprise this afternoon on my sandbox machine.

I was updating some Raspberry Pi2 machines which involved taking the sd
card out, sticking it in an adapter and plugging it into the sandbox,
then mounting the partition and using rsync.

Unfortunately one of the cards was, unknown to me, bad and returned a
write error during the update.

The machine panic'd immediately after the CAM write error popped up.

I was quite surprised by this, since (1) the SD card was (of course)
mounted as a UFS filesystem; it shows up as a CAM device, (2) the
machine itself is running off a ZFS root on a normal host-adapter and
thus there is no comingling of the buffer cache and (3) there were no
images being run from (can't, wrong architecture!) nor any system I/O
(e.g. pagefile) going to the SD card.

I certainly understand that under some circumstances (maybe even most
circumstances) taking a hard I/O error to a system device is going to
hose you and a panic() is arguably "least astonishment" when the price
of being wrong might be a corrupted system file or worse (e.g. corrupted
paged-out RSS, etc.)  But I didn't expect a panic out a failed write to
a device that is mounted and being used purely for data.

I don't have a crash dump but can almost-certainly reproduce this if
it's something that shouldn't happen and thus merits investigation.

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms030305070203070503020907
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G
A1UECBMH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QEBBQAEggIABoHHcnqn
oKhFVdel2KUIy820CRTHryO7orfQNwTa4DDKm/8J4o39KkcQWDlPcolo7Xq/oQT601LDm8TX
Ry/MirI/GmCsmSt8e/ct/n451r+YfhLX3x+xzBfLV4Xr09QBvj/SsdVfUhvvKxW+ywQLybfb
aCQpyB5K27IPujCxMdpcVpQzijsngc/OiSgQp0la9doju5H6DSHA1Kb9yhX9PvgwdpBm4IpQ
/Gtnqa73lhEH96xkFkgCHoHVhhNooUgL9D8K07CCNwJh+ZW5pHN4DmlX/UDfRlCBfxL6yw2p
m82GiWFdHdBgrU5fdgqnRhVa+qKcAoXkOUEBeNH9p+nnrHSZipJmBd9D0vSbdpZwVaq8Dpib
1Pv4zwKODsc/WLDdtxBfE1+AUCYR4wPnpp0u4LdveUUr7xvnDJspU5i3bScfUtkvXw5ETSKf
gAaXjR3AFuBKyGW5SHEEvMhBJ1yPxjI0iAgq7wHhEQ1DL3YBX43D5o0dQC6aMs2BRjujdOtj
gSHIN7sBBOwkAc7WWBi+ZWjev7RLNkVT7rEG3nwaXyP4nIcdFz6OiqbPt7DAd/+bKPoXlmI+
cDwY9YvEI88AWfv4hASez7l4ujIgHRPhxX7UfRXOX8rnfrNGVU2BXkmg2f4ctnlgyBHdIUP0
1IjqZoQGAH0zNd/bnDOY+5uP+nEAAAAAAAA=
--------------ms030305070203070503020907--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2b0c454b-c1a0-4b5b-e778-bf0939e90ae1>