In the Linux kernel, the following vulnerability has been resolved: x86/mm: Ensure write visibility during LDT installation During LDT installation, the intent is to overwrite the old per-mm LDT value, then send an IPI to the mm user CPUs to have each load the new value. But there is an ordering problem: a new mm user CPU sets itself in mm_cpumask() and then reads mm->context.ldt. The LDT-installing CPU writes mm->context.ldt and then reads mm_cpumask(). But, there is nothing which orders the LDT installation side actions. The CPU can read mm_cpumask() before its write becomes visible. Ensure that new mm user CPUs see the new mm->context.ldt. Make mm->context.ldt visible before reading mm_cpumask(). Also convert the smp_store_release() over to a WRITE_ONCE(). smp_store_release() has an internal barrier which is weaker than the new smp_mb(). Avoid an extra barrier by converting it to WRITE_ONCE(). Also refresh/correct misleading comments. READ/WRITE_ONCE() do not "synchronize" anything themselves.
https://git.kernel.org/stable/c/f5ba9d3ac0d12d1b7d4ca8888c82a74c9915efae
https://git.kernel.org/stable/c/cafda8fc0f7e67b8a77659f47f9593a302b1a133
https://git.kernel.org/stable/c/43b1ef94852545d2e68531336e84afceb71c8efe
https://git.kernel.org/stable/c/374f5fdbcb04875cc7e4af03da1bca9831943a2d
https://git.kernel.org/stable/c/0dc2a4dac3d04e9e4479aeb0b46172feab1cca0a
https://git.kernel.org/stable/c/0d433d87c351e30a9db9a9a5eeb54bccd5db2bdd