lkml.org 
[lkml]   [2012]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/17] perf, x86: Add copy_from_user_nmi_nochk for best effort copy
On Thu, Aug 02, 2012 at 11:47:30AM -0700, Andy Lutomirski wrote:
> On 07/22/2012 05:14 AM, Jiri Olsa wrote:
> > Adding copy_from_user_nmi_nochk that provides the best effort
> > copy regardless the requesting size crossing the task boundary.
> >
> > This is going to be useful for stack dump we need in post
> > DWARF CFI based unwind, where we have predefined size of
> > the user stack to dump, and we need to store the most of
> > the requested dump size, regardless this size is crossing
> > the task boundary.
>
> Huh? This is a TASK_SIZE check, which makes sure that the request
> doesn't cross into kernel land. Otherwise userspace could presumably
> read kernel memory by setting bogus values of sp.

haven't realized that.. new version won't have this

thanks,
jirka


\
 
 \ /
  Last update: 2012-08-03 13:41    [W:0.158 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site