Page MenuHomeFreeBSD

ufshci: handle a recovery reset before the SIM attach
ClosedPublic

Authored by jaeyoon on Aug 19 2026, 5:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 18, 6:16 PM
Unknown Object (File)
Fri, Sep 18, 2:45 AM
Unknown Object (File)
Thu, Sep 17, 9:49 AM
Unknown Object (File)
Thu, Sep 17, 4:34 AM
Unknown Object (File)
Fri, Sep 11, 2:28 AM
Unknown Object (File)
Wed, Sep 9, 11:15 AM
Unknown Object (File)
Tue, Sep 8, 3:56 AM
Unknown Object (File)
Sun, Sep 6, 7:13 AM
Subscribers
None

Details

Summary

When the first start attempt fails early, the recovery reset
runs the start sequence again without a SIM. That pass still
looked up the WLUN, so it dereferenced a NULL SIM and panicked.

Attach the SIM whenever it does not exist yet. Also make the
WLUN lookup return NULL when there is no SIM.

Sponsored by: Samsung Electronics

Diff Detail

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