Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.569993] ================================================================== [ 18.570150] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.570253] Read of size 1 at addr fff00000c56f10c8 by task kunit_try_catch/207 [ 18.570336] [ 18.570402] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.570525] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.570573] Hardware name: linux,dummy-virt (DT) [ 18.570630] Call trace: [ 18.570707] show_stack+0x20/0x38 (C) [ 18.570758] dump_stack_lvl+0x8c/0xd0 [ 18.570836] print_report+0x118/0x608 [ 18.570890] kasan_report+0xdc/0x128 [ 18.570955] __asan_report_load1_noabort+0x20/0x30 [ 18.571007] kmem_cache_oob+0x344/0x430 [ 18.571052] kunit_try_run_case+0x170/0x3f0 [ 18.571099] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.571150] kthread+0x328/0x630 [ 18.571368] ret_from_fork+0x10/0x20 [ 18.571456] [ 18.571534] Allocated by task 207: [ 18.571591] kasan_save_stack+0x3c/0x68 [ 18.571633] kasan_save_track+0x20/0x40 [ 18.571671] kasan_save_alloc_info+0x40/0x58 [ 18.571721] __kasan_slab_alloc+0xa8/0xb0 [ 18.571787] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.571863] kmem_cache_oob+0x12c/0x430 [ 18.571921] kunit_try_run_case+0x170/0x3f0 [ 18.572016] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.572098] kthread+0x328/0x630 [ 18.572130] ret_from_fork+0x10/0x20 [ 18.572183] [ 18.572414] The buggy address belongs to the object at fff00000c56f1000 [ 18.572414] which belongs to the cache test_cache of size 200 [ 18.572528] The buggy address is located 0 bytes to the right of [ 18.572528] allocated 200-byte region [fff00000c56f1000, fff00000c56f10c8) [ 18.572593] [ 18.572614] The buggy address belongs to the physical page: [ 18.572661] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1056f1 [ 18.572855] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.572921] page_type: f5(slab) [ 18.572960] raw: 0bfffe0000000000 fff00000c1b58640 dead000000000122 0000000000000000 [ 18.573018] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.573085] page dumped because: kasan: bad access detected [ 18.573118] [ 18.573163] Memory state around the buggy address: [ 18.573207] fff00000c56f0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.573276] fff00000c56f1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.573570] >fff00000c56f1080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.573674] ^ [ 18.573821] fff00000c56f1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.573905] fff00000c56f1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.574006] ==================================================================
[ 12.276166] ================================================================== [ 12.277485] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.278494] Read of size 1 at addr ffff888103a080c8 by task kunit_try_catch/224 [ 12.279250] [ 12.279368] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.279417] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.279429] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.279451] Call Trace: [ 12.279466] <TASK> [ 12.279485] dump_stack_lvl+0x73/0xb0 [ 12.279519] print_report+0xd1/0x650 [ 12.279543] ? __virt_addr_valid+0x1db/0x2d0 [ 12.279567] ? kmem_cache_oob+0x402/0x530 [ 12.279590] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.279611] ? kmem_cache_oob+0x402/0x530 [ 12.279633] kasan_report+0x141/0x180 [ 12.279655] ? kmem_cache_oob+0x402/0x530 [ 12.279681] __asan_report_load1_noabort+0x18/0x20 [ 12.279704] kmem_cache_oob+0x402/0x530 [ 12.279725] ? trace_hardirqs_on+0x37/0xe0 [ 12.279749] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.279770] ? finish_task_switch.isra.0+0x153/0x700 [ 12.279792] ? __switch_to+0x47/0xf50 [ 12.279821] ? __pfx_read_tsc+0x10/0x10 [ 12.279841] ? ktime_get_ts64+0x86/0x230 [ 12.279865] kunit_try_run_case+0x1a5/0x480 [ 12.279891] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.279912] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.279946] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.279968] ? __kthread_parkme+0x82/0x180 [ 12.279989] ? preempt_count_sub+0x50/0x80 [ 12.280011] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.280033] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.280055] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.280077] kthread+0x337/0x6f0 [ 12.280108] ? trace_preempt_on+0x20/0xc0 [ 12.280129] ? __pfx_kthread+0x10/0x10 [ 12.280148] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.280180] ? calculate_sigpending+0x7b/0xa0 [ 12.280205] ? __pfx_kthread+0x10/0x10 [ 12.280226] ret_from_fork+0x116/0x1d0 [ 12.280244] ? __pfx_kthread+0x10/0x10 [ 12.280263] ret_from_fork_asm+0x1a/0x30 [ 12.280294] </TASK> [ 12.280314] [ 12.288982] Allocated by task 224: [ 12.289209] kasan_save_stack+0x45/0x70 [ 12.289361] kasan_save_track+0x18/0x40 [ 12.289777] kasan_save_alloc_info+0x3b/0x50 [ 12.289983] __kasan_slab_alloc+0x91/0xa0 [ 12.290124] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.290305] kmem_cache_oob+0x157/0x530 [ 12.290667] kunit_try_run_case+0x1a5/0x480 [ 12.290942] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.291273] kthread+0x337/0x6f0 [ 12.291397] ret_from_fork+0x116/0x1d0 [ 12.291529] ret_from_fork_asm+0x1a/0x30 [ 12.291885] [ 12.292020] The buggy address belongs to the object at ffff888103a08000 [ 12.292020] which belongs to the cache test_cache of size 200 [ 12.292753] The buggy address is located 0 bytes to the right of [ 12.292753] allocated 200-byte region [ffff888103a08000, ffff888103a080c8) [ 12.293343] [ 12.293444] The buggy address belongs to the physical page: [ 12.293698] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a08 [ 12.294066] flags: 0x200000000000000(node=0|zone=2) [ 12.294306] page_type: f5(slab) [ 12.294560] raw: 0200000000000000 ffff888101dc2280 dead000000000122 0000000000000000 [ 12.294892] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.295305] page dumped because: kasan: bad access detected [ 12.295643] [ 12.295737] Memory state around the buggy address: [ 12.295977] ffff888103a07f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.296317] ffff888103a08000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.296653] >ffff888103a08080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.296868] ^ [ 12.297073] ffff888103a08100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.297440] ffff888103a08180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.297753] ==================================================================