* [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment.
@ 2008-04-25 10:57 Bryan Wu
2008-04-25 16:10 ` Matt Mackall
0 siblings, 1 reply; 4+ messages in thread
From: Bryan Wu @ 2008-04-25 10:57 UTC (permalink / raw)
To: mpm, lethal, linux-kernel; +Cc: Yi Li, Bryan Wu
From: Yi Li <yi.li@analog.com>
This may trigger misaligned memory access exception.
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
---
mm/slob.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mm/slob.c b/mm/slob.c
index e2c3c0e..6038cba 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -533,7 +533,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
{
struct kmem_cache *c;
- c = slob_alloc(sizeof(struct kmem_cache), flags, 0, -1);
+ c = slob_alloc(sizeof(struct kmem_cache),
+ flags, ARCH_KMALLOC_MINALIGN, -1);
if (c) {
c->name = name;
--
1.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment.
2008-04-25 10:57 [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment Bryan Wu
@ 2008-04-25 16:10 ` Matt Mackall
2008-04-25 16:41 ` Pekka Enberg
2008-04-25 19:31 ` Christoph Lameter
0 siblings, 2 replies; 4+ messages in thread
From: Matt Mackall @ 2008-04-25 16:10 UTC (permalink / raw)
To: Bryan Wu; +Cc: lethal, linux-kernel, Yi Li, Christoph Lameter, Andrew Morton
On Fri, 2008-04-25 at 18:57 +0800, Bryan Wu wrote:
> From: Yi Li <yi.li@analog.com>
>
> This may trigger misaligned memory access exception.
>
> Signed-off-by: Yi Li <yi.li@analog.com>
> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Looks good, thanks. Christoph, do you want to take this or should it go
through Andrew?
Acked-by: Matt Mackall <mpm@selenic.com>
> ---
> mm/slob.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/mm/slob.c b/mm/slob.c
> index e2c3c0e..6038cba 100644
> --- a/mm/slob.c
> +++ b/mm/slob.c
> @@ -533,7 +533,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
> {
> struct kmem_cache *c;
>
> - c = slob_alloc(sizeof(struct kmem_cache), flags, 0, -1);
> + c = slob_alloc(sizeof(struct kmem_cache),
> + flags, ARCH_KMALLOC_MINALIGN, -1);
>
> if (c) {
> c->name = name;
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment.
2008-04-25 16:10 ` Matt Mackall
@ 2008-04-25 16:41 ` Pekka Enberg
2008-04-25 19:31 ` Christoph Lameter
1 sibling, 0 replies; 4+ messages in thread
From: Pekka Enberg @ 2008-04-25 16:41 UTC (permalink / raw)
To: Matt Mackall
Cc: Bryan Wu, lethal, linux-kernel, Yi Li, Christoph Lameter,
Andrew Morton
On Fri, Apr 25, 2008 at 7:10 PM, Matt Mackall <mpm@selenic.com> wrote:
> Looks good, thanks. Christoph, do you want to take this or should it go
> through Andrew?
>
> Acked-by: Matt Mackall <mpm@selenic.com>
I'll pick it up in my tree which is "the" SLAB tree for now:
http://git.kernel.org/?p=linux/kernel/git/penberg/slab-2.6.git;a=summary
Thanks.
Pekka
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment.
2008-04-25 16:10 ` Matt Mackall
2008-04-25 16:41 ` Pekka Enberg
@ 2008-04-25 19:31 ` Christoph Lameter
1 sibling, 0 replies; 4+ messages in thread
From: Christoph Lameter @ 2008-04-25 19:31 UTC (permalink / raw)
To: Matt Mackall
Cc: Bryan Wu, lethal, linux-kernel, Yi Li, Christoph Lameter,
Andrew Morton
On Fri, 25 Apr 2008, Matt Mackall wrote:
> Looks good, thanks. Christoph, do you want to take this or should it go
> through Andrew?
Pekka is handling the slab trees and it seems that he picked it up.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-25 19:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 10:57 [PATCH 1/1] [mm/slob] fix bug - when slob allocates "struct kmem_cache", it does not force alignment Bryan Wu
2008-04-25 16:10 ` Matt Mackall
2008-04-25 16:41 ` Pekka Enberg
2008-04-25 19:31 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox