Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641026 - sys-libs/compiler-rt-5.0.0: files contain writable and executable sections
Summary: sys-libs/compiler-rt-5.0.0: files contain writable and executable sections
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-12-14 18:33 UTC by Garri
Modified: 2020-05-01 09:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
noexecstack.patch (compiler-rt-5.0.1-noexecstack.patch,1.24 KB, patch)
2017-12-15 16:20 UTC, iGentoo
Details | Diff
noexecstack for compiler-rt 4.0.1 and 5.0.1 (compiler-rt-noexecstack.tar,10.00 KB, application/x-tar)
2017-12-18 15:07 UTC, iGentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Garri 2017-12-14 18:33:38 UTC
After last update I got following QA notice:

The following files contain writable and executable sections:

!WX --- --- usr/lib/clang/5.0.0/lib/linux/libclang_rt.builtins-x86_64.a:chkstk.S.o
!WX --- --- usr/lib/clang/5.0.0/lib/linux/libclang_rt.builtins-x86_64.a:chkstk2.S.o
!WX --- --- usr/lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i386.a:chkstk.S.o
!WX --- --- usr/lib/clang/5.0.0/lib/linux/libclang_rt.builtins-i386.a:chkstk2.S.o


Thanks.
Comment 1 iGentoo 2017-12-15 16:20:47 UTC
Created attachment 510188 [details, diff]
noexecstack.patch
Comment 2 Hermila Hoover 2017-12-17 07:58:31 UTC
For 4.0.1 this are even more:

!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-x86_64.a:chkstk.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-x86_64.a:chkstk2.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-x86_64.a:floatundidf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-x86_64.a:floatundisf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-x86_64.a:floatundixf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:ashldi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:ashrdi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:chkstk.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:chkstk2.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:divdi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatdidf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatdisf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatdixf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatundidf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatundisf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:floatundixf.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:lshrdi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:moddi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:muldi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:udivdi3.S.o
!WX --- --- usr/lib/clang/4.0.1/lib/linux/libclang_rt.builtins-i386.a:umoddi3.S.o
Comment 3 iGentoo 2017-12-18 15:07:41 UTC
Created attachment 510728 [details]
noexecstack for compiler-rt 4.0.1 and 5.0.1
Comment 4 Dimitry Andric 2017-12-25 12:15:37 UTC
See also https://bugs.llvm.org/show_bug.cgi?id=35739, and https://reviews.llvm.org/rL321431, which fixes this issue.

The chkstk and chkstk2 sources should simply not be built for Linux.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-01 09:18:56 UTC
Mass-closing bugs reported for removed LLVM versions.  Feel free to reopen if the issue still applies and there is no newer report for it.