[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180905220048.GC13782@nautica>
Date: Thu, 6 Sep 2018 00:00:48 +0200
From: Dominique Martinet <asmadeus@...ewreck.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Omar Sandoval <osandov@...ndov.com>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
Alexey Dobriyan <adobriyan@...il.com>,
Eric Biederman <ebiederm@...ssion.com>,
James Morse <james.morse@....com>,
Bhupesh Sharma <bhsharma@...hat.com>, kernel-team@...com
Subject: Re: [PATCH v3] proc/kcore: fix invalid memory access in multi-page
read optimization
Andrew Morton wrote on Wed, Sep 05, 2018:
> lgtm. Let's add a nice little why-were-doing-this?
Sure, thank you.
> --- a/fs/proc/kcore.c~proc-kcore-fix-invalid-memory-access-in-multi-page-read-optimization-v3-fix
> +++ a/fs/proc/kcore.c
> @@ -464,7 +464,7 @@ read_kcore(struct file *file, char __use
> ret = -EFAULT;
> goto out;
> }
> - m = NULL;
> + m = NULL; /* skip the list anchor */
> } else if (m->type == KCORE_VMALLOC) {
> vread(buf, (char *)start, tsz);
> /* we have to zero-fill user buffer even if no read */
--
Dominique
Powered by blists - more mailing lists