v2
2026-10-14
memfd_luo 修 exec 位与泄漏 · v2
修复 memfd 执行位保留:分别记录 ugo 执行位,并在 inode 锁下冻结状态。
原始补丁链接
子 Patch(2)
1/2
mm/memfd_luo: carry the sealed exec-bit state in the preserved record
[mm/memfd_luo: carry the sealed exec-bit state in the preserved record] F_SEAL_EXEC freezes the execute bits as they are at sealing time: a memfd becomes permanently executable or permanently un-execu
2/2
mm/memfd_luo: release preserved folios when retrieve fails
[mm/memfd_luo: release preserved folios when retrieve fails] retrieve() only frees the serialization structure on its error paths, but the folios it describes are still preserved at that point: memfd_