| commit | 86f13d813be9ca7bf104b72ccfb48ef8dbac250c | [log] [tgz] |
|---|---|---|
| author | Leonard Chan <leonardchan@fuchsia.infra.roller.google.com> | Thu Oct 30 12:28:31 2025 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 30 12:31:02 2025 -0700 |
| tree | c3d07204ff228bc4109e6fe570f1259c03d2c444 | |
| parent | 53dc33605425cee9f777d83f2214a27a42da52d3 [diff] |
[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
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.