| Summary | In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: use correct flags for device private PMD entry Commit 65edfda6f3f2 ("mm/rmap: extend rmap and migration support Therefore this function continues to incorrectly use pmd_write(), Whilst all are incorrect, the most problematic of these is pmd_write(), as On x86-64 _PAGE_SWP_SOFT_DIRTY is aliased to _PAGE_RW. So calling This was observed when running the hmm.hmm_device_private.anon_write_child 1. The test faults in a range then migrates it such that a device-private 2. The parent then migrates it to a device-private writable PMD entry whose 3. The parent forks and the PMD entries are set to device-private read only 4. [BUG] The child writes to the range then migrates to RAM - intending to 5. In remove_migration_pmd(), if !softleaf_is_migration_read(entry) we 6. [SPLAT] Child sets migrated folio entire_mapcount=1, parent sets VM_WARN_ON_FOLIO(folio_test_large(folio) && This patch fixes the issue by correctly referencing the softleaf entry It also only updates A/D flags if the entry is present as these are This patch also flips the if (!present) { ... } else { ... } logic in I was able to bisect this to commit 775465fd26a3 ("lib/test_hmm: add zone However commit 65edfda6f3f2 ("mm/rmap: extend rmap and migration support |
|---|---|
| Publication Date | June 25, 2026, 6:16 p.m. |
| Registration Date | June 27, 2026, 4:25 a.m. |
| Last Update | June 25, 2026, 6:16 p.m. |