Bug #93426 8.0.13 introduced new "volatile" variable
Submitted: 30 Nov 2018 12:03 Modified: 30 Nov 2018 12:12
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S3 (Non-critical)
Version:8.0.13 OS:Any
Assigned to: CPU Architecture:Any

[30 Nov 2018 12:03] Laurynas Biveinis
Description:
mysqld.h: extern volatile bool password_require_current;
mysqld.cc: volatile bool password_require_current = false;

It's 2018, C++11 has a memory model, volatile variables should be removed from the codebase, not being added to it.

Introduced by WL#11544:

commit 114de32fbc0dbcbd183840d69d77e8d0d9d0ab16
Author: Rahul Sisondia <rahul.sisondia@oracle.com>
Date:   Mon Jun 25 06:23:07 2018 +0200

    WL#11544 Current password required for SET PASSWORD
    ...

How to repeat:
See above

Suggested fix:
std::atomic<bool> if existing synchronization is not enough?
[30 Nov 2018 12:12] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

regards,
Umesh