forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PartitionAlloc] Poison the beginning of the slot at free() time.
We see some crashes in the wild that are possibly due to a Use-After-Free in calling code somewhere. Poisoning memory will hopefully make code more likely to crash at the UaF point, rather than at allocation time. But only do it for the current cacheline, to avoid increasing cost. Change-Id: I1133be44f0ab38ec1fe3ff2d12e2faad8cf30f28 Bug: 998048 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2903351 Commit-Queue: Benoit L <lizeb@chromium.org> Reviewed-by: Bartek Nowierski <bartekn@chromium.org> Cr-Commit-Position: refs/heads/master@{#888415}
- Loading branch information
Benoit Lize
authored and
Chromium LUCI CQ
committed
Jun 2, 2021
1 parent
854d0d5
commit a6dac4f
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters