<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9489</bug_id>
          
          <creation_ts>2016-04-19 15:02:10 +0000</creation_ts>
          <short_desc>security_flags.inc has exception packages compiled without any -fstack-protector</short_desc>
          <delta_ts>2016-06-23 14:23:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Security - Recipe Upgrade</product>
          <component>security</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Elena Reshetova">elena.reshetova</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>juro.bystricky</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61412</commentid>
    <comment_count>0</comment_count>
    <who name="Elena Reshetova">elena.reshetova</who>
    <bug_when>2016-04-19 15:02:10 +0000</bug_when>
    <thetext>securirity_flags.inc has some packages that are not compiled with -fstack-protector-strong. Instead they should be tried to compile with CFLAGS +=&quot;-fstack-protector&quot; to provide at least partial stack buffer overrun protection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61419</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-04-19 16:51:19 +0000</bug_when>
    <thetext>The difference between the two is that strong protector adds a stack guard to more functions than the regular protector does, but otherwise the protection technique is same. We can try, but I have a hunch that the failing packages will still fail. 

It&apos;s not a lot of packages by the way - grub, gcc, glibc, uclibc and valgrind.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61504</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-21 14:50:31 +0000</bug_when>
    <thetext>I also share the suspicion that they will fail but we could try it. I guess glibc is the main concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62924</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-13 15:49:34 +0000</bug_when>
    <thetext>I checked all of those; the only ones where removing stack protection is no longer necessary are gcc-sanitizers and libgcc (in fact, they even work with full SECURITY_NO_PIE_CFLAGS now). I&apos;ll do a world build, then send a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63280</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-23 14:23:37 +0000</bug_when>
    <thetext>Patch is in master: 088120816835bfab2a675eb3f265b63290d077e6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>