NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/40651: kmem_alloc() returns misaligned pointers

The following reply was made to PR kern/40651; it has been noted by GNATS.

From: enami tsugutomo <>
Subject: Re: kern/40651: kmem_alloc() returns misaligned pointers
Date: 19 Feb 2009 12:07:15 +0900

 Martin Husemann <> writes:
 >  On Tue, Feb 17, 2009 at 10:56:58PM +0000, Andrew Doran wrote:
 >  > It should be:
 >  > 
 >  >   size += REDZONE_SIZE;
 >  >   kmem_poison_fill(p, size);
 >  Unfortunately that does not fix it - still the same:
 The added region already passed the poison check just above so it
 shouldn't fix it.
 >  panic: kmem_poison_check: 0xf41cb600: 0x00 != 0x73
 I'd like to see the contents of around this address.  Also, if someone
 really writing beyond the allocated region, the Andrew's patch to
 detect memory abuse posted on tech-kern few weeks ago might help.

Home | Main Index | Thread Index | Old Index