Commit d1cb143
irqchip/mips-gic: Prevent indirect access to clusters without CPU cores
It is possible to have zero CPU cores in a cluster; in such cases, it is
not possible to access the GIC, and any indirect access leads to an
exception.
Prevent access to such clusters by checking the number of cores in the
cluster at all places which issue indirect cluster access.
Signed-off-by: Gregory CLEMENT <[email protected]>
Signed-off-by: Aleksandar Rikalo <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]1 parent 322a906 commit d1cb143
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
510 | 514 | | |
511 | 515 | | |
512 | 516 | | |
| |||
520 | 524 | | |
521 | 525 | | |
522 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
523 | 530 | | |
524 | 531 | | |
525 | 532 | | |
| |||
687 | 694 | | |
688 | 695 | | |
689 | 696 | | |
690 | | - | |
691 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
692 | 701 | | |
693 | 702 | | |
694 | 703 | | |
| |||
982 | 991 | | |
983 | 992 | | |
984 | 993 | | |
985 | | - | |
| 994 | + | |
986 | 995 | | |
987 | 996 | | |
988 | 997 | | |
989 | 998 | | |
990 | 999 | | |
991 | 1000 | | |
992 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
993 | 1005 | | |
994 | 1006 | | |
995 | 1007 | | |
| |||
0 commit comments