Date
July 9, 2025, 1:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.431253] ================================================================== [ 29.431545] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 29.431624] Read of size 64 at addr fff00000c598c984 by task kunit_try_catch/214 [ 29.431763] [ 29.431831] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250709 #1 PREEMPT [ 29.432022] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.432146] Hardware name: linux,dummy-virt (DT) [ 29.432267] Call trace: [ 29.432304] show_stack+0x20/0x38 (C) [ 29.432354] dump_stack_lvl+0x8c/0xd0 [ 29.432400] print_report+0x118/0x5d0 [ 29.432443] kasan_report+0xdc/0x128 [ 29.432484] kasan_check_range+0x100/0x1a8 [ 29.432529] __asan_memmove+0x3c/0x98 [ 29.432572] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 29.432624] kunit_try_run_case+0x170/0x3f0 [ 29.432670] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.432887] kthread+0x328/0x630 [ 29.433095] ret_from_fork+0x10/0x20 [ 29.433229] [ 29.433248] Allocated by task 214: [ 29.433335] kasan_save_stack+0x3c/0x68 [ 29.433426] kasan_save_track+0x20/0x40 [ 29.433466] kasan_save_alloc_info+0x40/0x58 [ 29.433542] __kasan_kmalloc+0xd4/0xd8 [ 29.433635] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.433737] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 29.433833] kunit_try_run_case+0x170/0x3f0 [ 29.433929] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.434030] kthread+0x328/0x630 [ 29.434073] ret_from_fork+0x10/0x20 [ 29.434375] [ 29.434479] The buggy address belongs to the object at fff00000c598c980 [ 29.434479] which belongs to the cache kmalloc-64 of size 64 [ 29.434577] The buggy address is located 4 bytes inside of [ 29.434577] allocated 64-byte region [fff00000c598c980, fff00000c598c9c0) [ 29.434673] [ 29.434725] The buggy address belongs to the physical page: [ 29.434838] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10598c [ 29.434936] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.435145] page_type: f5(slab) [ 29.435228] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.435295] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.435332] page dumped because: kasan: bad access detected [ 29.435543] [ 29.435763] Memory state around the buggy address: [ 29.435904] fff00000c598c880: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 29.436031] fff00000c598c900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.436107] >fff00000c598c980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.436232] ^ [ 29.436381] fff00000c598ca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.436435] fff00000c598ca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.436474] ==================================================================
[ 24.305817] ================================================================== [ 24.306355] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 24.306765] Read of size 64 at addr ffff8881058cb504 by task kunit_try_catch/232 [ 24.307393] [ 24.307508] CPU: 0 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5-next-20250709 #1 PREEMPT(voluntary) [ 24.307565] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 24.307579] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.307601] Call Trace: [ 24.307615] <TASK> [ 24.307636] dump_stack_lvl+0x73/0xb0 [ 24.307670] print_report+0xd1/0x610 [ 24.307705] ? __virt_addr_valid+0x1db/0x2d0 [ 24.307730] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 24.307754] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.307794] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 24.307821] kasan_report+0x141/0x180 [ 24.307843] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 24.307870] kasan_check_range+0x10c/0x1c0 [ 24.307937] __asan_memmove+0x27/0x70 [ 24.307962] kmalloc_memmove_invalid_size+0x16f/0x330 [ 24.307986] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 24.308100] ? __schedule+0x10cc/0x2b60 [ 24.308125] ? __pfx_read_tsc+0x10/0x10 [ 24.308158] ? ktime_get_ts64+0x86/0x230 [ 24.308184] kunit_try_run_case+0x1a5/0x480 [ 24.308219] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.308239] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.308262] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.308286] ? __kthread_parkme+0x82/0x180 [ 24.308306] ? preempt_count_sub+0x50/0x80 [ 24.308330] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.308351] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.308375] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.308399] kthread+0x337/0x6f0 [ 24.308419] ? trace_preempt_on+0x20/0xc0 [ 24.308442] ? __pfx_kthread+0x10/0x10 [ 24.308463] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.308485] ? calculate_sigpending+0x7b/0xa0 [ 24.308509] ? __pfx_kthread+0x10/0x10 [ 24.308530] ret_from_fork+0x116/0x1d0 [ 24.308548] ? __pfx_kthread+0x10/0x10 [ 24.308569] ret_from_fork_asm+0x1a/0x30 [ 24.308600] </TASK> [ 24.308612] [ 24.316284] Allocated by task 232: [ 24.316525] kasan_save_stack+0x45/0x70 [ 24.316782] kasan_save_track+0x18/0x40 [ 24.317421] kasan_save_alloc_info+0x3b/0x50 [ 24.317650] __kasan_kmalloc+0xb7/0xc0 [ 24.318012] __kmalloc_cache_noprof+0x189/0x420 [ 24.318187] kmalloc_memmove_invalid_size+0xac/0x330 [ 24.318346] kunit_try_run_case+0x1a5/0x480 [ 24.318546] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.318857] kthread+0x337/0x6f0 [ 24.319058] ret_from_fork+0x116/0x1d0 [ 24.319188] ret_from_fork_asm+0x1a/0x30 [ 24.319322] [ 24.319390] The buggy address belongs to the object at ffff8881058cb500 [ 24.319390] which belongs to the cache kmalloc-64 of size 64 [ 24.320127] The buggy address is located 4 bytes inside of [ 24.320127] allocated 64-byte region [ffff8881058cb500, ffff8881058cb540) [ 24.320640] [ 24.320720] The buggy address belongs to the physical page: [ 24.321138] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058cb [ 24.321425] flags: 0x200000000000000(node=0|zone=2) [ 24.321609] page_type: f5(slab) [ 24.321793] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 24.322384] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.322724] page dumped because: kasan: bad access detected [ 24.323045] [ 24.323151] Memory state around the buggy address: [ 24.323374] ffff8881058cb400: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 24.323677] ffff8881058cb480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.324064] >ffff8881058cb500: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 24.324331] ^ [ 24.324494] ffff8881058cb580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.324787] ffff8881058cb600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.325095] ==================================================================