Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.280530] ================================================================== [ 31.280721] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 31.282087] Read of size 1 at addr fff00000c774a0c8 by task kunit_try_catch/218 [ 31.282721] [ 31.282818] CPU: 1 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 31.283082] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.283156] Hardware name: linux,dummy-virt (DT) [ 31.283247] Call trace: [ 31.283308] show_stack+0x20/0x38 (C) [ 31.283912] dump_stack_lvl+0x8c/0xd0 [ 31.284084] print_report+0x118/0x608 [ 31.284208] kasan_report+0xdc/0x128 [ 31.284316] __asan_report_load1_noabort+0x20/0x30 [ 31.284912] kmem_cache_oob+0x344/0x430 [ 31.285136] kunit_try_run_case+0x170/0x3f0 [ 31.285338] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.285600] kthread+0x328/0x630 [ 31.285703] ret_from_fork+0x10/0x20 [ 31.285800] [ 31.286301] Allocated by task 218: [ 31.286528] kasan_save_stack+0x3c/0x68 [ 31.286658] kasan_save_track+0x20/0x40 [ 31.286821] kasan_save_alloc_info+0x40/0x58 [ 31.286972] __kasan_slab_alloc+0xa8/0xb0 [ 31.287473] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.287662] kmem_cache_oob+0x12c/0x430 [ 31.287993] kunit_try_run_case+0x170/0x3f0 [ 31.288305] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.288424] kthread+0x328/0x630 [ 31.288622] ret_from_fork+0x10/0x20 [ 31.288823] [ 31.288972] The buggy address belongs to the object at fff00000c774a000 [ 31.288972] which belongs to the cache test_cache of size 200 [ 31.289344] The buggy address is located 0 bytes to the right of [ 31.289344] allocated 200-byte region [fff00000c774a000, fff00000c774a0c8) [ 31.289516] [ 31.289847] The buggy address belongs to the physical page: [ 31.289944] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10774a [ 31.290166] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.290318] page_type: f5(slab) [ 31.290816] raw: 0bfffe0000000000 fff00000c1112a00 dead000000000122 0000000000000000 [ 31.290997] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.291216] page dumped because: kasan: bad access detected [ 31.291303] [ 31.291364] Memory state around the buggy address: [ 31.291520] fff00000c7749f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.291713] fff00000c774a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.291833] >fff00000c774a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.291946] ^ [ 31.292286] fff00000c774a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.292405] fff00000c774a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.292506] ==================================================================
[ 27.792212] ================================================================== [ 27.792699] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 27.793251] Read of size 1 at addr ffff8881032620c8 by task kunit_try_catch/236 [ 27.793837] [ 27.794118] CPU: 0 UID: 0 PID: 236 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 27.794303] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.794329] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.794370] Call Trace: [ 27.794403] <TASK> [ 27.794442] dump_stack_lvl+0x73/0xb0 [ 27.794521] print_report+0xd1/0x650 [ 27.794575] ? __virt_addr_valid+0x1db/0x2d0 [ 27.794674] ? kmem_cache_oob+0x402/0x530 [ 27.794720] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.794786] ? kmem_cache_oob+0x402/0x530 [ 27.794831] kasan_report+0x141/0x180 [ 27.794915] ? kmem_cache_oob+0x402/0x530 [ 27.794992] __asan_report_load1_noabort+0x18/0x20 [ 27.795040] kmem_cache_oob+0x402/0x530 [ 27.795074] ? trace_hardirqs_on+0x37/0xe0 [ 27.795133] ? __pfx_kmem_cache_oob+0x10/0x10 [ 27.795180] ? finish_task_switch.isra.0+0x153/0x700 [ 27.795230] ? __switch_to+0x47/0xf50 [ 27.795288] ? __pfx_read_tsc+0x10/0x10 [ 27.795325] ? ktime_get_ts64+0x86/0x230 [ 27.795375] kunit_try_run_case+0x1a5/0x480 [ 27.795425] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.795634] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.795740] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.795793] ? __kthread_parkme+0x82/0x180 [ 27.795858] ? preempt_count_sub+0x50/0x80 [ 27.795904] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.795946] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.796071] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.796130] kthread+0x337/0x6f0 [ 27.796156] ? trace_preempt_on+0x20/0xc0 [ 27.796182] ? __pfx_kthread+0x10/0x10 [ 27.796205] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.796229] ? calculate_sigpending+0x7b/0xa0 [ 27.796255] ? __pfx_kthread+0x10/0x10 [ 27.796279] ret_from_fork+0x116/0x1d0 [ 27.796301] ? __pfx_kthread+0x10/0x10 [ 27.796323] ret_from_fork_asm+0x1a/0x30 [ 27.796356] </TASK> [ 27.796370] [ 27.808456] Allocated by task 236: [ 27.808856] kasan_save_stack+0x45/0x70 [ 27.809322] kasan_save_track+0x18/0x40 [ 27.809597] kasan_save_alloc_info+0x3b/0x50 [ 27.809795] __kasan_slab_alloc+0x91/0xa0 [ 27.810923] kmem_cache_alloc_noprof+0x123/0x3f0 [ 27.811209] kmem_cache_oob+0x157/0x530 [ 27.811399] kunit_try_run_case+0x1a5/0x480 [ 27.811749] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.812462] kthread+0x337/0x6f0 [ 27.812835] ret_from_fork+0x116/0x1d0 [ 27.813293] ret_from_fork_asm+0x1a/0x30 [ 27.813681] [ 27.813859] The buggy address belongs to the object at ffff888103262000 [ 27.813859] which belongs to the cache test_cache of size 200 [ 27.814592] The buggy address is located 0 bytes to the right of [ 27.814592] allocated 200-byte region [ffff888103262000, ffff8881032620c8) [ 27.815040] [ 27.815374] The buggy address belongs to the physical page: [ 27.816119] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103262 [ 27.816771] flags: 0x200000000000000(node=0|zone=2) [ 27.817296] page_type: f5(slab) [ 27.817595] raw: 0200000000000000 ffff888101981a00 dead000000000122 0000000000000000 [ 27.818359] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 27.818976] page dumped because: kasan: bad access detected [ 27.819318] [ 27.819421] Memory state around the buggy address: [ 27.819625] ffff888103261f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.819958] ffff888103262000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.820724] >ffff888103262080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 27.821547] ^ [ 27.822088] ffff888103262100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.822734] ffff888103262180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.823240] ==================================================================