Page MenuHomeFreeBSD

ufshci: check SDB queue allocations for failure
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 8:04 AM.
Tags
None
Referenced Files
F173511275: D58661.diff
Sat, Sep 26, 11:51 AM
F173474943: D58661.id183758.diff
Sat, Sep 26, 5:16 AM
Unknown Object (File)
Sun, Sep 20, 9:28 AM
Unknown Object (File)
Sun, Sep 20, 9:11 AM
Unknown Object (File)
Fri, Sep 18, 8:46 AM
Unknown Object (File)
Fri, Sep 18, 3:42 AM
Unknown Object (File)
Thu, Sep 17, 3:24 AM
Unknown Object (File)
Thu, Sep 17, 2:33 AM
Subscribers
None

Details

Summary

The hardware queue and ucd_bus_addr allocations use M_NOWAIT but were
used without a NULL check, and the payload bus_dmamap_create() return
value was ignored, so a failed allocation was only discovered by
faulting on it later. Fail the construction instead. The teardown
path handles the partially constructed queue.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable