<?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>12883</bug_id>
          
          <creation_ts>2018-08-12 22:47:46 +0000</creation_ts>
          <short_desc>Possible Dos with funky recipe</short_desc>
          <delta_ts>2018-08-30 15:01:21 +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>OE-Core</product>
          <component>core</component>
          <version>2.5.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>backport 2.4.4 and 2.5.2</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81314</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:47:46 +0000</bug_when>
    <thetext>I was working on a recipe and ended up hanging bitbake

recipe:
recipes-xfce/guvcview/guvcview_2.0.5.bb

LIC_FILES_CHKSUM = &quot;files://COPYING;md5=12345&quot;
LICENSE = &quot;GPL-2.0&quot;

SRC_URI = &quot;http://archive.ubuntu.com/ubuntu/pool/universe/g/guvcview/guvcview_2.0.5+debian.orig.tar.xz&quot;

SRC_URI[md5sum] = &quot;0bcdf1057cab6949176eae644c675047&quot;
SRC_URI[sha256sum] = &quot;89efcbbbcbca5f725f4d8f9ea2fc5cbd51c6b22dc7a7cfa520a8285f641f4cc1&quot;

Bitbake guvcview --&gt; output on screen


WARNING: Unable to get checksum for guvcview SRC_URI entry vmlinuz.old: [Errno 13] Permission denied: &apos;/vmlinuz.old&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry vmlinuz: [Errno 13] Permission denied: &apos;/vmlinuz&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry bitmap: [Errno 13] Permission denied: &apos;/sys/kernel/mm/page_idle/bitmap&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry evm: [Errno 13] Permission denied: &apos;/sys/kernel/security/evm&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry policy: [Errno 13] Permission denied: &apos;/sys/kernel/security/ima/policy&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry violations: [Errno 13] Permission denied: &apos;/sys/kernel/security/ima/violations&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry runtime_measurements_count: [Errno 13] Permission denied: &apos;/sys/kernel/security/ima/runtime_measurements_count&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry ascii_runtime_measurements: [Errno 13] Permission denied: &apos;/sys/kernel/security/ima/ascii_runtime_measurements&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry binary_runtime_measurements: [Errno 13] Permission denied: &apos;/sys/kernel/security/ima/binary_runtime_measurements&apos;
WARNING: Unable to get checksum for guvcview SRC_URI entry .null: [Errno 13] Permission denied: &apos;/sys/kernel/security/apparmor/.null&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81315</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-12 22:50:27 +0000</bug_when>
    <thetext>Initial guess is that the LIC_FILE_CHECKSUM code is dumb and just does string splits when it should be doing a proper URL parse and resolve.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81316</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:52:01 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Initial guess is that the LIC_FILE_CHECKSUM code is dumb and just does
&gt; string splits when it should be doing a proper URL parse and resolve.

it used to not be an issue and fail telling me the proper checksum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81317</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:52:09 +0000</bug_when>
    <thetext>Local.conf

PACKAGE_CLASSES ?= &quot;package_ipk package_rpm&quot;
SDKMACHINE ?= &quot;x86_64&quot;
EXTRA_IMAGE_FEATURES ?= &quot;debug-tweaks tools-sdk&quot;
USER_CLASSES ?= &quot;buildstats image-mklibs image-prelink&quot;
PATCHRESOLVE = &quot;noop&quot;
BB_DISKMON_DIRS = &quot;\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K&quot;

PACKAGECONFIG_append_pn-qemu-native = &quot; sdl&quot;
PACKAGECONFIG_append_pn-nativesdk-qemu = &quot; sdl&quot;

CONF_VERSION = &quot;1&quot;
DL_DIR ?= &quot;/home/akuster/oss/downloads&quot;
SSTATE_DIR ?= &quot;/home/build/master/sstate-cache&quot;
SOURCE_MIRROR_URL ?= &quot;http://downloads.yoctoproject.org/mirror/sources/&quot;
SSTATE_MIRRORS ?= &quot;file://.* http://sstate.yoctoproject.org/PATH&quot;
SOURCE_MIRROR_FETCH = &quot;1&quot;
PACKAGE_CLASSES = &quot;package_rpm&quot;
SDKMACHINE ?= &quot;x86_64&quot;
IMAGE_FSTYPES_append = &quot; tar.gz&quot;
BB_TASK_NICE_LEVEL = &quot;5&quot;
BB_TASK_NICE_LEVEL_task-testimage = &quot;0&quot;
BB_TASK_IONICE_LEVEL = &quot;2.7&quot;
BB_TASK_IONICE_LEVEL_task-testimage = &quot;2.1&quot;
PREMIRRORS = &quot;&quot;
BB_GENERATE_MIRROR_TARBALLS = &quot;1&quot;
QEMU_USE_KVM = &quot;True&quot;
SDK_EXT_TYPE = &quot;minimal&quot;
SDK_INCLUDE_TOOLCHAIN = &quot;1&quot;
SANITY_TESTED_DISTROS = &quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81318</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:52:39 +0000</bug_when>
    <thetext>fails on MACHINE=odroid-xu4 and qemux86-64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81319</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:53:15 +0000</bug_when>
    <thetext>then this is a specially crafted recipe causing a DoS : )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81320</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-12 22:57:43 +0000</bug_when>
    <thetext>cleaning tmp and other dirs. will try with clean env-ish</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81321</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-13 01:19:45 +0000</bug_when>
    <thetext>no sstate-cache, tmp* or cache and it fails still. 

core:
3d493838f0 (origin/master, origin/HEAD) binutils: enable x86_64-pep for producing EFI binaries on x86-64


bitbake:
ec037d3e (HEAD -&gt; master, origin/master, origin/HEAD) runqueue: Allow the hash validate function to have an idea of build completion


/etc/os-release 
NAME=&quot;Ubuntu&quot;
VERSION=&quot;18.04.1 LTS (Bionic Beaver)&quot;
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME=&quot;Ubuntu 18.04.1 LTS&quot;
VERSION_ID=&quot;18.04&quot;
HOME_URL=&quot;https://www.ubuntu.com/&quot;
SUPPORT_URL=&quot;https://help.ubuntu.com/&quot;
BUG_REPORT_URL=&quot;https://bugs.launchpad.net/ubuntu/&quot;
PRIVACY_POLICY_URL=&quot;https://www.ubuntu.com/legal/terms-and-policies/privacy-policy&quot;
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81323</commentid>
    <comment_count>8</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-13 14:45:43 +0000</bug_when>
    <thetext>I don&apos;t think its the LIC_FILES_CHKSUM.

I put the correct values in and I still got the same weird console message.

&quot;S&quot; is not correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81325</commentid>
    <comment_count>9</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-13 15:32:45 +0000</bug_when>
    <thetext>tried another host and got the same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81326</commentid>
    <comment_count>10</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-13 15:36:33 +0000</bug_when>
    <thetext>layer with issues
https://github.com/akuster/meta-demos</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81327</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-13 16:30:39 +0000</bug_when>
    <thetext>The thousands of messages about SRC_URI are definitely LIC_FILES_CHKSUM: files://foo gets broken as method:files host:foo path:/ and then the checksum code goes to checksum / recursively.

This is because file: is special and not handled the same way as other URL handlers (and gets broken to method=file, host=&apos;&apos;, path=foo).  The fix I have here is to verify the method in the checksum lookup code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81328</commentid>
    <comment_count>12</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-08-13 22:51:22 +0000</bug_when>
    <thetext>I believe the root cause of this is the &apos;files:&apos; in the LIC_FILES_CHKSUM.  Patches on the lists to handle that (and bail), and also catch a request to checksum / recursively (and bail), and improve checksumming (so checksumming / doesn&apos;t DoS the system).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81329</commentid>
    <comment_count>13</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-13 22:54:26 +0000</bug_when>
    <thetext>patches work for me.

thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81383</commentid>
    <comment_count>14</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-08-16 14:36:59 +0000</bug_when>
    <thetext>Fixed in master:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=beb93fff65c1aa677d341c4531bf15ce46f04a69
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a316be88cddffe448faa242536d1e6d8279554fb
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=63a4ff7cf5f7d1671ab85800bc2212dd9cd9748d
Backport to sumo/rocko?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81399</commentid>
    <comment_count>15</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-17 02:34:12 +0000</bug_when>
    <thetext>backport to sumo. in stable/sumo-nmut</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81400</commentid>
    <comment_count>16</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-17 05:19:37 +0000</bug_when>
    <thetext>sumo being built.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81422</commentid>
    <comment_count>17</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-23 14:44:17 +0000</bug_when>
    <thetext>in rocko. having build issues but don&apos;t think the issue is related to this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81460</commentid>
    <comment_count>18</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-30 14:58:28 +0000</bug_when>
    <thetext>Changes in rocko</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81461</commentid>
    <comment_count>19</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-30 15:01:21 +0000</bug_when>
    <thetext>closing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>