From: David Rientjes <rientjes@google.com>
To: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
Nick Piggin <npiggin@suse.de>
Subject: Re: [S+Q3 20/23] slub: Shared cache to exploit cross cpu caching abilities.
Date: Tue, 17 Aug 2010 11:42:25 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1008171137030.6486@chino.kir.corp.google.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1008171234130.12188@router.home>
On Tue, 17 Aug 2010, Christoph Lameter wrote:
> > This explodes on the memset() in slab_alloc() because of __GFP_ZERO on my
> > system:
>
> Well that seems to be because __kmalloc_node returned invalid address. Run
> with full debugging please?
>
Lots of data, so I trimmed it down to something reasonable by eliminating
reports that were very similar. (It also looks like some metadata is
getting displayed incorrectly such as negative pid's and 10-digit cpu
numbers.)
[ 14.152177] =============================================================================
[ 14.153172] BUG kmalloc-16: Object padding overwritten
[ 14.153172] -----------------------------------------------------------------------------
[ 14.153172]
[ 14.153172] INFO: 0xffff88107e595ea8-0xffff88107e595eab. First byte 0x0 instead of 0x5a
[ 14.153172] INFO: Freed in 0x7e00000000 age=18446743536838353798 cpu=0 pid=0
[ 14.153172] INFO: Slab 0xffffea0039ba3898 objects=51 new=4 fp=0x0007800000000000 flags=0xe00000000000080
[ 14.153172] INFO: Object 0xffff88107e595e60 @offset=3680
[ 14.153172]
[ 14.153172] Bytes b4 0xffff88107e595e50: 00 00 00 00 7e 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ....~...ZZZZZZZZ
[ 14.153172] Object 0xffff88107e595e60: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b a5 kkkkkkkkkkkkkkk
[ 14.153172] Redzone 0xffff88107e595e70: bb bb bb bb bb bb bb bb
[ 14.153172] Padding 0xffff88107e595ea8: 00 00 00 00 5a 5a 5a 5a ....ZZZZ
[ 14.153172] Pid: 1, comm: swapper Not tainted 2.6.35-slubq #1
[ 14.153172] Call Trace:
[ 14.153172] [<ffffffff81104333>] print_trailer+0x134/0x13f
[ 14.153172] [<ffffffff811043f5>] check_bytes_and_report+0xb7/0xe8
[ 14.153172] [<ffffffff8110455e>] check_object+0x138/0x150
[ 14.153172] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 14.153172] [<ffffffff811049bf>] alloc_debug_processing+0xd5/0x160
[ 14.153172] [<ffffffff811054d7>] slab_alloc+0x52e/0x590
[ 14.153172] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 14.153172] [<ffffffff811061fc>] __kmalloc_node+0x78/0xa3
[ 14.153172] [<ffffffff81106f18>] alloc_shared_caches+0x10f/0x277
[ 14.153172] [<ffffffff81b09661>] slab_sysfs_init+0x96/0x10a
[ 14.153172] [<ffffffff81b095cb>] ? slab_sysfs_init+0x0/0x10a
[ 14.153172] [<ffffffff810001f9>] do_one_initcall+0x5e/0x14e
[ 14.153172] [<ffffffff81aec6bb>] kernel_init+0x178/0x202
[ 14.153172] [<ffffffff81030954>] kernel_thread_helper+0x4/0x10
[ 14.153172] [<ffffffff81aec543>] ? kernel_init+0x0/0x202
[ 14.153172] [<ffffffff81030950>] ? kernel_thread_helper+0x0/0x10
[ 14.153172] FIX kmalloc-16: Restoring 0xffff88107e595ea8-0xffff88107e595eab=0x5a
...
[ 15.751474] =============================================================================
[ 15.752467] BUG kmalloc-16: Redzone overwritten
[ 15.752467] -----------------------------------------------------------------------------
[ 15.752467]
[ 15.752467] INFO: 0xffff880c7e5f3ec0-0xffff880c7e5f3ec7. First byte 0x30 instead of 0xbb
[ 15.752467] INFO: Allocated in 0xffff88087e4f11e0 age=131909211166235 cpu=2119111312 pid=-30712
[ 15.752467] INFO: Freed in 0xffff88087e4f13f0 age=131909211165707 cpu=2119111840 pid=-30712
[ 15.752467] INFO: Slab 0xffffea002bba4d28 objects=51 new=3 fp=0x0007000000000000 flags=0xa00000000000080
[ 15.752467] INFO: Object 0xffff880c7e5f3eb0 @offset=3760
[ 15.752467]
[ 15.752467] Bytes b4 0xffff880c7e5f3ea0: 18 00 00 00 7e 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ....~...ZZZZZZZZ
[ 15.752467] Object 0xffff880c7e5f3eb0: d0 0f 4f 7e 08 88 ff ff 80 10 4f 7e 08 88 ff ff .O~....O~..
[ 15.752467] Redzone 0xffff880c7e5f3ec0: 30 11 4f 7e 08 88 ff ff 0.O~..
[ 15.752467] Padding 0xffff880c7e5f3ef8: 00 16 4f 7e 08 88 ff ff ..O~..
[ 15.752467] Pid: 1, comm: swapper Not tainted 2.6.35-slubq #1
[ 15.752467] Call Trace:
[ 15.752467] [<ffffffff81104333>] print_trailer+0x134/0x13f
[ 15.752467] [<ffffffff811043f5>] check_bytes_and_report+0xb7/0xe8
[ 15.752467] [<ffffffff81104481>] check_object+0x5b/0x150
[ 15.752467] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff811049bf>] alloc_debug_processing+0xd5/0x160
[ 15.752467] [<ffffffff811054d7>] slab_alloc+0x52e/0x590
[ 15.752467] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff811061fc>] __kmalloc_node+0x78/0xa3
[ 15.752467] [<ffffffff81106f18>] alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff81b09661>] slab_sysfs_init+0x96/0x10a
[ 15.752467] [<ffffffff81b095cb>] ? slab_sysfs_init+0x0/0x10a
[ 15.752467] [<ffffffff810001f9>] do_one_initcall+0x5e/0x14e
[ 15.752467] [<ffffffff81aec6bb>] kernel_init+0x178/0x202
[ 15.752467] [<ffffffff81030954>] kernel_thread_helper+0x4/0x10
[ 15.752467] [<ffffffff81aec543>] ? kernel_init+0x0/0x202
[ 15.752467] [<ffffffff81030950>] ? kernel_thread_helper+0x0/0x10
[ 15.752467] FIX kmalloc-16: Restoring 0xffff880c7e5f3ec0-0xffff880c7e5f3ec7=0xbb
...
[ 15.752467] =============================================================================
[ 15.752467] BUG kmalloc-16: Pointer check fails
[ 15.752467] -----------------------------------------------------------------------------
[ 15.752467]
[ 15.752467] INFO: Allocated in 0xffff880c7e5f4080 age=131874850999735 cpu=2119539736 pid=-30704
[ 15.752467] INFO: Freed in 0xc00000000 age=18446743536838355610 cpu=4 pid=1
[ 15.752467] INFO: Slab 0xffffea002bba4d28 objects=51 new=0 fp=0x(null) flags=0xa00000000000080
[ 15.752467] INFO: Object 0xffff880c7e5f3ff0 @offset=4080
[ 15.752467]
[ 15.752467] Bytes b4 0xffff880c7e5f3fe0: 00 00 00 00 7e 00 00 00 00 00 00 00 5a 5a 5a 5a ....~.......ZZZZ
[ 15.752467] Object 0xffff880c7e5f3ff0: 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZZZZZZZZZ
[ 15.752467] Redzone 0xffff880c7e5f4000: 80 35 37 7e 04 88 ff ff .57~..
[ 15.752467] Padding 0xffff880c7e5f4038: 00 00 00 00 00 00 00 00 ........
[ 15.752467] Pid: 1, comm: swapper Not tainted 2.6.35-slubq #1
[ 15.752467] Call Trace:
[ 15.752467] [<ffffffff81104333>] print_trailer+0x134/0x13f
[ 15.752467] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff81104858>] object_err+0x3a/0x43
[ 15.752467] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff811049ad>] alloc_debug_processing+0xc3/0x160
[ 15.752467] [<ffffffff811054d7>] slab_alloc+0x52e/0x590
[ 15.752467] [<ffffffff81106f18>] ? alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff811061fc>] __kmalloc_node+0x78/0xa3
[ 15.752467] [<ffffffff81106f18>] alloc_shared_caches+0x10f/0x277
[ 15.752467] [<ffffffff81b09661>] slab_sysfs_init+0x96/0x10a
[ 15.752467] [<ffffffff81b095cb>] ? slab_sysfs_init+0x0/0x10a
[ 15.752467] [<ffffffff810001f9>] do_one_initcall+0x5e/0x14e
[ 15.752467] [<ffffffff81aec6bb>] kernel_init+0x178/0x202
[ 15.752467] [<ffffffff81030954>] kernel_thread_helper+0x4/0x10
[ 15.752467] [<ffffffff81aec543>] ? kernel_init+0x0/0x202
[ 15.752467] [<ffffffff81030950>] ? kernel_thread_helper+0x0/0x10
[ 15.752467] FIX kmalloc-16: Marking all objects used
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-08-17 18:42 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 2:45 [S+Q3 00/23] SLUB: The Unified slab allocator (V3) Christoph Lameter
2010-08-04 2:45 ` [S+Q3 01/23] percpu: make @dyn_size always mean min dyn_size in first chunk init functions Christoph Lameter
2010-08-04 2:45 ` [S+Q3 02/23] percpu: allow limited allocation before slab is online Christoph Lameter
2010-08-04 2:45 ` [S+Q3 03/23] slub: Use a constant for a unspecified node Christoph Lameter
2010-08-04 3:34 ` David Rientjes
2010-08-04 16:15 ` Christoph Lameter
2010-08-05 7:40 ` David Rientjes
2010-08-04 2:45 ` [S+Q3 04/23] SLUB: Constants need UL Christoph Lameter
2010-08-04 2:45 ` [S+Q3 05/23] Subjec Slub: Force no inlining of debug functions Christoph Lameter
2010-08-04 2:45 ` [S+Q3 06/23] slub: Check kasprintf results in kmem_cache_init() Christoph Lameter
2010-08-04 2:45 ` [S+Q3 07/23] slub: Use kmem_cache flags to detect if slab is in debugging mode Christoph Lameter
2010-08-04 2:45 ` [S+Q3 08/23] slub: remove dynamic dma slab allocation Christoph Lameter
2010-08-04 2:45 ` [S+Q3 09/23] slub: Remove static kmem_cache_cpu array for boot Christoph Lameter
2010-08-04 2:45 ` [S+Q3 10/23] slub: Allow removal of slab caches during boot V2 Christoph Lameter
2010-08-04 2:45 ` [S+Q3 11/23] slub: Dynamically size kmalloc cache allocations Christoph Lameter
2010-08-04 2:45 ` [S+Q3 12/23] slub: Extract hooks for memory checkers from hotpaths Christoph Lameter
2010-08-04 2:45 ` [S+Q3 13/23] slub: Move gfpflag masking out of the hotpath Christoph Lameter
2010-08-04 2:45 ` [S+Q3 14/23] slub: Add SLAB style per cpu queueing Christoph Lameter
2010-08-04 2:45 ` [S+Q3 15/23] slub: Allow resizing of per cpu queues Christoph Lameter
2010-08-04 2:45 ` [S+Q3 16/23] slub: Get rid of useless function count_free() Christoph Lameter
2010-08-04 2:45 ` [S+Q3 17/23] slub: Remove MAX_OBJS limitation Christoph Lameter
2010-08-04 2:45 ` [S+Q3 18/23] slub: Drop allocator announcement Christoph Lameter
2010-08-04 2:45 ` [S+Q3 19/23] slub: Object based NUMA policies Christoph Lameter
2010-08-04 2:45 ` [S+Q3 20/23] slub: Shared cache to exploit cross cpu caching abilities Christoph Lameter
2010-08-17 5:52 ` David Rientjes
2010-08-17 17:51 ` Christoph Lameter
2010-08-17 18:42 ` David Rientjes [this message]
2010-08-17 18:50 ` Christoph Lameter
2010-08-17 19:02 ` David Rientjes
2010-08-17 19:32 ` Christoph Lameter
2010-08-18 19:32 ` Christoph Lameter
2010-08-04 2:45 ` [S+Q3 21/23] slub: Support Alien Caches Christoph Lameter
2010-08-04 2:45 ` [S+Q3 22/23] slub: Cached object expiration Christoph Lameter
2010-08-04 2:45 ` [S+Q3 23/23] vmscan: Tie slub object expiration into page reclaim Christoph Lameter
2010-08-04 4:39 ` [S+Q3 00/23] SLUB: The Unified slab allocator (V3) David Rientjes
2010-08-04 16:17 ` Christoph Lameter
2010-08-05 8:38 ` David Rientjes
2010-08-05 17:33 ` Christoph Lameter
2010-08-17 4:56 ` David Rientjes
2010-08-17 7:55 ` Tejun Heo
2010-08-17 13:56 ` Christoph Lameter
2010-08-17 17:23 ` Christoph Lameter
2010-08-17 17:29 ` Christoph Lameter
2010-08-17 18:02 ` David Rientjes
2010-08-17 18:47 ` Christoph Lameter
2010-08-17 18:54 ` David Rientjes
2010-08-17 19:34 ` Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.00.1008171137030.6486@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=npiggin@suse.de \
--cc=penberg@cs.helsinki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox