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: Andrew Doran <>
Subject: Re: kern/40651: kmem_alloc() returns misaligned pointers
Date: Tue, 17 Feb 2009 22:56:58 +0000

 On Mon, Feb 16, 2009 at 01:55:03PM +0000, Martin Husemann wrote:
 >  kmem_poison_check(0xf41cb600, 0xb8, 0x0, 0x0, 0x0, 0xa) at 
 > netbsd:kmem_alloc+0xb4                                                       
 >  kmem_alloc(0xf41cb600, 0x1, 0xf03e1344, 0x0, 0x0, 0xa) at 
 > netbsd:kmem_zalloc+0x8
 In subr_kmem.c:
     252        kmem_poison_fill(p, size);
     253        size += REDZONE_SIZE;
 It should be:
        size += REDZONE_SIZE;
        kmem_poison_fill(p, size);
 I don't forsee any problems with the change but also don't have the ability
 to test it right now.

Home | Main Index | Thread Index | Old Index