Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.630952] ================================================================== [ 15.631017] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 15.631109] Read of size 64 at addr fff00000c6532d04 by task kunit_try_catch/183 [ 15.631165] [ 15.631212] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.631295] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.631322] Hardware name: linux,dummy-virt (DT) [ 15.631362] Call trace: [ 15.631392] show_stack+0x20/0x38 (C) [ 15.631440] dump_stack_lvl+0x8c/0xd0 [ 15.631493] print_report+0x118/0x5d0 [ 15.631539] kasan_report+0xdc/0x128 [ 15.631592] kasan_check_range+0x100/0x1a8 [ 15.631648] __asan_memmove+0x3c/0x98 [ 15.631689] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 15.631747] kunit_try_run_case+0x170/0x3f0 [ 15.631796] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.631854] kthread+0x328/0x630 [ 15.631896] ret_from_fork+0x10/0x20 [ 15.631943] [ 15.631960] Allocated by task 183: [ 15.631993] kasan_save_stack+0x3c/0x68 [ 15.632034] kasan_save_track+0x20/0x40 [ 15.632080] kasan_save_alloc_info+0x40/0x58 [ 15.632127] __kasan_kmalloc+0xd4/0xd8 [ 15.632169] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.632787] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 15.632849] kunit_try_run_case+0x170/0x3f0 [ 15.633123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.633314] kthread+0x328/0x630 [ 15.633403] ret_from_fork+0x10/0x20 [ 15.633517] [ 15.633539] The buggy address belongs to the object at fff00000c6532d00 [ 15.633539] which belongs to the cache kmalloc-64 of size 64 [ 15.633618] The buggy address is located 4 bytes inside of [ 15.633618] allocated 64-byte region [fff00000c6532d00, fff00000c6532d40) [ 15.633942] [ 15.634020] The buggy address belongs to the physical page: [ 15.634119] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106532 [ 15.634301] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.634352] page_type: f5(slab) [ 15.634628] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.634817] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.634950] page dumped because: kasan: bad access detected [ 15.634985] [ 15.635003] Memory state around the buggy address: [ 15.635035] fff00000c6532c00: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 15.635383] fff00000c6532c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.635501] >fff00000c6532d00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.635653] ^ [ 15.635717] fff00000c6532d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.635873] fff00000c6532e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.636075] ==================================================================
[ 12.737933] ================================================================== [ 12.738433] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.738875] Read of size 64 at addr ffff8881032c8604 by task kunit_try_catch/199 [ 12.739210] [ 12.739313] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.739357] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.739367] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.739387] Call Trace: [ 12.739398] <TASK> [ 12.739413] dump_stack_lvl+0x73/0xb0 [ 12.739492] print_report+0xd1/0x610 [ 12.739516] ? __virt_addr_valid+0x1db/0x2d0 [ 12.739540] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.739565] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.739588] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.739614] kasan_report+0x141/0x180 [ 12.739635] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.739665] kasan_check_range+0x10c/0x1c0 [ 12.739689] __asan_memmove+0x27/0x70 [ 12.739709] kmalloc_memmove_invalid_size+0x16f/0x330 [ 12.739734] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 12.739773] ? __schedule+0x10cc/0x2b60 [ 12.739796] ? __pfx_read_tsc+0x10/0x10 [ 12.739817] ? ktime_get_ts64+0x86/0x230 [ 12.739843] kunit_try_run_case+0x1a5/0x480 [ 12.739868] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.739891] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.739916] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.739941] ? __kthread_parkme+0x82/0x180 [ 12.739962] ? preempt_count_sub+0x50/0x80 [ 12.739986] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.740010] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.740035] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.740060] kthread+0x337/0x6f0 [ 12.740079] ? trace_preempt_on+0x20/0xc0 [ 12.740102] ? __pfx_kthread+0x10/0x10 [ 12.740122] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.740144] ? calculate_sigpending+0x7b/0xa0 [ 12.740168] ? __pfx_kthread+0x10/0x10 [ 12.740191] ret_from_fork+0x116/0x1d0 [ 12.740211] ? __pfx_kthread+0x10/0x10 [ 12.740233] ret_from_fork_asm+0x1a/0x30 [ 12.740264] </TASK> [ 12.740274] [ 12.753100] Allocated by task 199: [ 12.753242] kasan_save_stack+0x45/0x70 [ 12.753576] kasan_save_track+0x18/0x40 [ 12.753949] kasan_save_alloc_info+0x3b/0x50 [ 12.754386] __kasan_kmalloc+0xb7/0xc0 [ 12.754825] __kmalloc_cache_noprof+0x189/0x420 [ 12.755224] kmalloc_memmove_invalid_size+0xac/0x330 [ 12.755850] kunit_try_run_case+0x1a5/0x480 [ 12.756301] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.756908] kthread+0x337/0x6f0 [ 12.757214] ret_from_fork+0x116/0x1d0 [ 12.757579] ret_from_fork_asm+0x1a/0x30 [ 12.758017] [ 12.758342] The buggy address belongs to the object at ffff8881032c8600 [ 12.758342] which belongs to the cache kmalloc-64 of size 64 [ 12.759290] The buggy address is located 4 bytes inside of [ 12.759290] allocated 64-byte region [ffff8881032c8600, ffff8881032c8640) [ 12.760109] [ 12.760282] The buggy address belongs to the physical page: [ 12.760848] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1032c8 [ 12.761518] flags: 0x200000000000000(node=0|zone=2) [ 12.761687] page_type: f5(slab) [ 12.761823] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.762057] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.762289] page dumped because: kasan: bad access detected [ 12.762969] [ 12.763130] Memory state around the buggy address: [ 12.763678] ffff8881032c8500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.764335] ffff8881032c8580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.764654] >ffff8881032c8600: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 12.764882] ^ [ 12.765654] ffff8881032c8680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.766402] ffff8881032c8700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.767415] ==================================================================