Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The big thing here is that the GPU has historically been a pain point for Android, because it has extreme access to the AP in ways that basically sidestep any mitigation that you put in its way. Any bugs in the driver's mapping code (and there have been many) end up giving very powerful primitives, and this fact has repeatedly been used in in-the-wild exploits. Unfortunately, I don't think much is going to change here until this gets rearchitected.


IMO, what needs to happen is that half-assed mobile GPUs need to stop including their own MMU, and use a standard IO-MMU.


A number of GPUs use a standard Arm SMMU instead of an IOMMU already.

The problem with those GPUs in general is driver issues, the hardware is fine.


> A number of GPUs use a standard Arm SMMU instead of an IOMMU already.

Yes, I'm talking about using cores like an ARM SMMU (which is an IO-MMU). Perhaps some GPUs do, but many (most?) don't including the Mali-G710 in this article that's currently shipping in the Pixel 8.

> The problem with those GPUs in general is driver issues, the hardware is fine.

Exactly. I want them to stop writing bespoke kernel code manually fiddling with some custom page table format that gives physical memory read/write primitives when they get it wrong.


> Perhaps some GPUs do, but many (most?) don't

See Qualcomm Adreno


Recent Adreno.

VideoCore, IMG, Mali, the RDNA2 respun as "XClipse GPU" all do not use system standard IOMMUs to provide their user device contexts.


Is the GPU driver closed source?


It is in this case.


The UM part, KM is OSS


What does AP mean here?


Application Processor, i.e. the main processor


[flagged]


It's a very common phrase in spoken english.



It's been around for 38 years. It's not going anywhere.

https://www.merriam-webster.com/dictionary/pain%20point


I get that, but in GP post there was a zero need to use a buzzword instead of something normal, such as "problem" or "issue" or smth.


What can I say, the corporate environment has ruined me




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: