[MDEV-30459] XID_cache_element can be modified after deletion Created: 2023-01-24  Updated: 2023-09-15

Status: Open
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
Fix Version/s: 11.1

Type: Bug Priority: Major
Reporter: Brandon Nesterenko Assignee: Brandon Nesterenko
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Issue split
split from MDEV-30423 Deadlock on Replica during BACKUP STA... Closed

 Description   

523f9ae7442 from MDEV-30423 reveals the possibility for leaks in XID_cache_element which allows for modification after deletion.

Suggested fix from Andrei is:

 xid_cache_delete may do extra marking at least for DBUG builds, that is in XID_cache_element::m_state and all its access  methods would assert that not_deleted status.

Though we only want to apply this to the newest version release, "unofficial" testing with the patch should be done in previous versions just in case.


Generated at Thu Feb 08 10:16:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.