[SERVER-61110] Fix locking in AuthorizationContract::contains Created: 29/Oct/21  Updated: 29/Oct/23  Resolved: 24/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 5.0.9

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Adam Rayner
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Security 2021-11-15, Security 2021-11-29
Participants:
Linked BF Score: 159

 Description   

bool AuthorizationContract::contains(AuthorizationContract& other) needs to take the mutex of other when doing its comparisons.



 Comments   
Comment by Githook User [ 05/May/22 ]

Author:

{'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}

Message: SERVER-61110 backport to 5.0
Branch: v5.0
https://github.com/mongodb/mongo/commit/5d80a6fad7b11d69f51e73353cf6712f05c5d1d2

Comment by Githook User [ 22/Nov/21 ]

Author:

{'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}

Message: SERVER-61110 Fixing locking in AuthorizationContract::contains
Branch: master
https://github.com/mongodb/mongo/commit/5fbc9ea23711911ff36464e13839c68da1ec00cc

Generated at Thu Feb 08 05:51:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.