Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.892071] ================================================================== [ 16.892367] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 16.892439] Read of size 18446744073709551614 at addr fff00000c78c3204 by task kunit_try_catch/180 [ 16.892668] [ 16.892730] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.893067] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.893192] Hardware name: linux,dummy-virt (DT) [ 16.893245] Call trace: [ 16.893267] show_stack+0x20/0x38 (C) [ 16.893319] dump_stack_lvl+0x8c/0xd0 [ 16.893363] print_report+0x118/0x608 [ 16.893713] kasan_report+0xdc/0x128 [ 16.893766] kasan_check_range+0x100/0x1a8 [ 16.893814] __asan_memmove+0x3c/0x98 [ 16.893855] kmalloc_memmove_negative_size+0x154/0x2e0 [ 16.893903] kunit_try_run_case+0x170/0x3f0 [ 16.893948] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.893998] kthread+0x328/0x630 [ 16.894055] ret_from_fork+0x10/0x20 [ 16.894652] [ 16.894718] Allocated by task 180: [ 16.894791] kasan_save_stack+0x3c/0x68 [ 16.894949] kasan_save_track+0x20/0x40 [ 16.895228] kasan_save_alloc_info+0x40/0x58 [ 16.895365] __kasan_kmalloc+0xd4/0xd8 [ 16.895447] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.895689] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 16.895912] kunit_try_run_case+0x170/0x3f0 [ 16.896208] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.896313] kthread+0x328/0x630 [ 16.896470] ret_from_fork+0x10/0x20 [ 16.896525] [ 16.896590] The buggy address belongs to the object at fff00000c78c3200 [ 16.896590] which belongs to the cache kmalloc-64 of size 64 [ 16.896735] The buggy address is located 4 bytes inside of [ 16.896735] 64-byte region [fff00000c78c3200, fff00000c78c3240) [ 16.896888] [ 16.896939] The buggy address belongs to the physical page: [ 16.896968] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c3 [ 16.897193] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.897386] page_type: f5(slab) [ 16.897662] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 16.897927] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.898039] page dumped because: kasan: bad access detected [ 16.898092] [ 16.898259] Memory state around the buggy address: [ 16.898585] fff00000c78c3100: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 16.898805] fff00000c78c3180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.898994] >fff00000c78c3200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 16.899148] ^ [ 16.899182] fff00000c78c3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.899223] fff00000c78c3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.899410] ==================================================================
[ 11.658492] ================================================================== [ 11.658989] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 11.659910] Read of size 18446744073709551614 at addr ffff888103338404 by task kunit_try_catch/198 [ 11.661052] [ 11.661276] CPU: 1 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.661335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.661348] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.661369] Call Trace: [ 11.661380] <TASK> [ 11.661395] dump_stack_lvl+0x73/0xb0 [ 11.661424] print_report+0xd1/0x650 [ 11.661446] ? __virt_addr_valid+0x1db/0x2d0 [ 11.661469] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.661492] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.661513] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.661559] kasan_report+0x141/0x180 [ 11.661581] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.661609] kasan_check_range+0x10c/0x1c0 [ 11.661631] __asan_memmove+0x27/0x70 [ 11.661650] kmalloc_memmove_negative_size+0x171/0x330 [ 11.661673] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 11.661697] ? __schedule+0x10cc/0x2b60 [ 11.661718] ? __pfx_read_tsc+0x10/0x10 [ 11.661739] ? ktime_get_ts64+0x86/0x230 [ 11.661762] kunit_try_run_case+0x1a5/0x480 [ 11.661787] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.661807] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.661830] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.661851] ? __kthread_parkme+0x82/0x180 [ 11.661870] ? preempt_count_sub+0x50/0x80 [ 11.661893] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.661914] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.661936] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.661957] kthread+0x337/0x6f0 [ 11.661975] ? trace_preempt_on+0x20/0xc0 [ 11.661999] ? __pfx_kthread+0x10/0x10 [ 11.662018] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.662038] ? calculate_sigpending+0x7b/0xa0 [ 11.662060] ? __pfx_kthread+0x10/0x10 [ 11.662080] ret_from_fork+0x116/0x1d0 [ 11.662097] ? __pfx_kthread+0x10/0x10 [ 11.662129] ret_from_fork_asm+0x1a/0x30 [ 11.662174] </TASK> [ 11.662186] [ 11.671289] Allocated by task 198: [ 11.671643] kasan_save_stack+0x45/0x70 [ 11.671851] kasan_save_track+0x18/0x40 [ 11.672127] kasan_save_alloc_info+0x3b/0x50 [ 11.672280] __kasan_kmalloc+0xb7/0xc0 [ 11.672413] __kmalloc_cache_noprof+0x189/0x420 [ 11.672670] kmalloc_memmove_negative_size+0xac/0x330 [ 11.673016] kunit_try_run_case+0x1a5/0x480 [ 11.673244] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.673608] kthread+0x337/0x6f0 [ 11.673737] ret_from_fork+0x116/0x1d0 [ 11.673878] ret_from_fork_asm+0x1a/0x30 [ 11.674081] [ 11.674267] The buggy address belongs to the object at ffff888103338400 [ 11.674267] which belongs to the cache kmalloc-64 of size 64 [ 11.674808] The buggy address is located 4 bytes inside of [ 11.674808] 64-byte region [ffff888103338400, ffff888103338440) [ 11.675321] [ 11.675423] The buggy address belongs to the physical page: [ 11.675723] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103338 [ 11.676039] flags: 0x200000000000000(node=0|zone=2) [ 11.676218] page_type: f5(slab) [ 11.676342] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 11.676657] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 11.676991] page dumped because: kasan: bad access detected [ 11.677464] [ 11.677538] Memory state around the buggy address: [ 11.677697] ffff888103338300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.677979] ffff888103338380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.678333] >ffff888103338400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 11.678650] ^ [ 11.678812] ffff888103338480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.679100] ffff888103338500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.679498] ==================================================================