]> code.ossystems Code Review - openembedded-core.git/commit
qemu: Limit paths searched during user mode emulation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Mar 2016 22:49:02 +0000 (22:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Mar 2016 23:06:16 +0000 (23:06 +0000)
commit9ac5017b3328a18561c2912edfda2d7d97c675f2
tree3e48f4defa8e7b7f91f521ede225b962c353ade1
parent30da34ef032d5b4b2f694743715f2c8d64dd9849
qemu: Limit paths searched during user mode emulation

By default qemu builds a complete list of directories within the user
emulation sysroot (-L option). The OE sysroot directory is large and
this is confusing, for example it indexes all pkgdata. In particular this
confuses strace of qemu binaries with tons of irrelevant paths.

This patch stops the code indexing up front and instead only indexes
things if/as/when it needs to. This drastically reduces the files it
reads and reduces memory usage and cleans up strace.

It would also avoid the infinite directory traversal bug in [YOCTO #6996]
although the code could still be vulnerable if it parsed those specific
paths.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu/pathlimit.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu_2.5.0.bb