ARM: rockchip: fix kernel hang during smp initialization
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3ee851e212d0bb6be8c462059fba74ce2e3f6064 · < 0223a3683d502b7e5eb2eb4ad7e97363fa88d531| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ARM: rockchip: fix kernel hang during smp initialization
In order to bring up secondary CPUs main CPU write trampoline code to SRAM. The trampoline code is written while secondary CPUs are powered on (at least that true for RK3188 CPU). Sometimes that leads to kernel hang. Probably because secondary CPU execute trampoline code while kernel doesn't expect.
The patch moves SRAM initialization step to the point where all secondary CPUs are powered down.
That fixes rarely hangs on RK3188: [ 0.091568] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.091996] rockchip_smp_prepare_cpus: ncores 4
From the CVE record · Linux
The Linux kernel can rarely hang while bringing up secondary CPUs on RK3188 systems. The hang can occur when a secondary CPU executes trampoline code as it is being written to SRAM; the input describes no attacker action, authentication requirement, or user interaction.
Engineers running the Linux kernel on RK3188 systems should check their installations; affected versions are not specified.