aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dax
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2017-05-10 19:55:31 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-03 19:05:47 +0900
commit57102ad79284facacc7a94879cf3e11452557da3 (patch)
treef42ab45d0bf31d8c2919217ca7bc7b44cd815014 /drivers/dax
parentRevert "firmware: vpd: remove platform driver" (diff)
downloadlinux-dev-57102ad79284facacc7a94879cf3e11452557da3.tar.xz
linux-dev-57102ad79284facacc7a94879cf3e11452557da3.zip
spmi: pmic_arb: block access of invalid read and writes
The system crashes due to bad access when reading from an non configured peripheral and when writing to peripheral which is not owned by current ee. This patch verifies ownership to avoid crashing on write. For reads, since the forward mapping table, data_channel->ppid, is towards the end of the block, we use the core size to figure the max number of ppids supported. The table starts at an offset of 0x800 within the block, so size - 0x800 will give us the area used by the table. Since each table is 4 bytes long (core_size - 0x800) / 4 will gives us the number of data_channel supported. This new protection is functional on hw v2. Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org> Signed-off-by: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions