从这个网页截图中可以获取到以下关于漏洞的关键信息: 提交信息: - 作者:Zi Yan () - 提交者:Andrew Morton () - 提交时间:2025-03-05 15:04:03 -0500 - 提交ID:60cf233b58cdf1f3c5e52d1225606b86acd08b0 漏洞描述: - 问题:在迁移过程中,共享内存(shmem)的xarray更新存在问题。具体来说,当一个页框(folio)在交换缓存(swap cache)中时, 应该是NULL,并且该页框不再处于共享内存映射中。 - 原因:在 函数中,使用了 来确定要更新的xarray条目数量,但这混淆了页缓存和交换缓存中的共享内存情况,导致xarray多索引条目损坏。 - 修复:通过仅使用 来确定xarray是否存储交换缓存条目,从而选择正确的xarray条目数量进行更新。 相关链接: - 用户空间复现示例:https://lore.kernel.org/linux-mm/Z8idPCkaJWlIChjT@casper.infradead.org/ - 相关提交:https://lkml.kernel.org/r/20250305200403.2822855-1-ziy@nvidia.com 签名和审核信息: - 签名者:Zi Yan, Andrew Morton - 报告者:Liu Shixin - 关闭的链接:https://lore.kernel.org/all/28546fb4-5210-bf75-16d6-43e1f8646080@huawei.com - 建议者:Hugh Dickins - 审核者:Matthew Wilcox, Baolin Wang