Bug 2547581 - smartctl/smartd hangs and triggers USB reset on Framework 250GB/1TB Expansion Cards when reading NVMe Error Information log
Summary: smartctl/smartd hangs and triggers USB reset on Framework 250GB/1TB Expansion...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: smartmontools
Version: 44
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-07 16:32 UTC by Michael Tunnell
Modified: 2026-10-31 18:41 UTC (History)
3 users (show)

Fixed In Version: smartmontools-7.5-11.fc46 smartmontools-7.5-11.fc43 smartmontools-7.5-11.fc44 smartmontools-7.5-11.fc45
Clone Of:
Environment:
Last Closed: 2026-10-14 11:01:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Tunnell 2026-10-07 16:32:32 UTC
Please consider backporting the fix once upstream merges a solution, or carrying PR #660 as a downstream patch in the meantime, since smartd running at boot causes affected drives to reset and disappear for ~60 s on every startup.

Description of problem:
On Framework 250GB / 1TB USB Expansion Cards the drivedb.h entries select "-d sntasmedia". With this device type, reading the NVMe Error Information log (Get Log Page, LID 0x01, 64 bytes) causes the next command sent to the device to hang until the SCSI timeout (~60 s) fires, after which the uas driver aborts the command and resets the USB device.

Because smartd queries the device at startup, this results in the drive dropping off the bus and reappearing ~60 seconds later. When the card is used as the boot or auto-mounted data drive, this shows up as delayed device recognition after boot.

Root cause (per upstream analysis):
The ASMedia pass-through CDB has no transfer length field, so the device decides how much data it returns. The firmware on these cards ignores the NUMD field and always returns 512 bytes for Get Log Page. When smartctl requests a 64-byte Error Information log, the 512-byte response overflows the buffer (uas reports "data cmplt err -75"). The command itself appears to succeed, but the device is left in a bad state and the next command of any kind hangs until timeout and USB reset.

Version-Release number of selected component (if applicable):
smartmontools 7.5

How reproducible:
Always, on affected cards.

Steps to Reproduce:
1. Connect a Framework 250GB or 1TB Expansion Card
2. Make sure the drive is not mounted.
3. Run: sudo smartctl -l error,1 -d sntasmedia /dev/sdX
   (or: sudo smartctl -a -d sntasmedia /dev/sdX)
4. Observe dmesg.

Expected results:
smartctl/smartd complete promptly, no SCSI timeout, no USB reset, and the drive stays available.

Additional Info:
Bug report on smartmontools github:
https://github.com/smartmontools/smartmontools/issues/491

PR from Daniel of Framework for a solution:
https://github.com/smartmontools/smartmontools/pull/660

Comment 1 Neal Gompa 2026-10-07 18:25:57 UTC
Unfortunately, the patch can be made to apply on 7.5, but then it doesn't compile. :(

https://copr.fedorainfracloud.org/coprs/ngompa/smartmontools-fwcard-fix/build/11090326/

This needs either a new patch for 7.5 or we need to roll up to a git snapshot to apply the patch.

Comment 2 Neal Gompa 2026-10-08 01:12:31 UTC
I've got a fix proposed thanks to some discussion and help from Framework: https://src.fedoraproject.org/rpms/smartmontools/pull-request/10

Comment 3 Neal Gompa 2026-10-08 01:37:13 UTC
I'm waiting to hear back on whether the fix is valid, I've done a test build in COPR: https://copr.fedorainfracloud.org/coprs/ngompa/smartmontools-fwcard-fix/build/11091458/

Comment 4 Neal Gompa 2026-10-09 02:55:56 UTC
Verified from Framework that this particular issue is resolved with this fix.

Comment 5 Fedora Update System 2026-10-14 09:30:33 UTC
FEDORA-2026-138ede08cc (smartmontools-7.5-11.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-138ede08cc

Comment 6 Michal Hlavinka 2026-10-14 10:00:07 UTC
I have to err on the upstream side, if the PR is not enough quality/tested (YET) its not good enough for downstream either. Especially after seeing the last PR comment. 

wrt to the issue itself, it mentions using https://github.com/smartmontools/smartmontools/commit/c238654075fbb7460a44138c4688ecb0ccd42a88 commit as a workaround fix. I've added that one. Please test it and report if it is a sufficient fix. I will add PR later once it is completed.

Comment 7 Fedora Update System 2026-10-14 11:01:14 UTC
FEDORA-2026-138ede08cc (smartmontools-7.5-11.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-10-14 18:51:51 UTC
FEDORA-2026-b39460e276 (smartmontools-7.5-11.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-b39460e276

Comment 9 Fedora Update System 2026-10-14 18:51:52 UTC
FEDORA-2026-2ac596c932 (smartmontools-7.5-11.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2ac596c932

Comment 10 Fedora Update System 2026-10-14 18:51:53 UTC
FEDORA-2026-45f636fe3c (smartmontools-7.5-11.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-45f636fe3c

Comment 11 Fedora Update System 2026-10-15 01:58:04 UTC
FEDORA-2026-b39460e276 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-b39460e276`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-b39460e276

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-10-15 02:17:30 UTC
FEDORA-2026-2ac596c932 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-2ac596c932`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-2ac596c932

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2026-10-15 02:41:02 UTC
FEDORA-2026-45f636fe3c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-45f636fe3c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-45f636fe3c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2026-10-20 05:06:11 UTC
FEDORA-2026-45f636fe3c (smartmontools-7.5-11.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2026-10-21 01:13:48 UTC
FEDORA-2026-2ac596c932 (smartmontools-7.5-11.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2026-10-31 18:41:09 UTC
FEDORA-2026-b39460e276 (smartmontools-7.5-11.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.