[PATCHv2 4/7] gpu: host1x: Copy gathers before verification

2013-05-29 Thread Arto Merilainen
The firewall verified gather buffers before copying them. This allowed a malicious application to rewrite the buffer content by timing the rewrite carefully. This patch makes the buffer validation occur after copying the buffers. Signed-off-by: Arto Merilainen Signed-off-by: Terje Bergstrom ---

[PATCHv2 4/7] gpu: host1x: Copy gathers before verification

2013-05-29 Thread Arto Merilainen
The firewall verified gather buffers before copying them. This allowed a malicious application to rewrite the buffer content by timing the rewrite carefully. This patch makes the buffer validation occur after copying the buffers. Signed-off-by: Arto Merilainen Signed-off-by: Terje Bergstrom ---