Skip to content

ARM MTE data race: ro.is_memtag_disabled #316

@rdevshp

Description

@rdevshp
  1. h_malloc_disable_memory_tagging writes to ro.is_memtag_disabled in the init_lock mutex region
  2. ro.is_memtag_disabled is read through is_memtag_enabled without proper synchronization in invocations like allocate_small -> write_after_free_check

Since it is not atomic, the data race results in undefined behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions