Repository navigation
Commit 3af9571
irqchip/gic-v4.1: Ensure accessing the correct RD when writing INVALLR
The GICv4.1 spec tells us that it's CONSTRAINED UNPREDICTABLE to issue a
register-based invalidation operation for a vPEID not mapped to that RD,
or another RD within the same CommonLPIAff group.
To follow this rule, commit f3a0592 ("irqchip/gic-v4.1: Ensure mutual
exclusion between vPE affinity change and RD access") tried to address the
race between the RD accesses and the vPE affinity change, but somehow
forgot to take GICR_INVALLR into account. Let's take the vpe_lock before
evaluating vpe->col_idx to fix it.
Fixes: f3a0592 ("irqchip/gic-v4.1: Ensure mutual exclusion between vPE affinity change and RD access")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200720092328.708-1-yuzenghui@huawei.com1 parent 9808357 commit 3af9571
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4079 | 4079 | | |
4080 | 4080 | | |
4081 | 4081 | | |
| 4082 | + | |
4082 | 4083 | | |
| 4084 | + | |
4083 | 4085 | | |
4084 | 4086 | | |
4085 | 4087 | | |
4086 | 4088 | | |
4087 | 4089 | | |
4088 | | - | |
4089 | | - | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
4090 | 4093 | | |
4091 | 4094 | | |
4092 | 4095 | | |
4093 | | - | |
| 4096 | + | |
| 4097 | + | |
4094 | 4098 | | |
4095 | 4099 | | |
4096 | 4100 | | |
| |||
0 commit comments