-
Notifications
You must be signed in to change notification settings - Fork 2
[PW_SID:1044751] irqchip/sifive-plic: Fix insufficient irq_groups allocation #1353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since the first irq source is 1 instead of 0, when the number of irqs is multiple of 32, the last irq group will be ignored during allocation, saving, and restoring. This lead to memory corruption when accessing enable_save beyond allocated memory after commit 14ff9e5 ("irqchip/sifive-plic: Cache the interrupt enable state") which will access enable_save for all sources during plic_probe. Thus, we should allocate irq_groups based on (nr_irqs + 1) instead of nr_irqs to avoid this issue. Fixes: 14ff9e5 ("irqchip/sifive-plic: Cache the interrupt enable state") Signed-off-by: Yangyu Chen <cyy@cyyself.name> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
|
Patch 1: "irqchip/sifive-plic: Fix insufficient irq_groups allocation" |
PR for series 1044751 applied to workflow__riscv__fixes
Name: irqchip/sifive-plic: Fix insufficient irq_groups allocation
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1044751
Version: 1