Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.282048] ================================================================== [ 17.282126] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.282327] Read of size 1 at addr fff00000c786e0c8 by task kunit_try_catch/207 [ 17.282400] [ 17.282438] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.282529] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.282557] Hardware name: linux,dummy-virt (DT) [ 17.282911] Call trace: [ 17.283108] show_stack+0x20/0x38 (C) [ 17.283302] dump_stack_lvl+0x8c/0xd0 [ 17.283362] print_report+0x118/0x608 [ 17.283685] kasan_report+0xdc/0x128 [ 17.283880] __asan_report_load1_noabort+0x20/0x30 [ 17.283991] kmem_cache_oob+0x344/0x430 [ 17.284054] kunit_try_run_case+0x170/0x3f0 [ 17.284104] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.284156] kthread+0x328/0x630 [ 17.284339] ret_from_fork+0x10/0x20 [ 17.284441] [ 17.284722] Allocated by task 207: [ 17.284885] kasan_save_stack+0x3c/0x68 [ 17.284936] kasan_save_track+0x20/0x40 [ 17.284974] kasan_save_alloc_info+0x40/0x58 [ 17.285012] __kasan_slab_alloc+0xa8/0xb0 [ 17.285058] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.285599] kmem_cache_oob+0x12c/0x430 [ 17.285697] kunit_try_run_case+0x170/0x3f0 [ 17.286150] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.286205] kthread+0x328/0x630 [ 17.286273] ret_from_fork+0x10/0x20 [ 17.286489] [ 17.286646] The buggy address belongs to the object at fff00000c786e000 [ 17.286646] which belongs to the cache test_cache of size 200 [ 17.286735] The buggy address is located 0 bytes to the right of [ 17.286735] allocated 200-byte region [fff00000c786e000, fff00000c786e0c8) [ 17.287012] [ 17.287512] The buggy address belongs to the physical page: [ 17.287556] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10786e [ 17.287742] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.287991] page_type: f5(slab) [ 17.288106] raw: 0bfffe0000000000 fff00000c3eae640 dead000000000122 0000000000000000 [ 17.288321] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.288497] page dumped because: kasan: bad access detected [ 17.288714] [ 17.288739] Memory state around the buggy address: [ 17.288771] fff00000c786df80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc [ 17.289008] fff00000c786e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.289251] >fff00000c786e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.289305] ^ [ 17.289531] fff00000c786e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.289842] fff00000c786e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.289959] ==================================================================
[ 12.068498] ================================================================== [ 12.068937] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.069282] Read of size 1 at addr ffff8881038da0c8 by task kunit_try_catch/225 [ 12.069674] [ 12.069820] CPU: 0 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.069862] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.069874] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.069895] Call Trace: [ 12.069906] <TASK> [ 12.069922] dump_stack_lvl+0x73/0xb0 [ 12.069951] print_report+0xd1/0x650 [ 12.069974] ? __virt_addr_valid+0x1db/0x2d0 [ 12.070136] ? kmem_cache_oob+0x402/0x530 [ 12.070159] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.070181] ? kmem_cache_oob+0x402/0x530 [ 12.070203] kasan_report+0x141/0x180 [ 12.070224] ? kmem_cache_oob+0x402/0x530 [ 12.070251] __asan_report_load1_noabort+0x18/0x20 [ 12.070274] kmem_cache_oob+0x402/0x530 [ 12.070295] ? trace_hardirqs_on+0x37/0xe0 [ 12.070319] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.070342] ? __kasan_check_write+0x18/0x20 [ 12.070361] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.070383] ? irqentry_exit+0x2a/0x60 [ 12.070405] ? trace_hardirqs_on+0x37/0xe0 [ 12.070438] ? __pfx_read_tsc+0x10/0x10 [ 12.070460] ? ktime_get_ts64+0x86/0x230 [ 12.070484] kunit_try_run_case+0x1a5/0x480 [ 12.070509] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.070532] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.070554] ? __kthread_parkme+0x82/0x180 [ 12.070574] ? preempt_count_sub+0x50/0x80 [ 12.070597] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.070620] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.070641] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.070663] kthread+0x337/0x6f0 [ 12.070681] ? trace_preempt_on+0x20/0xc0 [ 12.070702] ? __pfx_kthread+0x10/0x10 [ 12.070728] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.070748] ? calculate_sigpending+0x7b/0xa0 [ 12.070771] ? __pfx_kthread+0x10/0x10 [ 12.070792] ret_from_fork+0x116/0x1d0 [ 12.070809] ? __pfx_kthread+0x10/0x10 [ 12.070828] ret_from_fork_asm+0x1a/0x30 [ 12.070858] </TASK> [ 12.070869] [ 12.079538] Allocated by task 225: [ 12.079697] kasan_save_stack+0x45/0x70 [ 12.079895] kasan_save_track+0x18/0x40 [ 12.080035] kasan_save_alloc_info+0x3b/0x50 [ 12.080398] __kasan_slab_alloc+0x91/0xa0 [ 12.080584] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.080781] kmem_cache_oob+0x157/0x530 [ 12.080927] kunit_try_run_case+0x1a5/0x480 [ 12.081112] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.081360] kthread+0x337/0x6f0 [ 12.081553] ret_from_fork+0x116/0x1d0 [ 12.081837] ret_from_fork_asm+0x1a/0x30 [ 12.081981] [ 12.082054] The buggy address belongs to the object at ffff8881038da000 [ 12.082054] which belongs to the cache test_cache of size 200 [ 12.082884] The buggy address is located 0 bytes to the right of [ 12.082884] allocated 200-byte region [ffff8881038da000, ffff8881038da0c8) [ 12.083383] [ 12.083582] The buggy address belongs to the physical page: [ 12.083764] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038da [ 12.084007] flags: 0x200000000000000(node=0|zone=2) [ 12.084187] page_type: f5(slab) [ 12.084349] raw: 0200000000000000 ffff8881016753c0 dead000000000122 0000000000000000 [ 12.084686] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.085027] page dumped because: kasan: bad access detected [ 12.085575] [ 12.085654] Memory state around the buggy address: [ 12.085814] ffff8881038d9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.086137] ffff8881038da000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.086664] >ffff8881038da080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.086986] ^ [ 12.087259] ffff8881038da100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.087479] ffff8881038da180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.087702] ==================================================================