Bug #57998 mysql-5.1.51 introduces TEXTREL and RWX mapping in libmystrings.so
Submitted: 4 Nov 2010 21:36 Modified: 22 Dec 2010 21:15
Reporter: Attila Toth Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:5.1.51 OS:Linux (Hardened Gentoo)
Assigned to: CPU Architecture:Any

[4 Nov 2010 21:36] Attila Toth
Description:
While mysql-5.1.50 was free of TEXTRELs and there were no RWX mapping attempts during execution, mysql-5.1.51 seems to have some flaws regarding this. Those systems preventing RWX memory mapping and possibly some architectures won't let the mysql server start. Something went bad around libmystrings.so.

How to repeat:
Take a recent Gentoo installation. Compile a kernel having PaX and/or SELinux enabled. Install dev-db/mysql-5.1.51. Try starting the service. Observe error message.

Suggested fix:
Wipe out erroneous mapping and TEXTREL from libmystrings.
[5 Nov 2010 20:21] Attila Toth
More details:
https://bugs.gentoo.org/show_bug.cgi?id=344031
[24 Nov 2010 13:05] Susanne Ebrecht
Many thanks for pointing this out.

I saw today that Gentoo already is offering patches for this problem.
[24 Nov 2010 13:37] Attila Toth
The Hardened Gentoo team came up with several possible solutions. I'm currently using the latest suggested patch and it seems to work fine. Could it be considered to get the patch incorporated in the official release?
[30 Nov 2010 22:35] Davi Arnaut
It's fixed in 5.5, we no longer use the assembly based strings implementation.