[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:
Depends
Related
is related to SERVER-79138 Fix data race in AuthorizationSession... Closed
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: SERVER-85377 Fix data race in AuthorizationSessionTestFixture

GitOrigin-RevId: b27429a745f90d2e9f210ce41fcaa7b59c94966f
Branch: master
https://github.com/mongodb/mongo/commit/fa772fbd372f23250a5a7c9b5aea353a94b3b0ea

Generated at Thu Feb 08 06:57:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.