Date
Dec. 9, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.257485] ================================================================== [ 25.258740] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x33c/0x428 [ 25.259734] Read of size 1 at addr fff00000c648b0c8 by task kunit_try_catch/195 [ 25.260972] [ 25.261453] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.262600] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.263335] Hardware name: linux,dummy-virt (DT) [ 25.263910] Call trace: [ 25.264258] show_stack+0x20/0x38 (C) [ 25.264887] dump_stack_lvl+0x8c/0xd0 [ 25.265446] print_report+0x118/0x5e0 [ 25.266047] kasan_report+0xc8/0x118 [ 25.266550] __asan_report_load1_noabort+0x20/0x30 [ 25.267478] kmem_cache_oob+0x33c/0x428 [ 25.268058] kunit_try_run_case+0x14c/0x3d0 [ 25.268756] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.269420] kthread+0x24c/0x2d0 [ 25.269958] ret_from_fork+0x10/0x20 [ 25.270572] [ 25.270903] Allocated by task 195: [ 25.271451] kasan_save_stack+0x3c/0x68 [ 25.272276] kasan_save_track+0x20/0x40 [ 25.272868] kasan_save_alloc_info+0x40/0x58 [ 25.273527] __kasan_slab_alloc+0xa8/0xb0 [ 25.274076] kmem_cache_alloc_noprof+0x108/0x398 [ 25.275484] kmem_cache_oob+0x12c/0x428 [ 25.276090] kunit_try_run_case+0x14c/0x3d0 [ 25.276578] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.277247] kthread+0x24c/0x2d0 [ 25.277756] ret_from_fork+0x10/0x20 [ 25.278278] [ 25.278576] The buggy address belongs to the object at fff00000c648b000 [ 25.278576] which belongs to the cache test_cache of size 200 [ 25.280225] The buggy address is located 0 bytes to the right of [ 25.280225] allocated 200-byte region [fff00000c648b000, fff00000c648b0c8) [ 25.281480] [ 25.281806] The buggy address belongs to the physical page: [ 25.282405] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10648b [ 25.283575] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.284402] page_type: f5(slab) [ 25.284867] raw: 0bfffe0000000000 fff00000c5798140 dead000000000122 0000000000000000 [ 25.285673] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.286505] page dumped because: kasan: bad access detected [ 25.287166] [ 25.287509] Memory state around the buggy address: [ 25.288281] fff00000c648af80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.288992] fff00000c648b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.289867] >fff00000c648b080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.290638] ^ [ 25.291357] fff00000c648b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.292393] fff00000c648b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.293186] ==================================================================
[ 25.374828] ================================================================== [ 25.376015] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x404/0x530 [ 25.376690] Read of size 1 at addr ffff88810295f0c8 by task kunit_try_catch/214 [ 25.377896] [ 25.379022] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.380523] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.381273] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.382476] Call Trace: [ 25.382758] <TASK> [ 25.383374] dump_stack_lvl+0x73/0xb0 [ 25.384128] print_report+0xd1/0x640 [ 25.384619] ? __virt_addr_valid+0x1db/0x2d0 [ 25.385388] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.387738] kasan_report+0x102/0x140 [ 25.388469] ? kmem_cache_oob+0x404/0x530 [ 25.388856] ? kmem_cache_oob+0x404/0x530 [ 25.390019] __asan_report_load1_noabort+0x18/0x20 [ 25.391040] kmem_cache_oob+0x404/0x530 [ 25.391429] ? trace_hardirqs_on+0x37/0xe0 [ 25.392160] ? __pfx_kmem_cache_oob+0x10/0x10 [ 25.392691] ? finish_task_switch.isra.0+0x153/0x700 [ 25.393236] ? __switch_to+0x5d9/0xf60 [ 25.393645] ? __pfx_read_tsc+0x10/0x10 [ 25.394687] ? ktime_get_ts64+0x86/0x230 [ 25.395114] kunit_try_run_case+0x1b3/0x490 [ 25.395569] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.396558] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.397188] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.397715] ? __kthread_parkme+0x82/0x160 [ 25.398765] ? preempt_count_sub+0x50/0x80 [ 25.399588] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.400370] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.401602] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.402814] kthread+0x257/0x310 [ 25.403380] ? __pfx_kthread+0x10/0x10 [ 25.403745] ret_from_fork+0x41/0x80 [ 25.404571] ? __pfx_kthread+0x10/0x10 [ 25.404846] ret_from_fork_asm+0x1a/0x30 [ 25.405450] </TASK> [ 25.405724] [ 25.405949] Allocated by task 214: [ 25.406336] kasan_save_stack+0x3d/0x60 [ 25.406790] kasan_save_track+0x18/0x40 [ 25.407260] kasan_save_alloc_info+0x3b/0x50 [ 25.407582] __kasan_slab_alloc+0x91/0xa0 [ 25.407869] kmem_cache_alloc_noprof+0x11e/0x3e0 [ 25.408455] kmem_cache_oob+0x158/0x530 [ 25.409066] kunit_try_run_case+0x1b3/0x490 [ 25.409731] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.410540] kthread+0x257/0x310 [ 25.411516] ret_from_fork+0x41/0x80 [ 25.412135] ret_from_fork_asm+0x1a/0x30 [ 25.412571] [ 25.412768] The buggy address belongs to the object at ffff88810295f000 [ 25.412768] which belongs to the cache test_cache of size 200 [ 25.413641] The buggy address is located 0 bytes to the right of [ 25.413641] allocated 200-byte region [ffff88810295f000, ffff88810295f0c8) [ 25.415469] [ 25.416196] The buggy address belongs to the physical page: [ 25.416680] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10295f [ 25.417853] flags: 0x200000000000000(node=0|zone=2) [ 25.418375] page_type: f5(slab) [ 25.418737] raw: 0200000000000000 ffff888101a8e500 dead000000000122 0000000000000000 [ 25.420370] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.421458] page dumped because: kasan: bad access detected [ 25.422351] [ 25.422955] Memory state around the buggy address: [ 25.423405] ffff88810295ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.424244] ffff88810295f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.425098] >ffff88810295f080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.426010] ^ [ 25.426461] ffff88810295f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.427638] ffff88810295f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.428370] ==================================================================