[roll] Roll fuchsia [kernel][phys] Prevent ElfImages from being destroyed
In this test, we add a bunch of local ElfImages to the global module
list in gSymbolize. These ElfImages are destroyed at the end of their
respective scopes, but the module list still has pointers to them which
are referenced in Symbolize::module_for_vaddr_range which is used
whenever we would do a cfi check via indirect calls via FILE::Write.
Since we don't really have a way of "unloading" modules and I'm not sure
if we want to expose a method for removing them from the modules list in
Symbolize, this instead makes the ElfImages persistent by wrapping them
with NoDestructor and making them static. Likewise we need to make the
storage for the modules persistent so we make that a global array.
Original-Fixed: 454696559
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1402621
Original-Revision: 39e0e706ee437f85ebd0089253ac58fc0e1246a2
GitOrigin-RevId: c8bdef67f8e547fc68ffb2cf78fa326c46981d22
Change-Id: If87049347b48300a5aeed2f383852b5b6741c5b3
diff --git a/stem b/stem
index f2de03d..6f08296 100644
--- a/stem
+++ b/stem
@@ -7,7 +7,7 @@
manifest="manifests/platform"
root=""
remote="https://fuchsia.googlesource.com/fuchsia"
- revision="9b0ac0abccc7f6b0454a9062830c7ebdd69bfe25"/>
+ revision="39e0e706ee437f85ebd0089253ac58fc0e1246a2"/>
</imports>
<projects>
<project name="cobalt"