| b8007beb | 15-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): avoid extra loop
Using one loop for the duplicate partition ID check is both simpler and faster.
Change-Id: I0f6fa9ceb1aadf4383fa9be16605c39ad8643a43 Signed-off-by: Demi Marie O
refactor(el3-spmc): avoid extra loop
Using one loop for the duplicate partition ID check is both simpler and faster.
Change-Id: I0f6fa9ceb1aadf4383fa9be16605c39ad8643a43 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 966c63e6 | 15-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): move checks after loop
This makes the code cleaner. No functional change intended.
Change-Id: Ib7b438b830e8e3b7ac6e30d688f5172cbaa58121 Signed-off-by: Demi Marie Obenour <demio
refactor(el3-spmc): move checks after loop
This makes the code cleaner. No functional change intended.
Change-Id: Ib7b438b830e8e3b7ac6e30d688f5172cbaa58121 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| dd94372d | 15-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
fix(el3-spmc): validate shmem descriptor alignment
If the size of a shmem descriptor is not a multiple of 16, the descriptor would be unusable, but the problem would be caught much later.
Change-Id
fix(el3-spmc): validate shmem descriptor alignment
If the size of a shmem descriptor is not a multiple of 16, the descriptor would be unusable, but the problem would be caught much later.
Change-Id: I907f3862b55c6341e39a6b8b2e24784127230478 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 27c02425 | 12-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
fix(el3-spmc): avoid descriptor size calc overflow
This ensures that descriptor size calculation does not overflow and removes a bounds check that does not actually work.
Change-Id: If8da2bb1b31294
fix(el3-spmc): avoid descriptor size calc overflow
This ensures that descriptor size calculation does not overflow and removes a bounds check that does not actually work.
Change-Id: If8da2bb1b312941b7f9d0debf3149b984fc3809a Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 43318e4a | 12-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
fix(el3-spmc): use uint64_t for 64-bit type
Using uint64_t is cleaner, even though size_t is 64 bits on all platforms el3-spmc supports.
Change-Id: I457deb0b7f3df0749cb5368cceda1bb530d039de Signed-
fix(el3-spmc): use uint64_t for 64-bit type
Using uint64_t is cleaner, even though size_t is 64 bits on all platforms el3-spmc supports.
Change-Id: I457deb0b7f3df0749cb5368cceda1bb530d039de Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 1198ff84 | 12-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): avoid unneeded function call
The information is already available inline. No functional change intended.
Change-Id: I13d2ad62a9315b233d7a5fd3ffcaac3dd01b055c Signed-off-by: Dem
refactor(el3-spmc): avoid unneeded function call
The information is already available inline. No functional change intended.
Change-Id: I13d2ad62a9315b233d7a5fd3ffcaac3dd01b055c Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 48ffc74c | 12-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): move function call out of loop
Hopefully this will be a tiny speedup. No functional change intended.
Change-Id: Ia052c7f9b24d5ece6209a6fa2903b1271215ece7 Signed-off-by: Demi Ma
refactor(el3-spmc): move function call out of loop
Hopefully this will be a tiny speedup. No functional change intended.
Change-Id: Ia052c7f9b24d5ece6209a6fa2903b1271215ece7 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 9526282a | 12-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): crash instead of reading OOB
If it is called on an invalid mtd, out-of-bounds memory reads are likely. Checks elsewhere in the code ensure that the mtd has been validated before
refactor(el3-spmc): crash instead of reading OOB
If it is called on an invalid mtd, out-of-bounds memory reads are likely. Checks elsewhere in the code ensure that the mtd has been validated before calling this function.
Change-Id: If598680a5b79e1786a6e0a213779ec80cbf37494 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 0c2583c6 | 11-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
fix(el3-spmc): correctly account for emad_offset
Use the address of emad 0 instead of the size of the MRD.
Change-Id: I31ec0001b4474e78caa9dfb468f63122a3708781 Signed-off-by: Demi Marie Obenour <de
fix(el3-spmc): correctly account for emad_offset
Use the address of emad 0 instead of the size of the MRD.
Change-Id: I31ec0001b4474e78caa9dfb468f63122a3708781 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|
| 46d6b370 | 11-Jan-2023 |
Demi Marie Obenour <demiobenour@gmail.com> |
refactor(el3-spmc): avoid unnecessarily revalidating offset
The offset has been validated on the first loop iteration. Subsequent iterations can assume it is valid.
Change-Id: Ib06cd0240220b8aa42b
refactor(el3-spmc): avoid unnecessarily revalidating offset
The offset has been validated on the first loop iteration. Subsequent iterations can assume it is valid.
Change-Id: Ib06cd0240220b8aa42bcd34c3c40b69d2d86aa72 Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
show more ...
|