Date
Nov. 28, 2024, 2:36 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.623439] ================================================================== [ 31.624401] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x33c/0x428 [ 31.625229] Read of size 1 at addr fff00000c40660c8 by task kunit_try_catch/195 [ 31.625924] [ 31.626317] CPU: 1 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 31.627369] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.627823] Hardware name: linux,dummy-virt (DT) [ 31.628458] Call trace: [ 31.628865] show_stack+0x20/0x38 (C) [ 31.630570] dump_stack_lvl+0x8c/0xd0 [ 31.631069] print_report+0x118/0x5e0 [ 31.631682] kasan_report+0xc8/0x118 [ 31.632244] __asan_report_load1_noabort+0x20/0x30 [ 31.632885] kmem_cache_oob+0x33c/0x428 [ 31.633878] kunit_try_run_case+0x14c/0x3d0 [ 31.634463] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.635209] kthread+0x24c/0x2d0 [ 31.635737] ret_from_fork+0x10/0x20 [ 31.636307] [ 31.636597] Allocated by task 195: [ 31.638032] kasan_save_stack+0x3c/0x68 [ 31.638503] kasan_save_track+0x20/0x40 [ 31.639059] kasan_save_alloc_info+0x40/0x58 [ 31.639661] __kasan_slab_alloc+0xa8/0xb0 [ 31.640241] kmem_cache_alloc_noprof+0x108/0x398 [ 31.640784] kmem_cache_oob+0x12c/0x428 [ 31.641820] kunit_try_run_case+0x14c/0x3d0 [ 31.642447] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.643184] kthread+0x24c/0x2d0 [ 31.643689] ret_from_fork+0x10/0x20 [ 31.644159] [ 31.644513] The buggy address belongs to the object at fff00000c4066000 [ 31.644513] which belongs to the cache test_cache of size 200 [ 31.646049] The buggy address is located 0 bytes to the right of [ 31.646049] allocated 200-byte region [fff00000c4066000, fff00000c40660c8) [ 31.647416] [ 31.647768] The buggy address belongs to the physical page: [ 31.648393] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104066 [ 31.649194] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.649994] page_type: f5(slab) [ 31.650847] raw: 0bfffe0000000000 fff00000c5b7b140 dead000000000122 0000000000000000 [ 31.651765] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 31.652608] page dumped because: kasan: bad access detected [ 31.653994] [ 31.654319] Memory state around the buggy address: [ 31.655059] fff00000c4065f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.656020] fff00000c4066000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.656940] >fff00000c4066080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.658005] ^ [ 31.658840] fff00000c4066100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.659591] fff00000c4066180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.660602] ==================================================================
[ 22.548796] ================================================================== [ 22.549816] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x404/0x530 [ 22.550331] Read of size 1 at addr ffff888101b5e0c8 by task kunit_try_catch/215 [ 22.551098] [ 22.551329] CPU: 1 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241128 #1 [ 22.552199] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.552522] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.553302] Call Trace: [ 22.553773] <TASK> [ 22.554029] dump_stack_lvl+0x73/0xb0 [ 22.554552] print_report+0xd1/0x640 [ 22.554896] ? __virt_addr_valid+0x1db/0x2d0 [ 22.556493] ? kasan_complete_mode_report_info+0x2a/0x200 [ 22.556981] kasan_report+0x102/0x140 [ 22.557359] ? kmem_cache_oob+0x404/0x530 [ 22.557736] ? kmem_cache_oob+0x404/0x530 [ 22.558199] __asan_report_load1_noabort+0x18/0x20 [ 22.558845] kmem_cache_oob+0x404/0x530 [ 22.559943] ? trace_hardirqs_on+0x37/0xe0 [ 22.560278] ? __pfx_kmem_cache_oob+0x10/0x10 [ 22.560729] ? finish_task_switch.isra.0+0x153/0x700 [ 22.561216] ? __switch_to+0x5d9/0xf60 [ 22.561694] ? __pfx_read_tsc+0x10/0x10 [ 22.562066] ? ktime_get_ts64+0x84/0x230 [ 22.562504] kunit_try_run_case+0x1b3/0x490 [ 22.563314] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.563752] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 22.564164] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.564572] ? __kthread_parkme+0x82/0x160 [ 22.565004] ? preempt_count_sub+0x50/0x80 [ 22.565634] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.565994] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.566717] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.567156] kthread+0x257/0x310 [ 22.567725] ? __pfx_kthread+0x10/0x10 [ 22.568260] ret_from_fork+0x41/0x80 [ 22.568661] ? __pfx_kthread+0x10/0x10 [ 22.568954] ret_from_fork_asm+0x1a/0x30 [ 22.569270] </TASK> [ 22.569614] [ 22.569852] Allocated by task 215: [ 22.570273] kasan_save_stack+0x3d/0x60 [ 22.571244] kasan_save_track+0x18/0x40 [ 22.571991] kasan_save_alloc_info+0x3b/0x50 [ 22.572308] __kasan_slab_alloc+0x91/0xa0 [ 22.572612] kmem_cache_alloc_noprof+0x11e/0x3e0 [ 22.573243] kmem_cache_oob+0x158/0x530 [ 22.573757] kunit_try_run_case+0x1b3/0x490 [ 22.574233] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.574649] kthread+0x257/0x310 [ 22.575153] ret_from_fork+0x41/0x80 [ 22.575678] ret_from_fork_asm+0x1a/0x30 [ 22.576067] [ 22.577044] The buggy address belongs to the object at ffff888101b5e000 [ 22.577044] which belongs to the cache test_cache of size 200 [ 22.579246] The buggy address is located 0 bytes to the right of [ 22.579246] allocated 200-byte region [ffff888101b5e000, ffff888101b5e0c8) [ 22.580447] [ 22.580699] The buggy address belongs to the physical page: [ 22.581164] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101b5e [ 22.582414] flags: 0x200000000000000(node=0|zone=2) [ 22.583064] page_type: f5(slab) [ 22.583679] raw: 0200000000000000 ffff888101af98c0 dead000000000122 0000000000000000 [ 22.584284] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 22.585651] page dumped because: kasan: bad access detected [ 22.586242] [ 22.586575] Memory state around the buggy address: [ 22.587267] ffff888101b5df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.588102] ffff888101b5e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.588966] >ffff888101b5e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 22.590526] ^ [ 22.591118] ffff888101b5e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.592088] ffff888101b5e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.592790] ==================================================================