[MDEV-26263] Investigate possible race on vc_templ recreation Created: 2021-07-28 Updated: 2024-01-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Nikita Malyavin | Assignee: | Nikita Malyavin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
In ha_innobase::inplace_alter_table:
inplace_alter_table can be done without any locks, so race condition is possible here in case of !ctx->need_rebuild(). Idea: remove old_templ = ctx->new_table->vc_templ; and see what fails. Then construct a race test. The deinitalixation part looks also unsafe:
Access-after-free looks very likely here. |