Date
Dec. 5, 2024, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.981906] ================================================================== [ 29.983128] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 29.983869] Write of size 16 at addr fff00000c61b42a0 by task kunit_try_catch/155 [ 29.984793] [ 29.985967] CPU: 0 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 29.987539] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.988190] Hardware name: linux,dummy-virt (DT) [ 29.988735] Call trace: [ 29.989246] show_stack+0x20/0x38 (C) [ 29.989818] dump_stack_lvl+0x8c/0xd0 [ 29.990611] print_report+0x118/0x5e0 [ 29.991074] kasan_report+0xc8/0x118 [ 29.992060] __asan_report_store16_noabort+0x20/0x30 [ 29.992710] kmalloc_oob_16+0x3a0/0x3f8 [ 29.993318] kunit_try_run_case+0x14c/0x3d0 [ 29.993919] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.994658] kthread+0x24c/0x2d0 [ 29.995437] ret_from_fork+0x10/0x20 [ 29.996105] [ 29.996435] Allocated by task 155: [ 29.997018] kasan_save_stack+0x3c/0x68 [ 29.997578] kasan_save_track+0x20/0x40 [ 29.998170] kasan_save_alloc_info+0x40/0x58 [ 29.998760] __kasan_kmalloc+0xd4/0xd8 [ 29.999633] __kmalloc_cache_noprof+0x15c/0x3c0 [ 30.000210] kmalloc_oob_16+0xb4/0x3f8 [ 30.000844] kunit_try_run_case+0x14c/0x3d0 [ 30.001531] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.002318] kthread+0x24c/0x2d0 [ 30.002896] ret_from_fork+0x10/0x20 [ 30.003851] [ 30.004130] The buggy address belongs to the object at fff00000c61b42a0 [ 30.004130] which belongs to the cache kmalloc-16 of size 16 [ 30.005392] The buggy address is located 0 bytes inside of [ 30.005392] allocated 13-byte region [fff00000c61b42a0, fff00000c61b42ad) [ 30.006784] [ 30.007162] The buggy address belongs to the physical page: [ 30.007780] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061b4 [ 30.008836] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.009823] page_type: f5(slab) [ 30.010359] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.011522] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.012625] page dumped because: kasan: bad access detected [ 30.013420] [ 30.013946] Memory state around the buggy address: [ 30.014709] fff00000c61b4180: 00 05 fc fc fa fb fc fc 00 02 fc fc fa fb fc fc [ 30.016046] fff00000c61b4200: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.017052] >fff00000c61b4280: 00 04 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 30.018163] ^ [ 30.018809] fff00000c61b4300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.019949] fff00000c61b4380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.020852] ==================================================================
[ 27.722924] ================================================================== [ 27.723867] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 27.725007] Write of size 16 at addr ffff888101a5bbc0 by task kunit_try_catch/173 [ 27.725438] [ 27.726030] CPU: 0 UID: 0 PID: 173 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241205 #1 [ 27.727872] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.728617] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.729704] Call Trace: [ 27.730057] <TASK> [ 27.730323] dump_stack_lvl+0x73/0xb0 [ 27.730734] print_report+0xd1/0x640 [ 27.731124] ? __virt_addr_valid+0x1db/0x2d0 [ 27.731555] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.732586] kasan_report+0x102/0x140 [ 27.733195] ? kmalloc_oob_16+0x454/0x4a0 [ 27.733506] ? kmalloc_oob_16+0x454/0x4a0 [ 27.734328] __asan_report_store16_noabort+0x1b/0x30 [ 27.735239] kmalloc_oob_16+0x454/0x4a0 [ 27.735910] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 27.736886] ? __schedule+0xc70/0x27e0 [ 27.737564] ? __pfx_read_tsc+0x10/0x10 [ 27.738118] ? ktime_get_ts64+0x86/0x230 [ 27.739042] kunit_try_run_case+0x1b3/0x490 [ 27.739614] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.740285] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.740544] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.740870] ? __kthread_parkme+0x82/0x160 [ 27.741885] ? preempt_count_sub+0x50/0x80 [ 27.742220] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.742813] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.743570] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.744948] kthread+0x257/0x310 [ 27.745371] ? __pfx_kthread+0x10/0x10 [ 27.746174] ret_from_fork+0x41/0x80 [ 27.746574] ? __pfx_kthread+0x10/0x10 [ 27.747378] ret_from_fork_asm+0x1a/0x30 [ 27.747711] </TASK> [ 27.748415] [ 27.748619] Allocated by task 173: [ 27.749024] kasan_save_stack+0x3d/0x60 [ 27.749676] kasan_save_track+0x18/0x40 [ 27.750339] kasan_save_alloc_info+0x3b/0x50 [ 27.751033] __kasan_kmalloc+0xb7/0xc0 [ 27.751607] __kmalloc_cache_noprof+0x184/0x410 [ 27.752410] kmalloc_oob_16+0xa9/0x4a0 [ 27.752701] kunit_try_run_case+0x1b3/0x490 [ 27.753547] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.754098] kthread+0x257/0x310 [ 27.754453] ret_from_fork+0x41/0x80 [ 27.755491] ret_from_fork_asm+0x1a/0x30 [ 27.756591] [ 27.756789] The buggy address belongs to the object at ffff888101a5bbc0 [ 27.756789] which belongs to the cache kmalloc-16 of size 16 [ 27.758259] The buggy address is located 0 bytes inside of [ 27.758259] allocated 13-byte region [ffff888101a5bbc0, ffff888101a5bbcd) [ 27.760001] [ 27.760382] The buggy address belongs to the physical page: [ 27.760747] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101a5b [ 27.761907] flags: 0x200000000000000(node=0|zone=2) [ 27.762712] page_type: f5(slab) [ 27.763040] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 27.763862] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 27.764673] page dumped because: kasan: bad access detected [ 27.765080] [ 27.765435] Memory state around the buggy address: [ 27.765786] ffff888101a5ba80: fa fb fc fc fa fb fc fc fa fb fc fc 00 01 fc fc [ 27.766623] ffff888101a5bb00: fa fb fc fc 00 01 fc fc 00 01 fc fc fa fb fc fc [ 27.767742] >ffff888101a5bb80: 00 05 fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 27.768822] ^ [ 27.769420] ffff888101a5bc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.770508] ffff888101a5bc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.771128] ==================================================================