Skip to content

arm64: executor: support data relocations in SyzOS #5565

@ramosian-glider

Description

@ramosian-glider

Right now SyzOS code cannot reference global variables from .data or .bss, it also gets broken if the compiler decides to play some clever tricks like creating a jump table or memcpy()ing a struct initializer from .rodata.

Because we cannot possibly make the compiler emit the guest-relevant data into a separate section, fixing this problem will require mapping all data sections into the guest address space, and fixing all the relocations. Alternatively, we can try to keep SyzOS relocation-free by scanning the code for ADRP instructions and reporting errors.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions