Article View: muc.lists.freebsd.bugs
Article #877[Bug 301386] Random network data corruption on Skylake VMs on 15.2-RC1
From: bugzilla-noreply
Date: Tue, 01 Dec 2026 20:52
Date: Tue, 01 Dec 2026 20:52
93 lines
5831 bytes
5831 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301386
Bug ID: 301386
Summary: Random network data corruption on Skylake VMs on
15.2-RC1
Product: Base System
Version: 15.2-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: mandrews@bit0.com
I'm trying to slowly roll out FreeBSD 15.2 BETA2, BETA3, and RC1 on some test
systems to see how it goes. Most systems are, as usual, taking the minor
update without any incident. But on some very specific systems, our web
servers and RabbitMQ servers, I'm getting some really weird sporadic data
corruption issues. Doing a ZFS rollback back to 15.1-p7 makes the system
behave perfectly again.
Specifically: on Vultr (which uses KVM for hypervisor), New Jersey, general
purpose VM type like vc2-6c-16gb, which most of the time gives underlying
hardware of Broadwell or Skylake at random. If and ONLY if it's Skylake, we
are seeing random errors on MariaDB queries from our custom Perl web app.
Broadwell is fine. Using a high performance VM type like vhp-8c-16gb-intel
(usually Cascade Lake) or vhp-8c-16gb-amd (usually Rome or Milan) also runs
perfectly fine.
It's only necessary to upgrade the kernel to 15.2-RC1 to exhibit the
Skylake-VM-only issue, keeping the 15.1-p7 userland and ports/packages.
Upgrading userland makes no difference. Packages are built from our own
Poudriere, and everything was built with CPUTYPE+=x86-64-v3. I've tried
x86-64-v2, I've tried commenting CPUTYPE out entirely, with both a 15.1
Poudriere and 15.2 Poudriere, and none of that makes any difference either.
CPUTYPE was the first thing that came to mind as a potential issue since it
appeared to be specific to underlying VM hardware. Kernel and userland are not
built from Poudriere, they are stock pkgbase from the stock FreeBSD repo,
including FreeBSD-kernel-generic, so obviously CPUTYPE isn't a factor with the
kernel. Changing hw.mds_disable or vm.pmap.pti doesn't make a difference.
So far I've had no issues with VMs running on AWS (t3a.medium mostly, which is
AMD Rome), or on Proxmox, or on bare metal (Intel Rocket Lake, Coffee Lake,
Haswell, Denverton, or AMD Rome)
The specifics of the MariaDB issue: at random, maybe a few times an hour out of
many thousands of queries, some will fail with "Unknown command". MariaDB
packets normally start with a 3 byte length, a 1 byte sequence ID, a 1 byte
command code, and then the SQL text. The command code is usually 0x03. On the
"unknown command" failures, the command code and the first byte of the SQL text
are replaced with apparently random garbage, according to tcpdump running on
the DB server side (the server is a separate bare metal Vultr system, still on
15.1-p7).
If I update our RabbitMQ servers, also Vultr NJ Skylake VMs but smaller
(vc2-2c-4gb) they start corrupting queue entries at random. I don't yet have
binary dumps of that happening so I haven't been able to analyze the specifics
of the corruption.
It's possible there are other data corruption cases beyond just those two.
Those are the most common though.
I made a small DB test script to try to isolate the issue outside of our app
environment. Running that script within it did eventually trigger the error,
but it sometimes takes a few hours. I'm trying to run it in a totally stock
Skylake VM with a fresh 15.1-upgraded-to-15.2 install and none of our app on
it... and have been unable to reproduce it there... yet.
This is REALLY weird.
--
You are receiving this mail because:
You are the assignee for the bug.
--
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:
<bug-301386-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301386] Random network data corruption on Skylake VMs on 15.2-RC1 Date: Tue, 01 Dec 2026 20:52:25 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301386-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="97326"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1796158345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JtxfBbYRIbkA0XWAwgCnUjQXK9iquJECB5epzuOCfXQ=; b=DUk3mCZ/jOR+gyVrabXgMhi2rmTPnODiMcCpIgfNdAtz24ZPO3RDU/+uJXX+56RlOh9Zvm fvSA5Rwn5OLtIuWhsLEuxmGwi8Xy9ZcWlL0IyX8kg/9H4x0nAPvyUlk9vCIm8gytQg1bd3 bhLX3xmrIiPqY7PgSfj4uTRS0CFij5y1i32ZPyiebldA3yWnmiTDKSR0W3PaI3rCsPHeQ2 aONGqKNiFI9ERrMQmDWV3rVf1mnucKoSXRJ1HOIJl+2NC2mZoquHahcvaIA443TN5kiQ6w kKMzJBiG5D297zJXcYOwujelOhxKhXmTakMVABWFuAwRHdvIAu1j6ReIOlYW/Q== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes