Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.186812] ================================================================== [ 32.187093] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 32.187254] Read of size 64 at addr fff00000c596c904 by task kunit_try_catch/193 [ 32.187791] [ 32.187893] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 32.188118] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.188180] Hardware name: linux,dummy-virt (DT) [ 32.188260] Call trace: [ 32.188374] show_stack+0x20/0x38 (C) [ 32.188816] dump_stack_lvl+0x8c/0xd0 [ 32.188996] print_report+0x118/0x608 [ 32.189159] kasan_report+0xdc/0x128 [ 32.189334] kasan_check_range+0x100/0x1a8 [ 32.189505] __asan_memmove+0x3c/0x98 [ 32.189597] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 32.189719] kunit_try_run_case+0x170/0x3f0 [ 32.189992] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.190149] kthread+0x328/0x630 [ 32.190260] ret_from_fork+0x10/0x20 [ 32.190461] [ 32.190532] Allocated by task 193: [ 32.190721] kasan_save_stack+0x3c/0x68 [ 32.190840] kasan_save_track+0x20/0x40 [ 32.190933] kasan_save_alloc_info+0x40/0x58 [ 32.191031] __kasan_kmalloc+0xd4/0xd8 [ 32.191398] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.191554] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 32.191679] kunit_try_run_case+0x170/0x3f0 [ 32.191834] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.191958] kthread+0x328/0x630 [ 32.192041] ret_from_fork+0x10/0x20 [ 32.192134] [ 32.192185] The buggy address belongs to the object at fff00000c596c900 [ 32.192185] which belongs to the cache kmalloc-64 of size 64 [ 32.192409] The buggy address is located 4 bytes inside of [ 32.192409] allocated 64-byte region [fff00000c596c900, fff00000c596c940) [ 32.192599] [ 32.192660] The buggy address belongs to the physical page: [ 32.192742] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10596c [ 32.192905] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.193023] page_type: f5(slab) [ 32.193362] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 32.193552] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 32.193713] page dumped because: kasan: bad access detected [ 32.193797] [ 32.193849] Memory state around the buggy address: [ 32.193956] fff00000c596c800: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 32.194074] fff00000c596c880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.194183] >fff00000c596c900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 32.194489] ^ [ 32.194694] fff00000c596c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.194866] fff00000c596ca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.195019] ==================================================================
[ 25.825794] ================================================================== [ 25.826426] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.827558] Read of size 64 at addr ffff88810232b084 by task kunit_try_catch/211 [ 25.828581] [ 25.829000] CPU: 0 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 25.829113] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.829140] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.829215] Call Trace: [ 25.829245] <TASK> [ 25.829294] dump_stack_lvl+0x73/0xb0 [ 25.829386] print_report+0xd1/0x650 [ 25.829435] ? __virt_addr_valid+0x1db/0x2d0 [ 25.829496] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.829524] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.829573] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.829645] kasan_report+0x141/0x180 [ 25.829686] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.829726] kasan_check_range+0x10c/0x1c0 [ 25.829752] __asan_memmove+0x27/0x70 [ 25.829773] kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.829799] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 25.829826] ? __schedule+0x10cc/0x2b60 [ 25.829853] ? __pfx_read_tsc+0x10/0x10 [ 25.829878] ? ktime_get_ts64+0x86/0x230 [ 25.829907] kunit_try_run_case+0x1a5/0x480 [ 25.829936] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.829959] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.829984] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.830008] ? __kthread_parkme+0x82/0x180 [ 25.830043] ? preempt_count_sub+0x50/0x80 [ 25.830071] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.830097] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.830122] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.830162] kthread+0x337/0x6f0 [ 25.830197] ? trace_preempt_on+0x20/0xc0 [ 25.830224] ? __pfx_kthread+0x10/0x10 [ 25.830247] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.830269] ? calculate_sigpending+0x7b/0xa0 [ 25.830296] ? __pfx_kthread+0x10/0x10 [ 25.830319] ret_from_fork+0x116/0x1d0 [ 25.830339] ? __pfx_kthread+0x10/0x10 [ 25.830361] ret_from_fork_asm+0x1a/0x30 [ 25.830396] </TASK> [ 25.830409] [ 25.843236] Allocated by task 211: [ 25.843653] kasan_save_stack+0x45/0x70 [ 25.844126] kasan_save_track+0x18/0x40 [ 25.844477] kasan_save_alloc_info+0x3b/0x50 [ 25.845058] __kasan_kmalloc+0xb7/0xc0 [ 25.845438] __kmalloc_cache_noprof+0x189/0x420 [ 25.845671] kmalloc_memmove_invalid_size+0xac/0x330 [ 25.846086] kunit_try_run_case+0x1a5/0x480 [ 25.846516] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.847495] kthread+0x337/0x6f0 [ 25.847992] ret_from_fork+0x116/0x1d0 [ 25.848342] ret_from_fork_asm+0x1a/0x30 [ 25.848806] [ 25.849022] The buggy address belongs to the object at ffff88810232b080 [ 25.849022] which belongs to the cache kmalloc-64 of size 64 [ 25.849898] The buggy address is located 4 bytes inside of [ 25.849898] allocated 64-byte region [ffff88810232b080, ffff88810232b0c0) [ 25.850805] [ 25.850972] The buggy address belongs to the physical page: [ 25.851456] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10232b [ 25.851872] flags: 0x200000000000000(node=0|zone=2) [ 25.852066] page_type: f5(slab) [ 25.852408] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.853202] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.853951] page dumped because: kasan: bad access detected [ 25.854325] [ 25.854512] Memory state around the buggy address: [ 25.854948] ffff88810232af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.855462] ffff88810232b000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.856210] >ffff88810232b080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.857256] ^ [ 25.857479] ffff88810232b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.858072] ffff88810232b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.858387] ==================================================================