]> code.ossystems Code Review - openembedded-core.git/commit
staging: use relative path in sysroot_stage_dir()
authorAhsan Hussain <ahsan_hussain@mentor.com>
Mon, 31 Jan 2022 08:55:48 +0000 (13:55 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:05:30 +0000 (17:05 +0000)
commita1ec3154a53fd9e3f87a53f25113b7f90bcfb489
treeddd77a72987e7a181cb6bc4e3ee7eb6ba7c80bc8
parent52e59a5b37f55905ee693a99f9ffc34ed41b4283
staging: use relative path in sysroot_stage_dir()

A regression form cpio CVE-2021-38185 caused the tool to hang for paths
greater than 128 character long. It was reported here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992098

We were able to reliable reproduce this with dunfell, meta-freescale
recipe imx-boot

https://github.com/Freescale/meta-freescale/blob/dunfell/recipes-bsp/imx-mkimage/imx-boot_1.0.bb

Using relative path on the affected host fixes the issue as this is
always short, being in the same work dir. It would be harmless, and
useful to generally use the relative path for sysroot_stage_dir()

Signed-off-by: Ahsan Hussain <ahsan_hussain@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/staging.bbclass