diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-04-21 08:13:57 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-04-22 18:33:15 +0900 |
| commit | 6e0152c75d70725add4cef3b1cb10abc6efa6ad9 (patch) | |
| tree | bf308b992425318ce068c22bdff131cef63f6005 /include/linux/timerqueue.h | |
| parent | 660b982305cebd242df52fe87adf6b203a12f9be (diff) | |
ntfs: fix mmap_prepare writable check for shared mappings
Linus pointed out that checking only VMA_WRITE_BIT is incorrect.
Private writable mappings (MAP_PRIVATE) set VM_WRITE but do not
write back to the filesystem. Also, mappings that can become
writable via mprotect() (VM_MAYWRITE) must be handled.
Use vma_desc_test_all(VMA_SHARED_BIT, VMA_MAYWRITE_BIT) instead,
which matches what other filesystems do.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
