Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.648523] ================================================================== [ 29.648730] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 29.648980] Read of size 64 at addr fff00000c9b1c684 by task kunit_try_catch/213 [ 29.649125] [ 29.649221] CPU: 1 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.649366] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.649779] Hardware name: linux,dummy-virt (DT) [ 29.649850] Call trace: [ 29.649941] show_stack+0x20/0x38 (C) [ 29.650005] dump_stack_lvl+0x8c/0xd0 [ 29.650190] print_report+0x118/0x5d0 [ 29.650395] kasan_report+0xdc/0x128 [ 29.650471] kasan_check_range+0x100/0x1a8 [ 29.650603] __asan_memmove+0x3c/0x98 [ 29.650698] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 29.651068] kunit_try_run_case+0x170/0x3f0 [ 29.651179] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.651269] kthread+0x328/0x630 [ 29.651457] ret_from_fork+0x10/0x20 [ 29.651685] [ 29.651709] Allocated by task 213: [ 29.651761] kasan_save_stack+0x3c/0x68 [ 29.651946] kasan_save_track+0x20/0x40 [ 29.652104] kasan_save_alloc_info+0x40/0x58 [ 29.652316] __kasan_kmalloc+0xd4/0xd8 [ 29.652461] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.652507] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 29.652550] kunit_try_run_case+0x170/0x3f0 [ 29.652588] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.652630] kthread+0x328/0x630 [ 29.652664] ret_from_fork+0x10/0x20 [ 29.652699] [ 29.652848] The buggy address belongs to the object at fff00000c9b1c680 [ 29.652848] which belongs to the cache kmalloc-64 of size 64 [ 29.653085] The buggy address is located 4 bytes inside of [ 29.653085] allocated 64-byte region [fff00000c9b1c680, fff00000c9b1c6c0) [ 29.653157] [ 29.653179] The buggy address belongs to the physical page: [ 29.653396] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b1c [ 29.653607] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.653770] page_type: f5(slab) [ 29.653901] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.654047] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.654232] page dumped because: kasan: bad access detected [ 29.654302] [ 29.654320] Memory state around the buggy address: [ 29.654354] fff00000c9b1c580: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 29.654603] fff00000c9b1c600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.654887] >fff00000c9b1c680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.655081] ^ [ 29.655172] fff00000c9b1c700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.655291] fff00000c9b1c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.655333] ==================================================================
[ 25.869483] ================================================================== [ 25.870022] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.870409] Read of size 64 at addr ffff888106178204 by task kunit_try_catch/231 [ 25.870711] [ 25.870797] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.870844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.870856] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.870876] Call Trace: [ 25.870887] <TASK> [ 25.870902] dump_stack_lvl+0x73/0xb0 [ 25.870930] print_report+0xd1/0x610 [ 25.870951] ? __virt_addr_valid+0x1db/0x2d0 [ 25.870974] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.870997] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.871021] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.871044] kasan_report+0x141/0x180 [ 25.871065] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.871104] kasan_check_range+0x10c/0x1c0 [ 25.871126] __asan_memmove+0x27/0x70 [ 25.871149] kmalloc_memmove_invalid_size+0x16f/0x330 [ 25.871171] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 25.871197] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 25.871225] kunit_try_run_case+0x1a5/0x480 [ 25.871247] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.871268] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.871540] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.871570] ? __kthread_parkme+0x82/0x180 [ 25.871595] ? preempt_count_sub+0x50/0x80 [ 25.871618] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.871641] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.871664] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.871686] kthread+0x337/0x6f0 [ 25.871705] ? trace_preempt_on+0x20/0xc0 [ 25.871728] ? __pfx_kthread+0x10/0x10 [ 25.871748] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.871768] ? calculate_sigpending+0x7b/0xa0 [ 25.871791] ? __pfx_kthread+0x10/0x10 [ 25.871811] ret_from_fork+0x116/0x1d0 [ 25.871829] ? __pfx_kthread+0x10/0x10 [ 25.871848] ret_from_fork_asm+0x1a/0x30 [ 25.871879] </TASK> [ 25.871888] [ 25.878593] Allocated by task 231: [ 25.878717] kasan_save_stack+0x45/0x70 [ 25.878853] kasan_save_track+0x18/0x40 [ 25.878981] kasan_save_alloc_info+0x3b/0x50 [ 25.879625] __kasan_kmalloc+0xb7/0xc0 [ 25.879828] __kmalloc_cache_noprof+0x189/0x420 [ 25.880065] kmalloc_memmove_invalid_size+0xac/0x330 [ 25.880310] kunit_try_run_case+0x1a5/0x480 [ 25.880477] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.880808] kthread+0x337/0x6f0 [ 25.880958] ret_from_fork+0x116/0x1d0 [ 25.881132] ret_from_fork_asm+0x1a/0x30 [ 25.881351] [ 25.881437] The buggy address belongs to the object at ffff888106178200 [ 25.881437] which belongs to the cache kmalloc-64 of size 64 [ 25.881852] The buggy address is located 4 bytes inside of [ 25.881852] allocated 64-byte region [ffff888106178200, ffff888106178240) [ 25.882215] [ 25.882301] The buggy address belongs to the physical page: [ 25.882542] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106178 [ 25.882888] flags: 0x200000000000000(node=0|zone=2) [ 25.883138] page_type: f5(slab) [ 25.883296] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.883782] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.884091] page dumped because: kasan: bad access detected [ 25.884412] [ 25.884485] Memory state around the buggy address: [ 25.884634] ffff888106178100: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 25.884842] ffff888106178180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.885094] >ffff888106178200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.885651] ^ [ 25.885895] ffff888106178280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.886223] ffff888106178300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.886577] ==================================================================