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
F175724596: D58947.id185182.diff
Mon, Oct 12, 7:46 PM
F175661581: D58947.id184310.diff
Mon, Oct 12, 8:40 AM
Unknown Object (File)
Tue, Oct 6, 6:50 PM
Unknown Object (File)
Mon, Oct 5, 9:01 AM
Unknown Object (File)
Sun, Oct 4, 12:58 AM
Unknown Object (File)
Fri, Oct 2, 3:43 PM
Unknown Object (File)
Wed, Sep 30, 10:38 PM
Unknown Object (File)
Wed, Sep 30, 10:38 PM
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