Skip to content

gdb: potential bug due to double address translation #1046

Closed

Description

@ludfjig

In add_sw_breakpoint and remove_sw_breakpoint, the address is translated from GVA to GPA using translate_gva, but then the resulting GPA is passed to read_addrs/write_addrs which internally call translate_gva again, treating the already-translated GPA as a GVA.

I would expect this to cause incorrect memory access since the physical address gets translated a second time?

Activity

  1. added theissue type on Nov 26, 2025
  2. added
    lifecycle/confirmedBug is verified or proposal seems reasonable
    and removed on Nov 26, 2025
  3. added this to the Backlog milestone on Nov 26, 2025
  4. IrvingMg commented on Dec 15, 2025

    @IrvingMg
    Contributor

    Hi, I'd like to work on this issue.

  5. jsturtevant commented on Dec 16, 2025

    @jsturtevant
    Contributor

    @IrvingMg go for it, I am not sure we've fully verified this is an issue. If you have any questions or trouble you can ask questions in slack or here on the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions