Description
In the Linux kernel, the following vulnerability has been resolved: alpha: fix user-space corruption during memory compaction Alpha systems can suffer sporadic user-space crashes and heap corruption when memory compaction is enabled. Symptoms include SIGSEGV, glibc allocator failures (e.g. "unaligned tcache chunk"), and compiler internal errors. The failures disappear when compaction is disabled or when using global TLB invalidation. The root cause is insufficient TLB shootdown during page migration. Alpha relies on ASN-based MM context rollover for instruction cache coherency, but this alone is not sufficient to prevent stale data or instruction translations from surviving migration. Fix this by introducing a migration-specific helper that combines: - MM context invalidation (ASN rollover), - immediate per-CPU TLB invalidation (TBI), - synchronous cross-CPU shootdown when required. The helper is used only by migration/compaction paths to avoid changing global TLB semantics. Additionally, update flush_tlb_other(), pte_clear(), to use READ_ONCE()/WRITE_ONCE() for correct SMP memory ordering. This fixes observed crashes on both UP and SMP Alpha systems.
Product status
a48d07afdf18212de22b959715b16793c5a6e57a (git) before d4ca6ca2c6f5a1d19d9014c5b36d96637846b5d6
a48d07afdf18212de22b959715b16793c5a6e57a (git) before 03e42b5f7ad4c2c3db8bd384bab7990d5d53c90f
a48d07afdf18212de22b959715b16793c5a6e57a (git) before bab8d762a8dbb816b10011e13b87d1bca91e5f77
a48d07afdf18212de22b959715b16793c5a6e57a (git) before dd5712f3379cfe760267cdd28ff957d9ab4e51c7
2.6.16
Any version before 2.6.16
6.12.75 (semver)
6.18.16 (semver)
6.19.6 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/d4ca6ca2c6f5a1d19d9014c5b36d96637846b5d6
git.kernel.org/...c/03e42b5f7ad4c2c3db8bd384bab7990d5d53c90f
git.kernel.org/...c/bab8d762a8dbb816b10011e13b87d1bca91e5f77
git.kernel.org/...c/dd5712f3379cfe760267cdd28ff957d9ab4e51c7