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)
Thu, Nov 14, 2:58 PM
Unknown Object (File)
Sat, Nov 2, 8:16 PM
Unknown Object (File)
Oct 4 2024, 1:55 PM
Unknown Object (File)
Oct 4 2024, 11:26 AM
Unknown Object (File)
Oct 4 2024, 5:50 AM
Unknown Object (File)
Oct 2 2024, 7:06 AM
Unknown Object (File)
Oct 1 2024, 9:39 PM
Unknown Object (File)
Sep 30 2024, 11:37 PM
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.