lkml.org 
[lkml]   [2015]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] procfs: Add /proc/<pid>/mapped_files
On Thu, 15 Jan 2015 00:51:50 +0100 Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote:

> > There are still several flags unused in vma.vm_flags btw.
> >
> > I'm not sure that we can repurpose vm_pgoff (or vm_private_data) for
> > this: a badly behaved thread could make its sp point at a random vma
> > then trick the kernel into scribbling on that vma's vm_proff?
>
> Well, we could still check vm_file for being NULL before writing to
> vm_pgoff/vm_stack_tid.

Yes, I guess that would work. We'd need to check that nobody else
is already playing similar games with vm_pgoff.


\
 
 \ /
  Last update: 2015-01-16 02:21    [W:2.005 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site