Re: [patch 3/4 -mm] flex_array: poison free elements
From: Dave Hansen
Date: Wed Sep 09 2009 - 15:22:47 EST
On Wed, 2009-09-09 at 12:18 -0700, David Rientjes wrote:
> On Wed, 9 Sep 2009, Dave Hansen wrote:
> > I don't know of any offhand. Someone mentioned oprofile buffers at some
> > point, but I looked through it and it didn't pop out at me.
>
> Their length and element size fit the prerequisites of using flex array,
> but they cannot be copied to userspace as a string the way we can with
> vmalloc'd memory.
It shouldn't be too hard to do that, though. Although a bit silly to
have make a copy_to_user() call for each ->parts[] page, it would be
pretty easy to implement.
-- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/