mmap for /proc/vmcore broken since 3.12-rc1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 7, 2013 at 5:42 AM, HATAYAMA Daisuke
<d.hatayama at jp.fujitsu.com> wrote:

> +static unsigned long
> +get_unmapped_area_vmcore(struct file *filp, unsigned long addr,
> +                        unsigned long len, unsigned long pgoff,
> +                        unsigned long flags)
> +{
> +#ifdef CONFIG_MMU
> +       return current->mm->get_unmapped_area(filp, addr, len, pgoff,
> flags);
> +#else
> +       return -EIO;
> +#endif
> +}
> +
>  static const struct file_operations proc_vmcore_operations = {
>         .read           = read_vmcore,
>         .llseek         = default_llseek,
>         .mmap           = mmap_vmcore,
> +       .get_unmapped_area = get_unmapped_area_vmcore,

I think current->mm->get_unmapped_area should be used by core proc code.
ENOMEM bug looks unrelated though.



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux