GWP-ASan: Teach allocator about PartitionAlloc
A core security guarantee of PartitionAlloc is that allocations of different types are never given overlapping allocations. In order to maintain this security guarantee, the GuardedPageAllocator needs to taught to know when it is used to back PartitionAlloc, and passed in the types on Allocate(). In those cases it maintains a PartitionAlloc specific free list that is aware of what types have been previously used for particular slots. Bug: 956824 Change-Id: I77e596f29d29cc7f88b9e838b8bae891037bafcb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1622477Reviewed-by:Vitaly Buka <vitalybuka@chromium.org> Commit-Queue: Vitaly Buka <vitalybuka@chromium.org> Auto-Submit: Vlad Tsyrklevich <vtsyrklevich@chromium.org> Cr-Commit-Position: refs/heads/master@{#661994}
Showing
Please register or sign in to comment