Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-03 Thread Tetsuo Handa
Hello. Vegard Nossum wrote: > That didn't work. I guess that's what you get for no testing ;-) After > some more investigations, it seems that this is the correct way to fix > it (and tested!): It worked in my environment too. Please apply to 2.6.24-rc3-git6's tree. Thank you. -- To unsubscribe

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-03 Thread Tetsuo Handa
Hello. Vegard Nossum wrote: That didn't work. I guess that's what you get for no testing ;-) After some more investigations, it seems that this is the correct way to fix it (and tested!): It worked in my environment too. Please apply to 2.6.24-rc3-git6's tree. Thank you. -- To unsubscribe

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Pekka Enberg
Hi Vegard, On 12/2/07, Vegard Nossum <[EMAIL PROTECTED]> wrote: > diff --git a/mm/slub.c b/mm/slub.c > index 9acb413..b9f37cb 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -2558,8 +2558,12 @@ size_t ksize(const void *object) > if (unlikely(object == ZERO_SIZE_PTR)) >

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Vegard Nossum
On Dec 2, 2007 5:30 PM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > On Dec 2, 2007 11:39 AM, Tetsuo Handa > <[EMAIL PROTECTED]> wrote: > > Hello. > > > > I can't pass memory allocated by kmalloc() to ksize() > > if it is allocated by SLUB allocator and > > size is larger than (I guess) PAGE_SIZE /

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Vegard Nossum
On Dec 2, 2007 11:39 AM, Tetsuo Handa <[EMAIL PROTECTED]> wrote: > Hello. > > I can't pass memory allocated by kmalloc() to ksize() > if it is allocated by SLUB allocator and > size is larger than (I guess) PAGE_SIZE / 2. > > Regards. Take a look at mm/slub.c around line 2560, in __kmalloc:

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Adrian Bunk
On Sun, Dec 02, 2007 at 10:56:11AM -0500, Mark Lord wrote: > Tetsuo Handa wrote: >... >> kernel BUG at mm/slub.c:2562! >... > Is "p" NULL ? Where'd your printk() output go to? Check the source, that's not the BUG_ON(!object), it's the BUG_ON(!page). cu Adrian -- "Is there not

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Adrian Bunk
On Sun, Dec 02, 2007 at 07:39:59PM +0900, Tetsuo Handa wrote: > Hello. > > I can't pass memory allocated by kmalloc() to ksize() > if it is allocated by SLUB allocator and > size is larger than (I guess) PAGE_SIZE / 2. > > Regards. > > -- Kernel config (grep CONFIG_SLUB .config)

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Mark Lord
Mark Lord wrote: Tetsuo Handa wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y #

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Mark Lord
Tetsuo Handa wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y #

[BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size > 2048.

2007-12-02 Thread Tetsuo Handa
Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y # CONFIG_SLUB_DEBUG_ON is not set

[BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Tetsuo Handa
Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y # CONFIG_SLUB_DEBUG_ON is not set

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Mark Lord
Tetsuo Handa wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y #

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Mark Lord
Mark Lord wrote: Tetsuo Handa wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) -- CONFIG_SLUB_DEBUG=y CONFIG_SLUB=y #

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Adrian Bunk
On Sun, Dec 02, 2007 at 07:39:59PM +0900, Tetsuo Handa wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. -- Kernel config (grep CONFIG_SLUB .config) --

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Adrian Bunk
On Sun, Dec 02, 2007 at 10:56:11AM -0500, Mark Lord wrote: Tetsuo Handa wrote: ... kernel BUG at mm/slub.c:2562! ... Is p NULL ? Where'd your printk() output go to? Check the source, that's not the BUG_ON(!object), it's the BUG_ON(!page). cu Adrian -- Is there not promise of

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Vegard Nossum
On Dec 2, 2007 11:39 AM, Tetsuo Handa [EMAIL PROTECTED] wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards. Take a look at mm/slub.c around line 2560, in __kmalloc: if

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Vegard Nossum
On Dec 2, 2007 5:30 PM, Vegard Nossum [EMAIL PROTECTED] wrote: On Dec 2, 2007 11:39 AM, Tetsuo Handa [EMAIL PROTECTED] wrote: Hello. I can't pass memory allocated by kmalloc() to ksize() if it is allocated by SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2. Regards.

Re: [BUG 2.6.24-rc3-git6] SLUB's ksize() fails for size 2048.

2007-12-02 Thread Pekka Enberg
Hi Vegard, On 12/2/07, Vegard Nossum [EMAIL PROTECTED] wrote: diff --git a/mm/slub.c b/mm/slub.c index 9acb413..b9f37cb 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2558,8 +2558,12 @@ size_t ksize(const void *object) if (unlikely(object == ZERO_SIZE_PTR)) return 0;