You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Sanitizers][Apple] Fix logic bugs that break RestrictMemoryToMaxAddress
There are two logic bugs breaking RestrictMemoryToMaxAddress -- adding left_padding within MapDynamicShadow.
There is also an issue with the expectation of hitting KERN_INVALID_ADDRESS when we are beyond the addressable regions.
For most embedded scenarios, we exceed vm_max_address and setting max_occupied address to a memory region the process doesn't have access to.
Because of this, our check if (new_max_vm < max_occupied_addr) { will always fail and we will never restrict the address on smaller devices.
rdar://66603866
0 commit comments