Page MenuHomeFreeBSD

powerpc/booke: Fix locking in ptbl_alloc()
ClosedPublic

Authored by jhibbits on Feb 15 2020, 4:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 7:49 AM
Unknown Object (File)
Wed, Sep 24, 12:51 AM
Unknown Object (File)
Sun, Sep 21, 12:54 AM
Unknown Object (File)
Tue, Sep 16, 2:16 AM
Unknown Object (File)
Sep 8 2025, 7:46 AM
Unknown Object (File)
Sep 8 2025, 3:49 AM
Unknown Object (File)
Aug 5 2025, 11:47 AM
Unknown Object (File)
Aug 2 2025, 6:05 PM
Subscribers

Details

Summary

ptbl_alloc() is expected to return with the pvh_global_lock and pmap
lock held. However, it will return with them unlocked if nosleep is
specified.

Along with this, fix lock ordering of pvh_global_lock with respect to
the pmap lock in other places.

Diff Detail

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

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 22 2020, 1:31 AM
This revision was automatically updated to reflect the committed changes.