[SERVER-85377] Fix data race in AuthorizationSessionTestFixture Created: 18/Jan/24 Updated: 06/Feb/24 Resolved: 05/Feb/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 8.0.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Erwin Pe | Assignee: | Erwin Pe |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Server Security
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Security 2024-02-05, Security 2024-02-19 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 35 | ||||||||||||
| Description |
|
There's a data race on the AuthorizationManagerImpl::_authEnabled flag when AuthorizationSessionTestFixture::setUp() calls authzManager->setAuthEnabled(true); while the JournalFlusher thread reads the boolean through isAuthEnabled(). See linked BF for TSAN stack traces. |
| Comments |
| Comment by Githook User [ 06/Feb/24 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: GitOrigin-RevId: b27429a745f90d2e9f210ce41fcaa7b59c94966f |