Bug 146589
Summary: | i386 libFLAC.so.4 is erroneously marked as requiring an executable stack | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicholas Miell <nmiell> | ||||
Component: | flac | Assignee: | Bastien Nocera <bnocera> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-04-17 12:09:40 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Nicholas Miell
2005-01-30 04:41:11 UTC
Created attachment 110405 [details]
Patch against the RPM .spec to mark libFLAC as noexecstack
Did you double-check that the included assembly actually does not require an executable stack? It probably doesn't, but I'm nervous about applying this patch without at least a glance from an x86 assembler guru. I didn't, but I seriously doubt that they need an executable stack. Programatically generating code is difficult enough without doing it in assembly. I am not an x86 assembler guru, but my quick overview didn't find anything suspicious. I had a guru look over it, he agreed. Unfortunately though, "prelink" and hence execstack isn't available in our buildroots. I'm going to try emailing upstream to get them to add the .note.GNU-stack thing; unfortunately the only samples I have of that are for gnu as, not nasm. Ah, I was hoping that the "don't use execstack" advice (in another bug) was just bad form, not an outright impossibility. I don't think NASM supports the directives necessary to actually add the right kind of .note.GNU-stack section, so you're left with the option of modifying the final libFLAC.so link with "-z noexecstack". Nicholas, is this still a problem with flac 1.1.4? Doesn't look like it: [mclasen@localhost ~]$ execstack /usr/lib/libFLAC.so.8 - /usr/lib/libFLAC.so.8 Excellent, thanks Matthias. |