]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - mm/madvise.c
Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/kernel...
[thirdparty/linux.git] / mm / madvise.c
index c2202f51e9ddf6aa41b881f58a676e61b25613ab..340125d08c03d9638cc5a47a19f6179039ef2b6c 100644 (file)
@@ -326,7 +326,7 @@ static inline bool can_do_file_pageout(struct vm_area_struct *vma)
         * otherwise we'd be including shared non-exclusive mappings, which
         * opens a side channel.
         */
-       return inode_owner_or_capable(&init_user_ns,
+       return inode_owner_or_capable(&nop_mnt_idmap,
                                      file_inode(vma->vm_file)) ||
               file_permission(vma->vm_file, MAY_WRITE) == 0;
 }