]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/powernv/npu: Check mmio_atsd array bounds when populating
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 19 Dec 2018 08:52:28 +0000 (19:52 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 05:20:46 +0000 (16:20 +1100)
commit135ef954051b102870a8d47a8eb822af1f1b1ec1
tree0769b1280ba5f1d5cf301d1f408127d1ed0e67e9
parent1b785611e1191751e1fb44ac3e89a0bd68ec7971
powerpc/powernv/npu: Check mmio_atsd array bounds when populating

A broken device tree might contain more than 8 values and introduce hard
to debug memory corruption bug. This adds the boundary check.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c