Searched hist:"7 e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723" (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/irqchip/ |
H A D | irq-loongarch-cpu.c | diff 7e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723 Mon Aug 08 05:50:20 CDT 2022 Marc Zyngier <maz@kernel.org> irqchip/loongarch: Fix irq_domain_alloc_fwnode() abuse
The recently merged LoongArch drivers paper over the lack of topology information by creating a bunch of fwnodes for the irqchips. So far, so good.
However, irq_domain_alloc_fwnode() is supposed to take a PA, and not a kernel VA blindly cast as a PA, potentially disclosing kernel VAs to userspace. In some other cases, even NULL is used as the PA, which is entertaining.
Fix this by using the actual PA of the block when available, and switch to a named fwnode in the other cases.
Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn> Link: https://lore.kernel.org/r/20220808105020.2689757-1-maz@kernel.org
|
H A D | irq-loongson-pch-msi.c | diff 7e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723 Mon Aug 08 05:50:20 CDT 2022 Marc Zyngier <maz@kernel.org> irqchip/loongarch: Fix irq_domain_alloc_fwnode() abuse
The recently merged LoongArch drivers paper over the lack of topology information by creating a bunch of fwnodes for the irqchips. So far, so good.
However, irq_domain_alloc_fwnode() is supposed to take a PA, and not a kernel VA blindly cast as a PA, potentially disclosing kernel VAs to userspace. In some other cases, even NULL is used as the PA, which is entertaining.
Fix this by using the actual PA of the block when available, and switch to a named fwnode in the other cases.
Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn> Link: https://lore.kernel.org/r/20220808105020.2689757-1-maz@kernel.org
|
H A D | irq-loongson-eiointc.c | diff 7e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723 Mon Aug 08 05:50:20 CDT 2022 Marc Zyngier <maz@kernel.org> irqchip/loongarch: Fix irq_domain_alloc_fwnode() abuse
The recently merged LoongArch drivers paper over the lack of topology information by creating a bunch of fwnodes for the irqchips. So far, so good.
However, irq_domain_alloc_fwnode() is supposed to take a PA, and not a kernel VA blindly cast as a PA, potentially disclosing kernel VAs to userspace. In some other cases, even NULL is used as the PA, which is entertaining.
Fix this by using the actual PA of the block when available, and switch to a named fwnode in the other cases.
Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn> Link: https://lore.kernel.org/r/20220808105020.2689757-1-maz@kernel.org
|
H A D | irq-loongson-pch-pic.c | diff 7e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723 Mon Aug 08 05:50:20 CDT 2022 Marc Zyngier <maz@kernel.org> irqchip/loongarch: Fix irq_domain_alloc_fwnode() abuse
The recently merged LoongArch drivers paper over the lack of topology information by creating a bunch of fwnodes for the irqchips. So far, so good.
However, irq_domain_alloc_fwnode() is supposed to take a PA, and not a kernel VA blindly cast as a PA, potentially disclosing kernel VAs to userspace. In some other cases, even NULL is used as the PA, which is entertaining.
Fix this by using the actual PA of the block when available, and switch to a named fwnode in the other cases.
Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn> Link: https://lore.kernel.org/r/20220808105020.2689757-1-maz@kernel.org
|
H A D | irq-loongson-liointc.c | diff 7e4fd7a1a6fdf23d069eeb0ae0e8e46b9fb40723 Mon Aug 08 05:50:20 CDT 2022 Marc Zyngier <maz@kernel.org> irqchip/loongarch: Fix irq_domain_alloc_fwnode() abuse
The recently merged LoongArch drivers paper over the lack of topology information by creating a bunch of fwnodes for the irqchips. So far, so good.
However, irq_domain_alloc_fwnode() is supposed to take a PA, and not a kernel VA blindly cast as a PA, potentially disclosing kernel VAs to userspace. In some other cases, even NULL is used as the PA, which is entertaining.
Fix this by using the actual PA of the block when available, and switch to a named fwnode in the other cases.
Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Jianmin Lv <lvjianmin@loongson.cn> Link: https://lore.kernel.org/r/20220808105020.2689757-1-maz@kernel.org
|