Fix DeprotectMallocZone to work across vm_regions [crashpad/crashpad : main]

47 views
Skip to first unread message

Mark Mentovai (Gerrit)

unread,
May 8, 2026, 4:38:03 PM (8 days ago) May 8
to Dave MacLachlan, crashp...@chromium.org
Attention needed from Dave MacLachlan

Mark Mentovai added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Mark Mentovai . unresolved

Apply the review comments from https://chromium-review.googlesource.com/c/7833547 to this as well.

Preferably, let’s actually wait until the other one is done before poking this one again, since the logic and code are all the same.

Open in Gerrit

Related details

Attention is currently required from:
  • Dave MacLachlan
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: crashpad/crashpad
Gerrit-Branch: main
Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
Gerrit-Change-Number: 7833416
Gerrit-PatchSet: 3
Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
Gerrit-Comment-Date: Fri, 08 May 2026 20:38:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Dave MacLachlan (Gerrit)

unread,
May 11, 2026, 1:21:15 PM (5 days ago) May 11
to Mark Mentovai, crashp...@chromium.org
Attention needed from Mark Mentovai

Dave MacLachlan added 1 comment

Patchset-level comments
File-level comment, Patchset 3:
Mark Mentovai . resolved

Apply the review comments from https://chromium-review.googlesource.com/c/7833547 to this as well.

Preferably, let’s actually wait until the other one is done before poking this one again, since the logic and code are all the same.

Dave MacLachlan
Open in Gerrit

Related details

Attention is currently required from:
  • Mark Mentovai
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
    Gerrit-Change-Number: 7833416
    Gerrit-PatchSet: 4
    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
    Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
    Gerrit-Comment-Date: Mon, 11 May 2026 17:13:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
    unsatisfied_requirement
    open
    diffy

    Mark Mentovai (Gerrit)

    unread,
    May 11, 2026, 1:27:44 PM (5 days ago) May 11
    to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
    Attention needed from Dave MacLachlan

    Mark Mentovai voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dave MacLachlan
    Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: crashpad/crashpad
    Gerrit-Branch: main
    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
    Gerrit-Change-Number: 7833416
    Gerrit-PatchSet: 4
    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
    Gerrit-CC: Justin Cohen <justi...@google.com>
    Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
    Gerrit-Comment-Date: Mon, 11 May 2026 17:27:41 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mark Mentovai (Gerrit)

    unread,
    May 11, 2026, 1:29:07 PM (5 days ago) May 11
    to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
    Attention needed from Dave MacLachlan and Justin Cohen

    Mark Mentovai added 2 comments

    Commit Message
    Line 16, Patchset 4 (Latest):https://chromium-review.git.corp.google.com/c/chromium/src/+/7833547?tab=checks
    Mark Mentovai . unresolved

    This should be rewritten as a https://chromium-review.googlesource.com/c/… URL.

    You can get rid of ?tab=checks too, since that just makes the URL long.

    Line 18, Patchset 4 (Latest):Bug: N/A
    Mark Mentovai . unresolved

    You can get rid of this line.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dave MacLachlan
    • Justin Cohen
    Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
      Gerrit-Change-Number: 7833416
      Gerrit-PatchSet: 4
      Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
      Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
      Gerrit-Reviewer: Justin Cohen <justi...@google.com>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Justin Cohen <justi...@google.com>
      Gerrit-Comment-Date: Mon, 11 May 2026 17:29:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Justin Cohen (Gerrit)

      unread,
      May 11, 2026, 1:29:25 PM (5 days ago) May 11
      to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
      Attention needed from Dave MacLachlan

      Justin Cohen added 1 comment

      Commit Message

      Related details

      Attention is currently required from:
      • Dave MacLachlan
      Submit Requirements:
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: crashpad/crashpad
      Gerrit-Branch: main
      Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
      Gerrit-Change-Number: 7833416
      Gerrit-PatchSet: 4
      Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
      Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
      Gerrit-Reviewer: Justin Cohen <justi...@google.com>
      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
      Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
      Gerrit-Comment-Date: Mon, 11 May 2026 17:29:23 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dave MacLachlan (Gerrit)

      unread,
      May 11, 2026, 1:31:33 PM (5 days ago) May 11
      to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
      Attention needed from Justin Cohen

      Dave MacLachlan added 3 comments

      This should be rewritten as a https://chromium-review.googlesource.com/c/… URL.

      You can get rid of ?tab=checks too, since that just makes the URL long.

      You can get rid of this line.

      Dave MacLachlan

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Justin Cohen
      Submit Requirements:
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: crashpad/crashpad
        Gerrit-Branch: main
        Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
        Gerrit-Change-Number: 7833416
        Gerrit-PatchSet: 5
        Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
        Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
        Gerrit-Reviewer: Justin Cohen <justi...@google.com>
        Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
        Gerrit-Attention: Justin Cohen <justi...@google.com>
        Gerrit-Comment-Date: Mon, 11 May 2026 17:31:29 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
        Comment-In-Reply-To: Justin Cohen <justi...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Dave MacLachlan (Gerrit)

        unread,
        May 11, 2026, 1:32:19 PM (5 days ago) May 11
        to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
        Attention needed from Justin Cohen

        Dave MacLachlan added 1 comment

        Patchset-level comments
        File-level comment, Patchset 5 (Latest):
        Dave MacLachlan . unresolved

        Looks like I need some code-review votes here

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Justin Cohen
        Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 5
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Justin Cohen <justi...@google.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:32:16 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin Cohen (Gerrit)

          unread,
          May 11, 2026, 1:32:30 PM (5 days ago) May 11
          to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Dave MacLachlan

          Justin Cohen voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave MacLachlan
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 5
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:32:27 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Justin Cohen (Gerrit)

          unread,
          May 11, 2026, 1:32:43 PM (5 days ago) May 11
          to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Dave MacLachlan

          Justin Cohen added 1 comment

          Commit Message
          Line 15, Patchset 5 (Latest):See also
          https://crrev.com/c/7833547
          Justin Cohen . unresolved

          one line?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave MacLachlan
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 5
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:32:40 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mark Mentovai (Gerrit)

          unread,
          May 11, 2026, 1:44:14 PM (5 days ago) May 11
          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Dave MacLachlan

          Mark Mentovai voted and added 1 comment

          Votes added by Mark Mentovai

          Code-Review+0

          1 comment

          Commit Message
          Mark Mentovai . unresolved

          You can get rid of this line.

          Dave MacLachlan

          Done

          Mark Mentovai

          Done

          It came back?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave MacLachlan
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 5
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:44:12 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Dave MacLachlan <dmac...@gmail.com>
          Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mark Mentovai (Gerrit)

          unread,
          May 11, 2026, 1:46:06 PM (5 days ago) May 11
          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Dave MacLachlan

          Mark Mentovai added 1 comment

          Commit Message
          Mark Mentovai . unresolved

          You can get rid of this line.

          Dave MacLachlan

          Done

          Mark Mentovai

          Done

          It came back?

          Mark Mentovai

          Oh, I meant to get rid of “Bug:”, not “Change-Id”. Gerrit requires Change-Id and it will probably just regenerate it if you get rid of it (unless getting rid of it causes something to break, I’ve seen that happen too.)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave MacLachlan
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 5
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:46:03 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Dave MacLachlan (Gerrit)

          unread,
          May 11, 2026, 1:48:01 PM (5 days ago) May 11
          to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Mark Mentovai

          Dave MacLachlan added 2 comments

          Commit Message
          Line 15, Patchset 5:See also
          https://crrev.com/c/7833547
          Justin Cohen . resolved

          one line?

          Dave MacLachlan

          Done

          Mark Mentovai . resolved

          You can get rid of this line.

          Dave MacLachlan

          Done

          Mark Mentovai

          Done

          It came back?

          Mark Mentovai

          Oh, I meant to get rid of “Bug:”, not “Change-Id”. Gerrit requires Change-Id and it will probably just regenerate it if you get rid of it (unless getting rid of it causes something to break, I’ve seen that happen too.)

          Dave MacLachlan

          Ah. Fixed again then :)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Mark Mentovai
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 6
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:47:58 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Dave MacLachlan <dmac...@gmail.com>
          Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
          Comment-In-Reply-To: Justin Cohen <justi...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Mark Mentovai (Gerrit)

          unread,
          May 11, 2026, 1:49:01 PM (5 days ago) May 11
          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
          Attention needed from Dave MacLachlan

          Mark Mentovai voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave MacLachlan
          Submit Requirements:
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: crashpad/crashpad
          Gerrit-Branch: main
          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
          Gerrit-Change-Number: 7833416
          Gerrit-PatchSet: 6
          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
          Gerrit-Comment-Date: Mon, 11 May 2026 17:48:59 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Dave MacLachlan (Gerrit)

          unread,
          May 11, 2026, 1:56:55 PM (5 days ago) May 11
          to Mark Mentovai, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org

          Dave MacLachlan added 1 comment

          Patchset-level comments
          File-level comment, Patchset 5:
          Dave MacLachlan . resolved

          Looks like I need some code-review votes here

          Dave MacLachlan

          Thanks folks!

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: crashpad/crashpad
            Gerrit-Branch: main
            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
            Gerrit-Change-Number: 7833416
            Gerrit-PatchSet: 6
            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
            Gerrit-Comment-Date: Mon, 11 May 2026 17:56:53 +0000
            satisfied_requirement
            open
            diffy

            Dave MacLachlan (Gerrit)

            unread,
            May 11, 2026, 1:57:13 PM (5 days ago) May 11
            to Mark Mentovai, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org

            Dave MacLachlan voted Commit-Queue+2

            Commit-Queue+2
            Open in Gerrit

            Related details

            Attention set is empty
            Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: crashpad/crashpad
            Gerrit-Branch: main
            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
            Gerrit-Change-Number: 7833416
            Gerrit-PatchSet: 6
            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
            Gerrit-Comment-Date: Mon, 11 May 2026 17:57:10 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Justin Cohen (Gerrit)

            unread,
            May 11, 2026, 2:12:29 PM (5 days ago) May 11
            to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
            Attention needed from Dave MacLachlan

            Justin Cohen voted Commit-Queue+2

            Commit-Queue+2
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Dave MacLachlan
            Submit Requirements:
            • requirement satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: crashpad/crashpad
            Gerrit-Branch: main
            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
            Gerrit-Change-Number: 7833416
            Gerrit-PatchSet: 6
            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
            Gerrit-Comment-Date: Mon, 11 May 2026 18:12:26 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Justin Cohen (Gerrit)

            unread,
            May 11, 2026, 2:26:44 PM (5 days ago) May 11
            to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
            Attention needed from Dave MacLachlan and Justin Cohen

            Justin Cohen voted and added 1 comment

            Votes added by Justin Cohen

            Code-Review+1

            1 comment

            File test/ios/host/handler_forbidden_allocators.cc
            Line 283, Patchset 6 (Latest): + sizeof(ChromeMallocZone);
            Justin Cohen . unresolved

            This probably needs to be sizeof(malloc_zone_t)

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Dave MacLachlan
            • Justin Cohen
            Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 6
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Attention: Justin Cohen <justi...@google.com>
              Gerrit-Comment-Date: Mon, 11 May 2026 18:26:42 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Dave MacLachlan (Gerrit)

              unread,
              May 11, 2026, 2:32:14 PM (5 days ago) May 11
              to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Justin Cohen and Mark Mentovai

              Dave MacLachlan added 1 comment

              File test/ios/host/handler_forbidden_allocators.cc
              Line 283, Patchset 6: + sizeof(ChromeMallocZone);
              Justin Cohen . resolved

              This probably needs to be sizeof(malloc_zone_t)

              Dave MacLachlan

              Marked as resolved.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Justin Cohen
              • Mark Mentovai
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 7
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Justin Cohen <justi...@google.com>
              Gerrit-Comment-Date: Mon, 11 May 2026 18:32:10 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Justin Cohen <justi...@google.com>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Justin Cohen (Gerrit)

              unread,
              May 11, 2026, 2:52:37 PM (5 days ago) May 11
              to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Dave MacLachlan and Mark Mentovai

              Justin Cohen voted

              Code-Review+1
              Commit-Queue+2
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Dave MacLachlan
              • Mark Mentovai
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 7
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
              Gerrit-Comment-Date: Mon, 11 May 2026 18:52:34 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Mark Mentovai (Gerrit)

              unread,
              May 11, 2026, 3:17:37 PM (5 days ago) May 11
              to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Dave MacLachlan and Justin Cohen

              Mark Mentovai voted Code-Review+1

              Code-Review+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Dave MacLachlan
              • Justin Cohen
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 7
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Attention: Justin Cohen <justi...@google.com>
              Gerrit-Comment-Date: Mon, 11 May 2026 19:17:35 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Dave MacLachlan (Gerrit)

              unread,
              May 11, 2026, 3:18:06 PM (5 days ago) May 11
              to Mark Mentovai, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Justin Cohen

              Dave MacLachlan voted Commit-Queue+2

              Commit-Queue+2
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Justin Cohen
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 7
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Justin Cohen <justi...@google.com>
              Gerrit-Comment-Date: Mon, 11 May 2026 19:18:03 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Mark Mentovai (Gerrit)

              unread,
              May 11, 2026, 3:26:54 PM (5 days ago) May 11
              to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Dave MacLachlan

              Mark Mentovai voted Code-Review+1

              Code-Review+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Dave MacLachlan
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 8
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Comment-Date: Mon, 11 May 2026 19:26:50 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Dave MacLachlan (Gerrit)

              unread,
              May 11, 2026, 4:09:39 PM (5 days ago) May 11
              to Mark Mentovai, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Mark Mentovai

              Dave MacLachlan added 1 comment

              Patchset-level comments
              File-level comment, Patchset 9 (Latest):
              Dave MacLachlan . resolved

              Updated with AI comments from Justin.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Mark Mentovai
              Submit Requirements:
              • requirement satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: crashpad/crashpad
              Gerrit-Branch: main
              Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
              Gerrit-Change-Number: 7833416
              Gerrit-PatchSet: 9
              Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
              Gerrit-Reviewer: Justin Cohen <justi...@google.com>
              Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
              Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
              Gerrit-Comment-Date: Mon, 11 May 2026 20:09:36 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Mark Mentovai (Gerrit)

              unread,
              May 11, 2026, 4:12:04 PM (5 days ago) May 11
              to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
              Attention needed from Dave MacLachlan

              Mark Mentovai added 2 comments

              Patchset-level comments
              Mark Mentovai . resolved

              This last update is not really an improvement.

              File test/ios/host/handler_forbidden_allocators.cc
              Line 289, Patchset 9 (Latest): // I do not know how we could have a single structure straddling non-contiguous regions.
              Mark Mentovai . unresolved

              Stay within 80 columns, at least.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Dave MacLachlan
              Submit Requirements:
                • requirement satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: crashpad/crashpad
                Gerrit-Branch: main
                Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                Gerrit-Change-Number: 7833416
                Gerrit-PatchSet: 9
                Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Comment-Date: Mon, 11 May 2026 20:12:01 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Mark Mentovai (Gerrit)

                unread,
                May 11, 2026, 4:15:45 PM (5 days ago) May 11
                to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                Attention needed from Dave MacLachlan

                Mark Mentovai added 1 comment

                File test/ios/host/handler_forbidden_allocators.cc
                Line 320, Patchset 9 (Latest): return true;}
                Mark Mentovai . unresolved

                And generally format the code correctly. `git cl format` can help.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Dave MacLachlan
                Submit Requirements:
                • requirement satisfiedCode-Owners
                • requirement is not satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement is not satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: crashpad/crashpad
                Gerrit-Branch: main
                Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                Gerrit-Change-Number: 7833416
                Gerrit-PatchSet: 9
                Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                Gerrit-Comment-Date: Mon, 11 May 2026 20:15:43 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Dave MacLachlan (Gerrit)

                unread,
                May 11, 2026, 4:44:40 PM (5 days ago) May 11
                to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                Attention needed from Justin Cohen and Mark Mentovai

                Dave MacLachlan added 2 comments

                File test/ios/host/handler_forbidden_allocators.cc
                Line 289, Patchset 9: // I do not know how we could have a single structure straddling non-contiguous regions.
                Mark Mentovai . resolved

                Stay within 80 columns, at least.

                Dave MacLachlan

                Gerrit editor was defaulting to 100 columns. Fixed and did edits on my local machine. git cl format applied.

                Line 320, Patchset 9: return true;}
                Mark Mentovai . resolved

                And generally format the code correctly. `git cl format` can help.

                Dave MacLachlan

                Sorry.. copy paste issue in the gerrit editor. Went back to doing edits on my local machine. Ran git cl format.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Justin Cohen
                • Mark Mentovai
                Submit Requirements:
                  • requirement satisfiedCode-Owners
                  • requirement is not satisfiedCode-Review
                  • requirement is not satisfiedReview-Enforcement
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: comment
                  Gerrit-Project: crashpad/crashpad
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                  Gerrit-Change-Number: 7833416
                  Gerrit-PatchSet: 11
                  Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                  Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                  Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                  Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                  Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                  Gerrit-Attention: Justin Cohen <justi...@google.com>
                  Gerrit-Comment-Date: Mon, 11 May 2026 20:44:37 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Mark Mentovai (Gerrit)

                  unread,
                  May 11, 2026, 4:52:59 PM (5 days ago) May 11
                  to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                  Attention needed from Dave MacLachlan

                  Mark Mentovai added 3 comments

                  File test/ios/host/handler_forbidden_allocators.cc
                  Line 242, Patchset 11 (Latest): bool first_region = true;
                  Mark Mentovai . unresolved

                  I personally find these more sensible if they’re framed as something that’s false and becomes true, like a “validity” bit, rather than something that tracks a structural aspect like “number of times through the loop”.

                  But really, since this protects the `protection` variable and is very closely coupled to that, it makes even more sense to structure it as `std::optional<bool> protection`. Now you no longer need a bogus value for `protection` (be it `VM_PROT_NONE` or `-1`). Instead, either `protection.has_value()` or it doesn’t!

                  Line 292, Patchset 11 (Latest): // I do not know how we could have a single structure straddling
                  Mark Mentovai . unresolved

                  Who am “I”? Who are “we”? The meaning gets lost as soon as this gets committed. This could simply be “A single structure shouldn’t straddle non-contiguous regions.”

                  Line 294, Patchset 11 (Latest): LOG(ERROR) << "VM regions spanning the zone are not contiguous";
                  Mark Mentovai . unresolved

                  In the same way that the relationship between `region_start` and `default_zone` is assured by `DCHECK`, this should also be a `DCHECK`.

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Dave MacLachlan
                  Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: crashpad/crashpad
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                    Gerrit-Change-Number: 7833416
                    Gerrit-PatchSet: 11
                    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Comment-Date: Mon, 11 May 2026 20:52:56 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Dave MacLachlan (Gerrit)

                    unread,
                    May 11, 2026, 5:11:01 PM (5 days ago) May 11
                    to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                    Attention needed from Mark Mentovai

                    Dave MacLachlan added 1 comment

                    File test/ios/host/handler_forbidden_allocators.cc
                    Line 294, Patchset 11 (Latest): LOG(ERROR) << "VM regions spanning the zone are not contiguous";
                    Mark Mentovai . unresolved

                    In the same way that the relationship between `region_start` and `default_zone` is assured by `DCHECK`, this should also be a `DCHECK`.

                    Dave MacLachlan

                    I believe the AI argument here was that the DCHECK is going to get compiled out and if there is a gap (which I agree should never happen) we are going to be in a bad situation. I also agree that the earlier dcheck (region_start > default_zone) also puts us in a bad situation when the DCHECK is compiled out. Would you prefer they were both dchecks, or both LOG(ERROR) and return false situations?

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Mark Mentovai
                    Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: crashpad/crashpad
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                    Gerrit-Change-Number: 7833416
                    Gerrit-PatchSet: 11
                    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Comment-Date: Mon, 11 May 2026 21:10:58 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Mark Mentovai (Gerrit)

                    unread,
                    May 11, 2026, 5:24:05 PM (5 days ago) May 11
                    to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                    Attention needed from Dave MacLachlan

                    Mark Mentovai added 1 comment

                    Patchset-level comments
                    File-level comment, Patchset 11 (Latest):
                    Mark Mentovai . unresolved

                    I don't know anything about the AI argument because I'm not a machine, but these are both in scope for either DCHECK or CHECK.

                    I suggested DCHECK because the existing one was a DCHECK. When the condition you're guarding against is really logically impossible (as it is here), DCHECK is correct, and the fact that it won't produce code in many release configurations is a feature.

                    CHECK is fine if you prefer it, but that level of strictness isn't really necessary here. You're not dealing with untrusted input. But in particular because we don't control the other side of the interface and xnu has had bugs that CHECKs in the field have helped find, CHECK is also OK for both of these.

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Dave MacLachlan
                    Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: crashpad/crashpad
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                    Gerrit-Change-Number: 7833416
                    Gerrit-PatchSet: 11
                    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Comment-Date: Mon, 11 May 2026 21:24:03 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Mark Mentovai (Gerrit)

                    unread,
                    May 12, 2026, 10:02:06 AM (4 days ago) May 12
                    to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                    Attention needed from Dave MacLachlan

                    Mark Mentovai added 1 comment

                    File test/ios/host/handler_forbidden_allocators.cc
                    Line 284, Patchset 11 (Latest): DCHECK_LE(region_start, reinterpret_cast<vm_address_t>(default_zone));
                    Mark Mentovai . unresolved

                    Thinking about this further:

                    If your goal is to make this maximally defensive, this `DCHECK` (or `CHECK`) needs to be coupled with another that ensures that `default_zone` is within the region returned by `vm_region_64` (`region_start + region_length`). Otherwise, it’s possible that the loop would never terminate.

                    As before, these are all contractual, and I’m happy with `DCHECK`, but would not object if you used `CHECK`. I do think that all of them should have the same applicability, though.

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Dave MacLachlan
                    Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: crashpad/crashpad
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                    Gerrit-Change-Number: 7833416
                    Gerrit-PatchSet: 11
                    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Comment-Date: Tue, 12 May 2026 14:02:00 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Dave MacLachlan (Gerrit)

                    unread,
                    May 12, 2026, 11:38:44 AM (4 days ago) May 12
                    to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                    Attention needed from Mark Mentovai

                    Dave MacLachlan added 4 comments

                    File test/ios/host/handler_forbidden_allocators.cc
                    Line 242, Patchset 11: bool first_region = true;
                    Mark Mentovai . resolved

                    I personally find these more sensible if they’re framed as something that’s false and becomes true, like a “validity” bit, rather than something that tracks a structural aspect like “number of times through the loop”.

                    But really, since this protects the `protection` variable and is very closely coupled to that, it makes even more sense to structure it as `std::optional<bool> protection`. Now you no longer need a bogus value for `protection` (be it `VM_PROT_NONE` or `-1`). Instead, either `protection.has_value()` or it doesn’t!

                    Dave MacLachlan

                    Done

                    Line 284, Patchset 11: DCHECK_LE(region_start, reinterpret_cast<vm_address_t>(default_zone));
                    Mark Mentovai . resolved

                    Thinking about this further:

                    If your goal is to make this maximally defensive, this `DCHECK` (or `CHECK`) needs to be coupled with another that ensures that `default_zone` is within the region returned by `vm_region_64` (`region_start + region_length`). Otherwise, it’s possible that the loop would never terminate.

                    As before, these are all contractual, and I’m happy with `DCHECK`, but would not object if you used `CHECK`. I do think that all of them should have the same applicability, though.

                    Dave MacLachlan

                    Done

                    Line 292, Patchset 11: // I do not know how we could have a single structure straddling
                    Mark Mentovai . resolved

                    Who am “I”? Who are “we”? The meaning gets lost as soon as this gets committed. This could simply be “A single structure shouldn’t straddle non-contiguous regions.”

                    Dave MacLachlan

                    Done

                    Line 294, Patchset 11: LOG(ERROR) << "VM regions spanning the zone are not contiguous";
                    Mark Mentovai . resolved

                    In the same way that the relationship between `region_start` and `default_zone` is assured by `DCHECK`, this should also be a `DCHECK`.

                    Dave MacLachlan

                    I believe the AI argument here was that the DCHECK is going to get compiled out and if there is a gap (which I agree should never happen) we are going to be in a bad situation. I also agree that the earlier dcheck (region_start > default_zone) also puts us in a bad situation when the DCHECK is compiled out. Would you prefer they were both dchecks, or both LOG(ERROR) and return false situations?

                    Dave MacLachlan

                    Moved to CHECK

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Mark Mentovai
                    Submit Requirements:
                    • requirement satisfiedCode-Owners
                    • requirement is not satisfiedCode-Review
                    • requirement is not satisfiedNo-Unresolved-Comments
                    • requirement is not satisfiedReview-Enforcement
                    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                    Gerrit-MessageType: comment
                    Gerrit-Project: crashpad/crashpad
                    Gerrit-Branch: main
                    Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                    Gerrit-Change-Number: 7833416
                    Gerrit-PatchSet: 12
                    Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                    Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                    Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                    Gerrit-Comment-Date: Tue, 12 May 2026 15:38:41 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Dave MacLachlan (Gerrit)

                    unread,
                    May 12, 2026, 11:39:08 AM (4 days ago) May 12
                    to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                    Attention needed from Mark Mentovai

                    Dave MacLachlan added 1 comment

                    Patchset-level comments
                    File-level comment, Patchset 11:
                    Mark Mentovai . resolved

                    I don't know anything about the AI argument because I'm not a machine, but these are both in scope for either DCHECK or CHECK.

                    I suggested DCHECK because the existing one was a DCHECK. When the condition you're guarding against is really logically impossible (as it is here), DCHECK is correct, and the fact that it won't produce code in many release configurations is a feature.

                    CHECK is fine if you prefer it, but that level of strictness isn't really necessary here. You're not dealing with untrusted input. But in particular because we don't control the other side of the interface and xnu has had bugs that CHECKs in the field have helped find, CHECK is also OK for both of these.

                    Dave MacLachlan

                    Moved all to CHECK

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Mark Mentovai
                    Submit Requirements:
                      • requirement satisfiedCode-Owners
                      • requirement is not satisfiedCode-Review
                      • requirement is not satisfiedReview-Enforcement
                      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                      Gerrit-MessageType: comment
                      Gerrit-Project: crashpad/crashpad
                      Gerrit-Branch: main
                      Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                      Gerrit-Change-Number: 7833416
                      Gerrit-PatchSet: 12
                      Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                      Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                      Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                      Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                      Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                      Gerrit-Comment-Date: Tue, 12 May 2026 15:39:06 +0000
                      Gerrit-HasComments: Yes
                      Gerrit-Has-Labels: No
                      Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                      satisfied_requirement
                      unsatisfied_requirement
                      open
                      diffy

                      Mark Mentovai (Gerrit)

                      unread,
                      May 12, 2026, 11:44:26 AM (4 days ago) May 12
                      to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                      Attention needed from Dave MacLachlan

                      Mark Mentovai added 2 comments

                      File test/ios/host/handler_forbidden_allocators.cc
                      Line 286, Patchset 12 (Latest): CHECK_LE(default_zone_address, region_start + region_length);
                      Mark Mentovai . unresolved

                      `CHECK_LT`.

                      Line 293, Patchset 12 (Latest): CHECK_NE(region_start, query_address);
                      Mark Mentovai . unresolved

                      Uh-oh, shouldn’t this be `CHECK_EQ`?

                      Open in Gerrit

                      Related details

                      Attention is currently required from:
                      • Dave MacLachlan
                      Submit Requirements:
                        • requirement satisfiedCode-Owners
                        • requirement is not satisfiedCode-Review
                        • requirement is not satisfiedNo-Unresolved-Comments
                        • requirement is not satisfiedReview-Enforcement
                        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                        Gerrit-MessageType: comment
                        Gerrit-Project: crashpad/crashpad
                        Gerrit-Branch: main
                        Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                        Gerrit-Change-Number: 7833416
                        Gerrit-PatchSet: 12
                        Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                        Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                        Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                        Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                        Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                        Gerrit-Comment-Date: Tue, 12 May 2026 15:44:23 +0000
                        Gerrit-HasComments: Yes
                        Gerrit-Has-Labels: No
                        satisfied_requirement
                        unsatisfied_requirement
                        open
                        diffy

                        Dave MacLachlan (Gerrit)

                        unread,
                        May 12, 2026, 12:21:28 PM (4 days ago) May 12
                        to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                        Attention needed from Mark Mentovai

                        Dave MacLachlan added 2 comments

                        File test/ios/host/handler_forbidden_allocators.cc
                        Line 286, Patchset 12: CHECK_LE(default_zone_address, region_start + region_length);
                        Mark Mentovai . resolved

                        `CHECK_LT`.

                        Dave MacLachlan

                        Yes you are right. thank you for your vigilance.

                        Line 293, Patchset 12: CHECK_NE(region_start, query_address);
                        Mark Mentovai . resolved

                        Uh-oh, shouldn’t this be `CHECK_EQ`?

                        Dave MacLachlan

                        Same again.

                        Open in Gerrit

                        Related details

                        Attention is currently required from:
                        • Mark Mentovai
                        Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 13
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Comment-Date: Tue, 12 May 2026 16:21:26 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Mark Mentovai (Gerrit)

                          unread,
                          May 12, 2026, 12:32:33 PM (4 days ago) May 12
                          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Dave MacLachlan

                          Mark Mentovai added 1 comment

                          Patchset-level comments
                          File-level comment, Patchset 13 (Latest):
                          Mark Mentovai . resolved

                          I know that this is “just” a test but since it’s been some effort to get the logic nailed down, can you detail how you tested the non-happy-path case where the `malloc_zone_t` straddles multiple VM regions?

                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Dave MacLachlan
                          Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 13
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Comment-Date: Tue, 12 May 2026 16:32:30 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Dave MacLachlan (Gerrit)

                          unread,
                          May 12, 2026, 2:10:41 PM (4 days ago) May 12
                          to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Mark Mentovai

                          Dave MacLachlan added 1 comment

                          Patchset-level comments
                          Mark Mentovai . resolved

                          I know that this is “just” a test but since it’s been some effort to get the logic nailed down, can you detail how you tested the non-happy-path case where the `malloc_zone_t` straddles multiple VM regions?

                          Dave MacLachlan

                          Tested in a separate code branch in a test app by allocating two relatively large blocks (page_size * 16) using vm_allocate. Verified using vm_region that the allocated blocks did end up as two distinct regions. Found in certain cases that smaller blocks (i.e. page size) were allocated in the same region which meant that the loop in DeprotectMallocZone was not being executed twice which is key to verifying correctness. Passed in the address of the second block minus half the size of malloc_zone_t to the DeprotectMallocZone routine. Walked through using debugger to verify that it cycled through the loop twice and completed successfully. Deallocated both the blocks, allocated new blocks, verified that I had two distinct regions. Protected the second region making it readonly. Passed in the address of the second block minus half the size of malloc_zone_t to the DeprotectMallocZone routine. Walked through using debugger to verify that it cycled through the loop twice and failed the protection equality check.

                          Vowed to never again end up in a case where I am editing code in four distinct locations at the same time 😊

                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Mark Mentovai
                          Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 14
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Comment-Date: Tue, 12 May 2026 18:10:38 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Mark Mentovai (Gerrit)

                          unread,
                          May 12, 2026, 2:40:44 PM (4 days ago) May 12
                          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Dave MacLachlan

                          Mark Mentovai voted

                          Code-Review+1
                          Commit-Queue+1
                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Dave MacLachlan
                          Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 14
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Comment-Date: Tue, 12 May 2026 18:40:42 +0000
                          Gerrit-HasComments: No
                          Gerrit-Has-Labels: Yes
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Mark Mentovai (Gerrit)

                          unread,
                          May 12, 2026, 2:41:02 PM (4 days ago) May 12
                          to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Dave MacLachlan

                          Mark Mentovai added 1 comment

                          Patchset-level comments
                          File-level comment, Patchset 14 (Latest):
                          Mark Mentovai . resolved

                          Thanks, Dave. We’ll take your vow seriously!

                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Dave MacLachlan
                          Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 14
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Comment-Date: Tue, 12 May 2026 18:41:00 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Justin Cohen (Gerrit)

                          unread,
                          May 12, 2026, 2:53:05 PM (4 days ago) May 12
                          to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Dave MacLachlan

                          Justin Cohen added 1 comment

                          Patchset-level comments
                          Mark Mentovai . resolved

                          I know that this is “just” a test but since it’s been some effort to get the logic nailed down, can you detail how you tested the non-happy-path case where the `malloc_zone_t` straddles multiple VM regions?

                          Dave MacLachlan

                          Tested in a separate code branch in a test app by allocating two relatively large blocks (page_size * 16) using vm_allocate. Verified using vm_region that the allocated blocks did end up as two distinct regions. Found in certain cases that smaller blocks (i.e. page size) were allocated in the same region which meant that the loop in DeprotectMallocZone was not being executed twice which is key to verifying correctness. Passed in the address of the second block minus half the size of malloc_zone_t to the DeprotectMallocZone routine. Walked through using debugger to verify that it cycled through the loop twice and completed successfully. Deallocated both the blocks, allocated new blocks, verified that I had two distinct regions. Protected the second region making it readonly. Passed in the address of the second block minus half the size of malloc_zone_t to the DeprotectMallocZone routine. Walked through using debugger to verify that it cycled through the loop twice and failed the protection equality check.

                          Vowed to never again end up in a case where I am editing code in four distinct locations at the same time 😊

                          Justin Cohen

                          Is this 'just' a test on the Chromium side of things? Should we add a test there (since iOS can't do death tests). (don't cut and paste this, it's proof of concept test)...

                          ```
                          TEST(HandlerForbiddenAllocators, DeprotectMallocZoneStraddlesRegions) {
                          vm_size_t page_size = getpagesize();
                          vm_size_t block_size = page_size * 16;
                          vm_address_t block1 = 0;
                            // Allocate two contiguous blocks.
                          kern_return_t kr =
                          vm_allocate(mach_task_self(), &block1, block_size * 2, VM_FLAGS_ANYWHERE);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            // Deallocate the second half so we can reallocate it separately.
                          kr = vm_deallocate(mach_task_self(), block1 + block_size, block_size);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            vm_address_t block2 = block1 + block_size;
                          kr = vm_allocate(mach_task_self(), &block2, block_size, VM_FLAGS_FIXED);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            // Set a different inheritance attribute on the second block so the kernel
                          // treats them as distinct VM regions rather than coalescing them.
                          kr = vm_inherit(mach_task_self(), block2, block_size, VM_INHERIT_NONE);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            // Verify they are distinct regions using vm_region_64.
                          vm_address_t region_addr = block1;
                          vm_size_t region_size = 0;
                          struct vm_region_basic_info_64 info;
                          mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT_64;
                          mach_port_t unused;
                          kr = vm_region_64(mach_task_self(),
                          &region_addr,
                          &region_size,
                          VM_REGION_BASIC_INFO_64,
                          reinterpret_cast<vm_region_info_t>(&info),
                          &info_count,
                          &unused);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                          mach_port_deallocate(mach_task_self(), unused);
                            // The region starting at block1 should have length equal to block_size if
                          // they are distinct regions.
                          ASSERT_EQ(region_addr, block1);
                          ASSERT_EQ(region_size, block_size);
                            // Construct a fake malloc_zone_t pointer straddling the two regions.
                          // Pass the address of the second block minus half the size of malloc_zone_t.
                          malloc_zone_t* fake_zone =
                          reinterpret_cast<malloc_zone_t*>(block2 - sizeof(malloc_zone_t) / 2);
                            vm_address_t reprotection_start = 0;
                          vm_size_t reprotection_length = 0;
                          vm_prot_t reprotection_value = VM_PROT_NONE;
                            bool success = internal::DeprotectMallocZone(fake_zone,
                          &reprotection_start,
                          &reprotection_length,
                          &reprotection_value);
                          EXPECT_TRUE(success);
                            // Clean up reprotection if needed.
                          if (reprotection_start) {
                          vm_protect(mach_task_self(),
                          reprotection_start,
                          reprotection_length,
                          false,
                          reprotection_value);
                          }
                            kr = vm_deallocate(mach_task_self(), block1, block_size);
                          EXPECT_EQ(kr, KERN_SUCCESS);
                          kr = vm_deallocate(mach_task_self(), block2, block_size);
                          EXPECT_EQ(kr, KERN_SUCCESS);
                          }
                          TEST(HandlerForbiddenAllocatorsDeathTest,
                          DeprotectMallocZoneMismatchedProtection) {
                          vm_size_t page_size = getpagesize();
                          vm_size_t block_size = page_size * 16;
                          vm_address_t block1 = 0;
                            kern_return_t kr =
                          vm_allocate(mach_task_self(), &block1, block_size * 2, VM_FLAGS_ANYWHERE);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            kr = vm_deallocate(mach_task_self(), block1 + block_size, block_size);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            vm_address_t block2 = block1 + block_size;
                          kr = vm_allocate(mach_task_self(), &block2, block_size, VM_FLAGS_FIXED);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            // Protect the second region making it readonly.
                          kr = vm_protect(mach_task_self(), block2, block_size, false, VM_PROT_READ);
                          ASSERT_EQ(kr, KERN_SUCCESS);
                            malloc_zone_t* fake_zone =
                          reinterpret_cast<malloc_zone_t*>(block2 - sizeof(malloc_zone_t) / 2);
                            vm_address_t reprotection_start = 0;
                          vm_size_t reprotection_length = 0;
                          vm_prot_t reprotection_value = VM_PROT_NONE;
                            // Expect a CHECK failure because the protection of the two regions differs.
                          ASSERT_DEATH_CHECK(internal::DeprotectMallocZone(fake_zone,
                          &reprotection_start,
                          &reprotection_length,
                          &reprotection_value),
                          "");
                          }
                          ```
                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Dave MacLachlan
                          Submit Requirements:
                          • requirement satisfiedCode-Owners
                          • requirement is not satisfiedCode-Review
                          • requirement is not satisfiedReview-Enforcement
                          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                          Gerrit-MessageType: comment
                          Gerrit-Project: crashpad/crashpad
                          Gerrit-Branch: main
                          Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                          Gerrit-Change-Number: 7833416
                          Gerrit-PatchSet: 14
                          Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                          Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                          Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                          Gerrit-Comment-Date: Tue, 12 May 2026 18:53:02 +0000
                          Gerrit-HasComments: Yes
                          Gerrit-Has-Labels: No
                          satisfied_requirement
                          unsatisfied_requirement
                          open
                          diffy

                          Justin Cohen (Gerrit)

                          unread,
                          May 12, 2026, 2:54:53 PM (4 days ago) May 12
                          to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                          Attention needed from Dave MacLachlan

                          Justin Cohen added 1 comment

                          Patchset-level comments
                          File-level comment, Patchset 13:
                          Mark Mentovai . unresolved
                          Justin Cohen

                          ma...@chromium.org this is more of a question for you ^^^^

                          Open in Gerrit

                          Related details

                          Attention is currently required from:
                          • Dave MacLachlan
                          Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedNo-Unresolved-Comments
                            • requirement is not satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Comment-Date: Tue, 12 May 2026 18:54:50 +0000
                            Gerrit-HasComments: Yes
                            Gerrit-Has-Labels: No
                            Comment-In-Reply-To: Dave MacLachlan <dmac...@gmail.com>
                            Comment-In-Reply-To: Mark Mentovai <ma...@chromium.org>
                            Comment-In-Reply-To: Justin Cohen <justi...@google.com>
                            satisfied_requirement
                            unsatisfied_requirement
                            open
                            diffy

                            Mark Mentovai (Gerrit)

                            unread,
                            May 13, 2026, 12:46:16 PM (3 days ago) May 13
                            to Dave MacLachlan, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Dave MacLachlan

                            Mark Mentovai added 1 comment

                            Patchset-level comments
                            Mark Mentovai

                            I don’t feel strongly that this _needs_ a test, because the setup is intense and the whole thing is kind of contrived.

                            I guess I feel better about DeprotectMallocZoneStraddlesRegions than DeprotectMallocZoneMismatchedProtection, which has to go out of its way to set up something unexpected that shouldn’t happen. There are lots of other things that shouldn’t happen, like a sparse map. I don’t think it’s on us (or Dave) to add a death test for each of them.

                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Dave MacLachlan
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedNo-Unresolved-Comments
                            • requirement is not satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Comment-Date: Wed, 13 May 2026 16:46:13 +0000
                            satisfied_requirement
                            unsatisfied_requirement
                            open
                            diffy

                            Justin Cohen (Gerrit)

                            unread,
                            May 13, 2026, 3:32:28 PM (3 days ago) May 13
                            to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Dave MacLachlan

                            Justin Cohen added 1 comment

                            Patchset-level comments
                            Justin Cohen

                            Is the Chromium version also test only?

                            And I'm happy to add the tests afterwards -- doesn't need to block this CL

                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Dave MacLachlan
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedNo-Unresolved-Comments
                            • requirement is not satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Comment-Date: Wed, 13 May 2026 19:32:26 +0000
                            satisfied_requirement
                            unsatisfied_requirement
                            open
                            diffy

                            Dave MacLachlan (Gerrit)

                            unread,
                            May 14, 2026, 3:53:09 PM (2 days ago) May 14
                            to Mark Mentovai, Justin Cohen, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Justin Cohen and Mark Mentovai

                            Dave MacLachlan added 1 comment

                            Patchset-level comments
                            Dave MacLachlan

                            @justin For this version can I get the code-review approval so we can land?

                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Justin Cohen
                            • Mark Mentovai
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement is not satisfiedCode-Review
                            • requirement is not satisfiedNo-Unresolved-Comments
                            • requirement is not satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Justin Cohen <justi...@google.com>
                            Gerrit-Comment-Date: Thu, 14 May 2026 19:53:06 +0000
                            satisfied_requirement
                            unsatisfied_requirement
                            open
                            diffy

                            Justin Cohen (Gerrit)

                            unread,
                            May 14, 2026, 9:22:25 PM (2 days ago) May 14
                            to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Dave MacLachlan and Mark Mentovai

                            Justin Cohen voted and added 1 comment

                            Votes added by Justin Cohen

                            Code-Review+1

                            1 comment

                            Patchset-level comments
                            File-level comment, Patchset 13:
                            Mark Mentovai . resolved
                            Justin Cohen

                            Acknowledged

                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Dave MacLachlan
                            • Mark Mentovai
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement satisfiedCode-Review
                            • requirement satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Comment-Date: Fri, 15 May 2026 01:22:23 +0000
                            Gerrit-HasComments: Yes
                            Gerrit-Has-Labels: Yes
                            satisfied_requirement
                            open
                            diffy

                            Dave MacLachlan (Gerrit)

                            unread,
                            May 15, 2026, 10:49:31 AM (yesterday) May 15
                            to Justin Cohen, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Mark Mentovai

                            Dave MacLachlan voted Commit-Queue+2

                            Commit-Queue+2
                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Mark Mentovai
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement satisfiedCode-Review
                            • requirement satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Comment-Date: Fri, 15 May 2026 14:49:27 +0000
                            Gerrit-HasComments: No
                            Gerrit-Has-Labels: Yes
                            satisfied_requirement
                            open
                            diffy

                            Justin Cohen (Gerrit)

                            unread,
                            May 15, 2026, 12:30:36 PM (yesterday) May 15
                            to Dave MacLachlan, Mark Mentovai, crashpa...@luci-project-accounts.iam.gserviceaccount.com, crashp...@chromium.org
                            Attention needed from Dave MacLachlan and Mark Mentovai

                            Justin Cohen voted Commit-Queue+2

                            Commit-Queue+2
                            Open in Gerrit

                            Related details

                            Attention is currently required from:
                            • Dave MacLachlan
                            • Mark Mentovai
                            Submit Requirements:
                            • requirement satisfiedCode-Owners
                            • requirement satisfiedCode-Review
                            • requirement satisfiedReview-Enforcement
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: comment
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 14
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Attention: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Attention: Mark Mentovai <ma...@chromium.org>
                            Gerrit-Comment-Date: Fri, 15 May 2026 16:30:34 +0000
                            Gerrit-HasComments: No
                            Gerrit-Has-Labels: Yes
                            satisfied_requirement
                            open
                            diffy

                            crashpad-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

                            unread,
                            May 15, 2026, 12:46:55 PM (yesterday) May 15
                            to Dave MacLachlan, Justin Cohen, Mark Mentovai, crashp...@chromium.org

                            crashpa...@luci-project-accounts.iam.gserviceaccount.com submitted the change

                            Change information

                            Commit message:
                            Fix DeprotectMallocZone to work across vm_regions

                            Memory can be allocated across memory regions. DeprotectMallocZone was
                            assuming that an allocation would be confined to a single memory region.
                            It now iterates through the regions if necessary and verifies that all
                            regions have the same memory protection values before changing the
                            memory protection.

                            See also https://crrev.com/c/7833547
                            Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Reviewed-by: Mark Mentovai <ma...@chromium.org>
                            Reviewed-by: Justin Cohen <justi...@google.com>
                            Commit-Queue: Justin Cohen <justi...@google.com>
                            Files:
                            • M test/ios/host/handler_forbidden_allocators.cc
                            Change size: M
                            Delta: 1 file changed, 61 insertions(+), 35 deletions(-)
                            Branch: refs/heads/main
                            Submit Requirements:
                            • requirement satisfiedCode-Review: +1 by Justin Cohen, +1 by Mark Mentovai
                            Open in Gerrit
                            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                            Gerrit-MessageType: merged
                            Gerrit-Project: crashpad/crashpad
                            Gerrit-Branch: main
                            Gerrit-Change-Id: I2a82c1d19c4101de603c8e5ab23961a8e10d4580
                            Gerrit-Change-Number: 7833416
                            Gerrit-PatchSet: 15
                            Gerrit-Owner: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Dave MacLachlan <dmac...@gmail.com>
                            Gerrit-Reviewer: Justin Cohen <justi...@google.com>
                            Gerrit-Reviewer: Mark Mentovai <ma...@chromium.org>
                            open
                            diffy
                            satisfied_requirement
                            Reply all
                            Reply to author
                            Forward
                            0 new messages