Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65699 - [rtkit] rtkit-daemon binary has executable stack

Attached to Project: Arch Linux
Opened by Markus Theil (thillux) - Wednesday, 04 March 2020, 12:26 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 04 March 2020, 14:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
rtkit-daemon has an stack section which is marked executable.
For security reasons, stack segments should not be executable if possible.

Found when looking at Linux 5.6-rc4 dmesg output:
[Wed Mar 4 13:08:10 2020] process '/usr/lib/rtkit-daemon' started with executable stack

The executable stack can be checked like this:
readelf -lW /usr/lib/rtkit-daemon | rg "GNU_STACK" | rg E
GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RWE 0x10
This task depends upon

Comment by loqs (loqs) - Wednesday, 04 March 2020, 15:23 GMT
The xml-introspection.S added by https://github.com/heftig/rtkit/commit/14099ed04a693791dc6645566ee55a08be19a199 does not contain stack markings,
as gcc can not determine if an executable stack is required or not without the annotation it makes the stack executable.
Comment by Markus Theil (thillux) - Wednesday, 04 March 2020, 15:40 GMT
Thanks for the explanation!

Loading...