[SERVER-40296] Do not fassert that object returned from InvalidatingLRUCache is valid Created: 22/Mar/19 Updated: 29/Oct/23 Resolved: 26/Mar/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Security |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Jackson | Assignee: | Jonathan Reams |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Security 2019-04-08 | ||||
| Participants: | |||||
| Linked BF Score: | 7 | ||||
| Description |
|
The InvalidatingLRUCache contains valid objects. However, once an object has been returned, it can be invalidated at any point. This means that it is unsafe to fassert that it is valid. In the past, fassert 17003 was evaluated inside of the mutex which excluded invalidation. It should now be either removed, or moved to a place where the condition is maintained. |
| Comments |
| Comment by Githook User [ 26/Mar/19 ] |
|
Author: {'name': 'Jonathan Reams', 'username': 'jbreams', 'email': 'jbreams@mongodb.com'}Message: |