Page MenuHomeFreeBSD

Ensure arswitch is always locked when calling arswitch_modifyreg()
ClosedPublic

Authored by kp on Jan 14 2017, 11:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 25, 1:00 PM
Unknown Object (File)
Sat, Jul 19, 4:55 PM
Unknown Object (File)
Sat, Jul 19, 4:15 PM
Unknown Object (File)
Sat, Jul 19, 3:39 PM
Unknown Object (File)
Sat, Jul 19, 9:37 AM
Unknown Object (File)
Sun, Jul 13, 4:12 PM
Unknown Object (File)
Thu, Jul 10, 4:10 AM
Unknown Object (File)
Mon, Jul 7, 2:25 AM
Subscribers

Details

Summary

While upgrading my TPLink 3600 to a less ancient FreeBSD version I encountered a panic (panic: mutex arswitch not owned at .../sys/dev/etherswitch/arswitch/arswitch_reg.c:236).
This happened because arswitch_modifyreg() can be called without having the arswitch lock held.

Test Plan

Boot TPLink 3600.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp retitled this revision from to Ensure arswitch is always locked when calling arswitch_modifyreg().
kp updated this object.
kp edited the test plan for this revision. (Show Details)
kp added a reviewer: adrian.
kp set the repository for this revision to rS FreeBSD src repository - subversion.
kp added a subscriber: adrian.
adrian edited edge metadata.

yup! good catch!

This revision is now accepted and ready to land.Jan 14 2017, 11:46 PM
kan added a reviewer: kan.
kan added a subscriber: kan.

Yup

This revision was automatically updated to reflect the committed changes.