commit | d52af31186a1419e3b0c7d62bc2a05c7e1d3e493 | [log] [tgz] |
---|---|---|
author | Bartosz Szatkowski <bartosz.szatkowski@arm.com> | Wed Mar 19 11:23:20 2014 +0000 |
committer | Rom Lemarchand <romlem@android.com> | Fri Mar 21 15:24:26 2014 +0000 |
tree | cefda56d355090921f3263f95e71f96d7c292181 | |
parent | c5945492f3552bfadd916d60967aa6d9d513090e [diff] |
mali: Fix VM_MAY% issues for mmap Trace buffer is inadequately protected from modification by user space. In addition all other mmap handling only checks for VM_% flags, but don't clear out the VM_MAY% flags, allowing a client to upgrade their mapping to more privileges than the driver expected. This fix clears out the VM_MAY% flags for all mmaps, plus hard-codes the right flags for the special cases. Bug: 13539903 Change-Id: Ib5db0e44a752649e662c9295bdc444640c1cb912