Page MenuHomeFreeBSD

ufshci: abort submission when payload DMA mapping fails
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 7:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 2, 8:31 PM
Unknown Object (File)
Tue, Sep 29, 6:57 PM
Unknown Object (File)
Tue, Sep 29, 5:54 AM
Unknown Object (File)
Tue, Sep 29, 2:19 AM
Unknown Object (File)
Mon, Sep 28, 10:35 PM
Unknown Object (File)
Mon, Sep 28, 4:20 AM
Unknown Object (File)
Sat, Sep 26, 5:40 PM
Unknown Object (File)
Tue, Sep 22, 7:17 AM
Subscribers
None

Details

Summary

When bus_dmamap_load_mem() failed, ufshci_req_queue_prepare_prdt()
manually completed and released the tracker, but its caller kept going:
it built the UTRD, set the slot back to SCHEDULED, and rang the
doorbell for a tracker whose request had already been freed. Return the
mapping error and stop the submission so the released tracker is not
resurrected.

Sponsored by: Samsung Electronics

Diff Detail

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