[MDEV-22133] handle_fatal_signal (sig=11) on optimized builds in handle_grant_table instead of ERROR | Buffer overflow (on optimized builds) Created: 2020-04-03 Updated: 2023-04-27 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | affects-tests, regression-10.5, security | ||
| Issue Links: |
|
||||||||
| Description |
|
Leads to:
Bug confirmed present in: Bug confirmed not present in: MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt) Output of MySQL 5.6.47;
|
| Comments |
| Comment by Roel Van de Paar [ 2020-04-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-05-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Additional testcases
4 Slightly different stacks. Unique Bug ID's;
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-06-15 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
New developments in latest 10.5 branch. This testcase:
Leads to:
Additionally (besides the buffer overflow), a new SIGABRT not seen before is showing up, which at the same time is also an oddity, as GDB states;
While the error log states;
Perhaps the server aborted during crash reporting, perhaps as a result of the buffer overflow. Full stack:
It is perceivable that the high number of partitions issue can also be created outside of this handle_grant_table related scenario/code path. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-06-15 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Please also test with this testcase
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-16 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If rename (for example ) mysql.db, it will be noticed on opening, with mysql.procs_priv somehow it does not happening | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2022-06-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|