Re: [PATCH] procfs: fix mmap() for /proc/vmcore
From: Linus Torvalds
Date: Fri May 18 2018 - 23:20:35 EST
On Fri, May 18, 2018 at 9:12 PM Linus Torvalds <
torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> (So we'd still have a "sb_maxbytes" that filesystems would fill in, but it
> would only be used as a "fill in inode value for regular files for this
> superblock").
Actually, maybe we could just make rw_verify_area() use the new
file_mmap_size_max() function.
We'd just remove the "mmap" part of the name, and have all IO (and all
mmap) use that limit.
That doesn't sound like a horrible idea to try for 4.18. Hmm?
Linus