summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorGao Xiang <xiang@kernel.org>2026-10-24 21:20:28 +0200
committerGao Xiang <xiang@kernel.org>2026-10-25 12:54:28 +0100
commit7259fb011c14977661b7a4680886b466a3089ea7 (patch)
treef21ba9cc59d1221d013cb49a8102e3421f4b0219 /tools/lib/python
parent1137aa577a35e2684e8046c3e53f920e79c7cc60 (diff)
erofs: hold real inodes for shared files
EROFS page cache sharing uses shared inodes. However, a mmaped VMA keeps the shared file even after the corresponding fd is closed, while currently the real inode is never held by any reference associated with the shared file. As a result, the real inode could be evicted and removed from the shared inode's list while the page fault can still invoke on the shared inode's address space, which causes no candidate is successfully acquired by erofs_real_inode(). Fix this by simply keeping the original inode in the shared backing file's private data. Also replace confusing "realfile"/"rf" names with "sf" (sharedfile) to unify the terms as well as nullify realinode in erofs_real_inode() to avoid returning an uninitialized pointer. Fixes: 5ef3208e3be5 ("erofs: introduce the page cache share feature") Reported-by: YoungWoo Rim <xsapiens75@gmail.com> Closes: https://lore.kernel.org/r/atzSVuvqYKgmvDmO@MacBookPro Cc: stable@vger.kernel.org # 7.0+ Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Gao Xiang (Docker) <xiang@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions