[SERVER-8389] Possible deadlock with auth check for building indexes Created: 29/Jan/13  Updated: 11/Jul/16  Resolved: 07/Feb/13

Status: Closed
Project: Core Server
Component/s: Concurrency, Security
Affects Version/s: 2.3.2
Fix Version/s: 2.4.0-rc1

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-8368 Possible deadlock between db mutex an... Closed
Operating System: ALL
Participants:

 Description   

The auth checks for index creation happen far down, so that we can know the namespace that the index is being built on. This is a problem, however, because you might be in a lock when doing the auth checks, which could cause deadlock due to automatic privilege acquisition. We need to do the auth check at the beginning of the operation, before any locks are held



 Comments   
Comment by auto [ 07/Feb/13 ]

Author:

{u'date': u'2013-01-29T20:36:17Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-8389 Do auth checks for index builds up front, before any locks have been acquired
Branch: master
https://github.com/mongodb/mongo/commit/c81afde28a94d7b4588c04b88797c9a67a4640ef

Generated at Thu Feb 08 03:17:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.