fs/proc/vmcore.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index a45f0af22a60..83278c547127 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -491,7 +491,15 @@ static int mmap_vmcore(struct file *file, struct vm_area_struct *vma) } #endif +/* Mark vmcore as being able and willing to do 64-bit mmaps */ +static int vmcore_open(struct inode *inode, struct file *file) +{ + file->f_mode |= FMODE_UNSIGNED_OFFSET; + return 0; +} + static const struct file_operations proc_vmcore_operations = { + .open = vmcore_open, .read = read_vmcore, .llseek = default_llseek, .mmap = mmap_vmcore,