Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.446047] ================================================================== [ 18.446130] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.446188] Read of size 1 at addr fff00000c76ef0c8 by task kunit_try_catch/207 [ 18.446237] [ 18.446270] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.446367] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.446621] Hardware name: linux,dummy-virt (DT) [ 18.446676] Call trace: [ 18.446715] show_stack+0x20/0x38 (C) [ 18.446783] dump_stack_lvl+0x8c/0xd0 [ 18.446848] print_report+0x118/0x608 [ 18.446901] kasan_report+0xdc/0x128 [ 18.447046] __asan_report_load1_noabort+0x20/0x30 [ 18.447105] kmem_cache_oob+0x344/0x430 [ 18.447150] kunit_try_run_case+0x170/0x3f0 [ 18.447199] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.447251] kthread+0x328/0x630 [ 18.447295] ret_from_fork+0x10/0x20 [ 18.447342] [ 18.447359] Allocated by task 207: [ 18.447388] kasan_save_stack+0x3c/0x68 [ 18.447427] kasan_save_track+0x20/0x40 [ 18.447464] kasan_save_alloc_info+0x40/0x58 [ 18.447504] __kasan_slab_alloc+0xa8/0xb0 [ 18.447541] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.447580] kmem_cache_oob+0x12c/0x430 [ 18.447617] kunit_try_run_case+0x170/0x3f0 [ 18.447654] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.447696] kthread+0x328/0x630 [ 18.447728] ret_from_fork+0x10/0x20 [ 18.447762] [ 18.447782] The buggy address belongs to the object at fff00000c76ef000 [ 18.447782] which belongs to the cache test_cache of size 200 [ 18.447850] The buggy address is located 0 bytes to the right of [ 18.447850] allocated 200-byte region [fff00000c76ef000, fff00000c76ef0c8) [ 18.447920] [ 18.447939] The buggy address belongs to the physical page: [ 18.447970] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076ef [ 18.448024] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.448073] page_type: f5(slab) [ 18.448261] raw: 0bfffe0000000000 fff00000c46f58c0 dead000000000122 0000000000000000 [ 18.448315] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.448359] page dumped because: kasan: bad access detected [ 18.448392] [ 18.448543] Memory state around the buggy address: [ 18.448621] fff00000c76eef80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.448714] fff00000c76ef000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.448792] >fff00000c76ef080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.448874] ^ [ 18.448952] fff00000c76ef100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.448995] fff00000c76ef180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.449034] ==================================================================
[ 12.636510] ================================================================== [ 12.636984] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.637373] Read of size 1 at addr ffff8881039870c8 by task kunit_try_catch/224 [ 12.637747] [ 12.637847] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.637907] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.637919] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.638279] Call Trace: [ 12.638296] <TASK> [ 12.638360] dump_stack_lvl+0x73/0xb0 [ 12.638397] print_report+0xd1/0x650 [ 12.638428] ? __virt_addr_valid+0x1db/0x2d0 [ 12.638454] ? kmem_cache_oob+0x402/0x530 [ 12.638476] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.638497] ? kmem_cache_oob+0x402/0x530 [ 12.638518] kasan_report+0x141/0x180 [ 12.638539] ? kmem_cache_oob+0x402/0x530 [ 12.638565] __asan_report_load1_noabort+0x18/0x20 [ 12.638588] kmem_cache_oob+0x402/0x530 [ 12.638608] ? trace_hardirqs_on+0x37/0xe0 [ 12.638630] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.638653] ? __kasan_check_write+0x18/0x20 [ 12.638672] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.638696] ? irqentry_exit+0x2a/0x60 [ 12.638718] ? trace_hardirqs_on+0x37/0xe0 [ 12.638738] ? __pfx_read_tsc+0x10/0x10 [ 12.638759] ? ktime_get_ts64+0x86/0x230 [ 12.638783] kunit_try_run_case+0x1a5/0x480 [ 12.638809] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.638831] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.638851] ? __kthread_parkme+0x82/0x180 [ 12.638872] ? preempt_count_sub+0x50/0x80 [ 12.638894] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.638916] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.638936] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.638957] kthread+0x337/0x6f0 [ 12.638976] ? trace_preempt_on+0x20/0xc0 [ 12.638996] ? __pfx_kthread+0x10/0x10 [ 12.639015] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.639034] ? calculate_sigpending+0x7b/0xa0 [ 12.639057] ? __pfx_kthread+0x10/0x10 [ 12.639077] ret_from_fork+0x116/0x1d0 [ 12.639094] ? __pfx_kthread+0x10/0x10 [ 12.639113] ret_from_fork_asm+0x1a/0x30 [ 12.639143] </TASK> [ 12.639155] [ 12.650509] Allocated by task 224: [ 12.650722] kasan_save_stack+0x45/0x70 [ 12.650928] kasan_save_track+0x18/0x40 [ 12.651108] kasan_save_alloc_info+0x3b/0x50 [ 12.651713] __kasan_slab_alloc+0x91/0xa0 [ 12.651996] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.652435] kmem_cache_oob+0x157/0x530 [ 12.652733] kunit_try_run_case+0x1a5/0x480 [ 12.653110] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.653564] kthread+0x337/0x6f0 [ 12.653840] ret_from_fork+0x116/0x1d0 [ 12.654158] ret_from_fork_asm+0x1a/0x30 [ 12.654602] [ 12.654862] The buggy address belongs to the object at ffff888103987000 [ 12.654862] which belongs to the cache test_cache of size 200 [ 12.655720] The buggy address is located 0 bytes to the right of [ 12.655720] allocated 200-byte region [ffff888103987000, ffff8881039870c8) [ 12.656659] [ 12.656745] The buggy address belongs to the physical page: [ 12.656990] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103987 [ 12.657605] flags: 0x200000000000000(node=0|zone=2) [ 12.658011] page_type: f5(slab) [ 12.658534] raw: 0200000000000000 ffff888101d0c500 dead000000000122 0000000000000000 [ 12.658870] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.659174] page dumped because: kasan: bad access detected [ 12.659789] [ 12.659891] Memory state around the buggy address: [ 12.660104] ffff888103986f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.660775] ffff888103987000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.661624] >ffff888103987080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.661883] ^ [ 12.662144] ffff888103987100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.662431] ffff888103987180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.662771] ==================================================================