strongarm: mask off high[31:28] bits from dir and state registers
commit9a93b2fa0ed8de66a9deb9106ce5ddc2a65d68f0
authorPrasad J Pandit <pjp@fedoraproject.org>
Tue, 30 Oct 2018 15:23:56 +0000 (30 15:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Nov 2018 14:03:33 +0000 (2 14:03 +0000)
treeb793434e0f323386c7d7df1e250ac0b575e2e906
parent22461bd2e59380c08683044c580c18b1f3c9ce26
strongarm: mask off high[31:28] bits from dir and state registers

The high[31:28] bits of 'direction' and 'state' registers of
SA-1100/SA-1110 device are reserved. Setting them may lead to
OOB 's->handler[]' array access issue. Mask off [31:28] bits to
avoid it.

Reported-by: Moguofang <moguofang@huawei.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Message-id: 20181030114635.31232-1-ppandit@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/strongarm.c