Re: [PATCH] hw/intc: sifive_plic: fix out-of-bound access of source_priority array

2022-12-06 Thread Alistair Francis
On Mon, Nov 28, 2022 at 2:59 AM Jim Shu wrote: > > If the number of interrupt is not multiple of 32, PLIC will have > out-of-bound access to source_priority array. Compute the number of > interrupt in the last word to avoid this out-of-bound access of array. > > Signed-off-by: Jim Shu Thanks! A

Re: [PATCH] hw/intc: sifive_plic: fix out-of-bound access of source_priority array

2022-11-28 Thread Bin Meng
On Mon, Nov 28, 2022 at 12:59 AM Jim Shu wrote: > > If the number of interrupt is not multiple of 32, PLIC will have > out-of-bound access to source_priority array. Compute the number of > interrupt in the last word to avoid this out-of-bound access of array. > > Signed-off-by: Jim Shu > --- > h

[PATCH] hw/intc: sifive_plic: fix out-of-bound access of source_priority array

2022-11-27 Thread Jim Shu
If the number of interrupt is not multiple of 32, PLIC will have out-of-bound access to source_priority array. Compute the number of interrupt in the last word to avoid this out-of-bound access of array. Signed-off-by: Jim Shu --- hw/intc/sifive_plic.c | 12 +++- 1 file changed, 11 inser