[SERVER-81031] Remove unowned RecordStore reference in WT RandomCursor class Created: 13/Sep/23  Updated: 29/Oct/23  Resolved: 14/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, 7.0.2, 7.1.0-rc3

Type: Bug Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-73221 Store const members on WiredTigerReco... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.1, v7.0
Sprint: Execution EMEA Team 2023-09-18
Participants:
Linked BF Score: 115

 Description   

As part of the RandomCursor class in WT we hold an unowned reference to the RecordStore that created this. If at any point the reference becomes invalid we would be accessing invalid memory data.

As the standard cursor already protects against this, we should expand it to the random cursor as well.



 Comments   
Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-81031 Remove unowned RecordStore reference in RandomCursor
Branch: v7.0
https://github.com/mongodb/mongo/commit/b78e64cd9a00bebd467fca6b1ec5afbcba39e3d9

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-81031 Remove unowned RecordStore reference in RandomCursor
Branch: master
https://github.com/mongodb/mongo/commit/73dca9531ee39a2e3e984d5a5b26d430f9c043e0

Comment by Githook User [ 14/Sep/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-81031 Remove unowned RecordStore reference in RandomCursor
Branch: v7.1
https://github.com/mongodb/mongo/commit/a1a115c45f4f88a1de191b98c85d69c17920a3e7

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