漏洞标题
RISC-V:kexec:在kexec崩溃路径中避免死锁
漏洞描述信息
在Linux内核中,已解决以下漏洞:
riscv:kexec:在kexec崩溃路径中避免死锁
如果在中断上下文中调用kexec崩溃代码,那么machine_kexec_mask_interrupts()函数将在尝试获取irqdesc自旋锁并随后在irq_set_irqchip_state()函数中禁用irqchip时触发死锁。
与arm64不同,riscv只需要irq_eoi处理器来完成EOI,而保留irq_set_irqchip_state()只会留下这种可能的死锁而没有任何用处。因此,我们简单地将其删除。
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞类别
加锁机制不恰当
漏洞标题
riscv: kexec: Avoid deadlock in kexec crash path
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
riscv: kexec: Avoid deadlock in kexec crash path
If the kexec crash code is called in the interrupt context, the
machine_kexec_mask_interrupts() function will trigger a deadlock while
trying to acquire the irqdesc spinlock and then deactivate irqchip in
irq_set_irqchip_state() function.
Unlike arm64, riscv only requires irq_eoi handler to complete EOI and
keeping irq_set_irqchip_state() will only leave this possible deadlock
without any use. So we simply remove it.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于riscv:kexec模块中如果kexec crash代码某些位置被调用,machine_kexec_mask_interrupts()函数在尝试获取irqdesc自旋锁时将触发死锁。
CVSS信息
N/A
漏洞类别
其他