Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 646482

Summary: sys-boot/syslinux-6.04_pre1-r2 - QA Notice: The following files contain writable and executable sections
Product: Gentoo Linux Reporter: Francesco Turco <fturco>
Component: Current packagesAssignee: Chí-Thanh Christopher Nguyễn <chithanh>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz
emerge --info syslinux
Emerge failure: sys-boot/syslinux-6.04_pre1::gentoo failed: Aborting due to QA concerns: execstacks
emerge --info

Description Francesco Turco 2018-02-03 12:53:40 UTC
Created attachment 517654 [details]
build.log.xz

Portage reports the following QA issue when emerging sys-boot/syslinux-6.04_pre1:

> QA Notice: The following files contain writable and executable sections
>  Files with such sections will not work properly (or at all!) on some
>  architectures/operating systems.  A bug should be filed at
>  https://bugs.gentoo.org/ to make sure the issue is fixed.
>  For more information, see:
> 
>    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
> 
>  Please include the following list of files in your report:
>  Note: Bugs should be filed for the respective maintainers
>  of the package in question and not hardened@g.o.
> RWX --- RWX usr/share/syslinux/efi64/ldlinux.e64
Comment 1 Francesco Turco 2018-02-03 12:54:09 UTC
Created attachment 517656 [details]
emerge --info syslinux
Comment 2 Giuseppe Scaglione 2019-01-17 18:02:01 UTC
Created attachment 561716 [details]
Emerge failure: sys-boot/syslinux-6.04_pre1::gentoo failed: Aborting due to QA concerns:  execstacks

* QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  https://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see:
 * 
 *    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
 * 
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@gentoo.org.
 * RWX --- RWX usr/share/syslinux/efi64/ldlinux.e64

 * ERROR: sys-boot/syslinux-6.04_pre1::gentoo failed:
 *   Aborting due to QA concerns:  execstacks
 * 
 * Call stack:
 *     misc-functions.sh, line 552:  Called install_qa_check
 *     misc-functions.sh, line  98:  Called source 'install_symlink_html_docs'
 *   10executable-issues, line 145:  Called elf_check
 *   10executable-issues, line 141:  Called die
 * The specific snippet of code:
 *   		die "Aborting due to QA concerns: ${die_msg}"
Comment 3 Giuseppe Scaglione 2019-01-17 18:03:09 UTC
Created attachment 561718 [details]
emerge --info
Comment 4 Mike Gilbert gentoo-dev 2019-01-17 18:13:44 UTC
I think the warning/error is pointless: the code is executed at boot and then never again. Generally it is not possible to avoid this kind of code in a boot loader for x86.

Should probably silence it via a QA variable.
Comment 5 Agostino Sarubbo gentoo-dev 2021-10-17 07:13:29 UTC
tinderbox has reproduced this issue with version 6.04_pre1-r2 - Updating summary.
Comment 6 Mike Gilbert gentoo-dev 2022-05-30 20:14:30 UTC
I set QA_WX_LOAD and QA_EXECSTACK in 6.04_pre3.