lkml.org 
[lkml]   [2009]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] crash with /proc/iomem on sparc64
From
From: Mikulas Patocka <mpatocka@redhat.com>
Date: Tue, 17 Mar 2009 08:08:08 -0400 (EDT)

>
>
> On Tue, 17 Mar 2009, Mikulas Patocka wrote:
>
> > Hi
> >
> > When you compile kernel on Sparc64 with heap memory checking and type
> > "cat /proc/iomem", you get a crash, because pointers in struct resource
> > are uninitialized.
> >
> > Most code fills struct resource with zeros, so I assume that it is
> > responsibility of the caller of request_resource to initialized it, not
> > the responsibility of request_resource functuion.
> >
> > After 2.6.29 is out, there could be a check for uninitialized fields added
> > to request_resource to avoid crashes like this.
> >
> > Mikulas
>
> I forgot to add:
>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

Patch applied and queued up for -stable, thanks a lot.


\
 
 \ /
  Last update: 2009-03-19 07:57    [W:0.066 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site