Skip to content
Commit 7a7a0820 authored by Songyang Li's avatar Songyang Li Committed by Liao Chen
Browse files

MIPS: Octeon: Add PCIe link status check

mainline inclusion
from mainline-v6.10-rc1
commit 29b83a64df3b42c88c0338696feb6fdcd7f1f3b7
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IACSM3
CVE: CVE-2024-40968

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=29b83a64df3b42c88c0338696feb6fdcd7f1f3b7



-----------------------------------------------

The standard PCIe configuration read-write interface is used to
access the configuration space of the peripheral PCIe devices
of the mips processor after the PCIe link surprise down, it can
generate kernel panic caused by "Data bus error". So it is
necessary to add PCIe link status check for system protection.
When the PCIe link is down or in training, assigning a value
of 0 to the configuration address can prevent read-write behavior
to the configuration space of peripheral PCIe devices, thereby
preventing kernel panic.

Signed-off-by: default avatarSongyang Li <leesongyang@outlook.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarLiao Chen <liaochen4@huawei.com>
parent 728c3850
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment