From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753988AbZIITWk (ORCPT ); Wed, 9 Sep 2009 15:22:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753134AbZIITWk (ORCPT ); Wed, 9 Sep 2009 15:22:40 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:36734 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752505AbZIITWj (ORCPT ); Wed, 9 Sep 2009 15:22:39 -0400 Subject: Re: [patch 3/4 -mm] flex_array: poison free elements From: Dave Hansen To: David Rientjes Cc: Andrew Morton , linux-kernel@vger.kernel.org In-Reply-To: References: <1251129384.22398.7166.camel@nimitz> <1251150156.22398.8289.camel@nimitz> <1252510129.14385.37045.camel@nimitz> Content-Type: text/plain Date: Wed, 09 Sep 2009 12:22:37 -0700 Message-Id: <1252524157.14385.37942.camel@nimitz> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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