Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.282996] ================================================================== [ 15.283057] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 15.283111] Read of size 64 at addr fff00000c770c204 by task kunit_try_catch/183 [ 15.283225] [ 15.283263] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.283347] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.283374] Hardware name: linux,dummy-virt (DT) [ 15.283407] Call trace: [ 15.283429] show_stack+0x20/0x38 (C) [ 15.283478] dump_stack_lvl+0x8c/0xd0 [ 15.283540] print_report+0x118/0x5d0 [ 15.283603] kasan_report+0xdc/0x128 [ 15.283658] kasan_check_range+0x100/0x1a8 [ 15.283707] __asan_memmove+0x3c/0x98 [ 15.283749] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 15.283813] kunit_try_run_case+0x170/0x3f0 [ 15.283862] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.283913] kthread+0x328/0x630 [ 15.283956] ret_from_fork+0x10/0x20 [ 15.284004] [ 15.284022] Allocated by task 183: [ 15.284049] kasan_save_stack+0x3c/0x68 [ 15.284091] kasan_save_track+0x20/0x40 [ 15.284128] kasan_save_alloc_info+0x40/0x58 [ 15.284173] __kasan_kmalloc+0xd4/0xd8 [ 15.284630] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.285164] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 15.285332] kunit_try_run_case+0x170/0x3f0 [ 15.285428] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.285564] kthread+0x328/0x630 [ 15.285642] ret_from_fork+0x10/0x20 [ 15.285712] [ 15.285734] The buggy address belongs to the object at fff00000c770c200 [ 15.285734] which belongs to the cache kmalloc-64 of size 64 [ 15.285939] The buggy address is located 4 bytes inside of [ 15.285939] allocated 64-byte region [fff00000c770c200, fff00000c770c240) [ 15.286252] [ 15.286341] The buggy address belongs to the physical page: [ 15.286404] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10770c [ 15.286842] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.287055] page_type: f5(slab) [ 15.287144] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.287242] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.287389] page dumped because: kasan: bad access detected [ 15.287435] [ 15.287454] Memory state around the buggy address: [ 15.287678] fff00000c770c100: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 15.287901] fff00000c770c180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.287963] >fff00000c770c200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.288114] ^ [ 15.288243] fff00000c770c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.288319] fff00000c770c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.288416] ==================================================================
[ 13.165787] ================================================================== [ 13.166310] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.166845] Read of size 64 at addr ffff88810389b984 by task kunit_try_catch/200 [ 13.167415] [ 13.167627] CPU: 1 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.167675] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.167686] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.167707] Call Trace: [ 13.167718] <TASK> [ 13.167734] dump_stack_lvl+0x73/0xb0 [ 13.167765] print_report+0xd1/0x610 [ 13.167965] ? __virt_addr_valid+0x1db/0x2d0 [ 13.167990] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.168014] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.168036] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.168060] kasan_report+0x141/0x180 [ 13.168091] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.168153] kasan_check_range+0x10c/0x1c0 [ 13.168181] __asan_memmove+0x27/0x70 [ 13.168202] kmalloc_memmove_invalid_size+0x16f/0x330 [ 13.168227] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 13.168252] ? __schedule+0x10c6/0x2b60 [ 13.168276] ? __pfx_read_tsc+0x10/0x10 [ 13.168297] ? ktime_get_ts64+0x86/0x230 [ 13.168322] kunit_try_run_case+0x1a5/0x480 [ 13.168348] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.168370] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.168394] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.168417] ? __kthread_parkme+0x82/0x180 [ 13.168438] ? preempt_count_sub+0x50/0x80 [ 13.168461] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.168497] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.168519] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.168543] kthread+0x337/0x6f0 [ 13.168562] ? trace_preempt_on+0x20/0xc0 [ 13.168584] ? __pfx_kthread+0x10/0x10 [ 13.168604] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.168626] ? calculate_sigpending+0x7b/0xa0 [ 13.168649] ? __pfx_kthread+0x10/0x10 [ 13.168670] ret_from_fork+0x116/0x1d0 [ 13.168688] ? __pfx_kthread+0x10/0x10 [ 13.168709] ret_from_fork_asm+0x1a/0x30 [ 13.168739] </TASK> [ 13.168749] [ 13.177750] Allocated by task 200: [ 13.177969] kasan_save_stack+0x45/0x70 [ 13.178425] kasan_save_track+0x18/0x40 [ 13.178646] kasan_save_alloc_info+0x3b/0x50 [ 13.178892] __kasan_kmalloc+0xb7/0xc0 [ 13.179107] __kmalloc_cache_noprof+0x189/0x420 [ 13.179494] kmalloc_memmove_invalid_size+0xac/0x330 [ 13.179743] kunit_try_run_case+0x1a5/0x480 [ 13.179963] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.180220] kthread+0x337/0x6f0 [ 13.180355] ret_from_fork+0x116/0x1d0 [ 13.180727] ret_from_fork_asm+0x1a/0x30 [ 13.180953] [ 13.181120] The buggy address belongs to the object at ffff88810389b980 [ 13.181120] which belongs to the cache kmalloc-64 of size 64 [ 13.181584] The buggy address is located 4 bytes inside of [ 13.181584] allocated 64-byte region [ffff88810389b980, ffff88810389b9c0) [ 13.182084] [ 13.182189] The buggy address belongs to the physical page: [ 13.182435] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10389b [ 13.182946] flags: 0x200000000000000(node=0|zone=2) [ 13.183188] page_type: f5(slab) [ 13.183356] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.183827] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.184293] page dumped because: kasan: bad access detected [ 13.184526] [ 13.184624] Memory state around the buggy address: [ 13.184931] ffff88810389b880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.185360] ffff88810389b900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.185710] >ffff88810389b980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 13.186209] ^ [ 13.186512] ffff88810389ba00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.186874] ffff88810389ba80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.187305] ==================================================================