Page MenuHomeFreeBSD

Fix mpr(4) panics caused by bad drive mapping tables
ClosedPublic

Authored by asomers on Nov 1 2017, 10:00 PM.
Tags
None
Referenced Files
F160189397: D12901.id34720.diff
Mon, Jun 22, 12:52 AM
F160182003: D12901.id34647.diff
Sun, Jun 21, 11:27 PM
Unknown Object (File)
Fri, Jun 19, 9:10 AM
Unknown Object (File)
Thu, Jun 18, 3:09 AM
Unknown Object (File)
Sun, Jun 7, 9:25 AM
Unknown Object (File)
May 17 2026, 4:00 PM
Unknown Object (File)
May 17 2026, 1:47 PM
Unknown Object (File)
May 17 2026, 8:13 AM
Subscribers

Details

Summary

Fix mpr(4) panics caused by bad drive mapping tables

sys/dev/mpr/mpr_mapping.c
If _mapping_process_dpm_pg0 detects inconsistencies in the drive
mapping table (stored in the HBA's NVRAM), abort reading it and
continue to boot as if the mapping table were blank.

Test Plan

Try booting with an mpr card that contains a known-bad mapping table

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 12387
Build 12663: arc lint + arc unit

Event Timeline

slm requested changes to this revision.Nov 1 2017, 10:26 PM
slm added inline comments.
sys/dev/mpr/mpr_mapping.c
2382

Doesn't look like you need 'dpm_entry' here.

This revision now requires changes to proceed.Nov 1 2017, 10:26 PM

Fix copypaste error found by slm

This revision is now accepted and ready to land.Nov 2 2017, 2:55 PM
This revision was automatically updated to reflect the committed changes.